Comments (2)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/143507247
The labels on this github issue will be updated when the story is started.
from docs-dev-guide.
I'll offer some strong support for always deploying completely fresh from source (and secrets) through a pipeline, from the practice of immutable infrastructure. Emphasis in all the quotes is my own.
-
Martin Fowler suggested regularly tearing down servers and rebuilding them from source (PhoenixServer, 2012):
The primary advantage of using phoenix servers is to avoid configuration drift: ad hoc changes to a systems configuration that go unrecorded. Drift is the name of a street that leads to SnowflakeServers, and you don't want to go there without a big plough.
-
Kief Morris explains the one-way flow of configuration from source to deploment in terms of CI/CD (ImmutableServer, 2013):
By frequently destroying and rebuilding servers from the base image, 100% of the server's elements are reset to a known state, without spending a ridiculous amount of time specifying and maintaining detailed configuration specifications.
Once you've spun up a server instance from a well-tested base image, you shouldn't run configuration management tools, since they create opportunities for untested changes to the instance. Any changes that are needed can be made to the base image, tested, and then rolled out. Servers without the change are torn down and replaced.
-
Chad Fowler (no relation) likens it to immutable data structures in functional programming (Trash Your Servers and Burn Your Code, 2013):
[A]n old system inevitably grows warts. They start as one-time hacks during outages. A quick edit to a config file saves the day. Application code is deployed outside of the normal straight-from-source-control process. The system becomes a house of cards. You fear any change and you fear replacing it since you dont know everything about how it works.
If you absolutely know a system has been created via automation and never changed since the moment of creation, most of the problems I describe above disappear. Need to upgrade? No problem. Build a new, upgraded system and throw the old one away. New app revision? Same thing. Build a server (or image) with a new revision and throw away the old ones.
-
HighOps brings the idea of immutable infrastructure right to the level of the application instance (Immutable Infrastructure: what is it?, 2014):
So what is an Immutable Infrastructure?
A pattern or strategy for managing services in which infrastructure is divided into "data" and "everything else". "Everything else" components are replaced at every deployment, with changes made only by modifying a versioned definition, rather than being updated in-place.
from docs-dev-guide.
Related Issues (20)
- Add documentation to "Update Service Credentials" without downtime HOT 3
- Termination signal SIGTERM not captured by the javascript application on cf stop HOT 2
- Outdated blue-green deployment example HOT 2
- cf7 app manifest schema for services list not documented HOT 5
- Cf ssh without cli is out of date HOT 4
- Using Service Keys HOT 3
- Sidecar documentation HOT 3
- How to pass parameters to push and run Docker images in Cloud foundry cf push HOT 5
- Document `cf scale` Limitation During a Rolling App Deployment HOT 1
- Docker Volume Support Example needed HOT 3
- broken link in the docs HOT 2
- Utilization of resources of a stopped application HOT 3
- Improve health check timeout documentation HOT 6
- Blue-Green Deployment: "cf push ... -n" not supported anymore HOT 5
- Github tag clone syntax stopped working HOT 2
- Improve documentation of health check type "process" HOT 17
- Mention the CF version since which the readiness health checks are available HOT 5
- Cancel rolling deploy section doesn't include information about the env var and service bindings changes HOT 1
- rabbitmq as a service instance HOT 1
- Markdown rendering errors for routes-domains.html HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-dev-guide.