luebken / container-patterns

Patterns around building applications with containers.
Apache License 2.0
85 stars 12 forks source link

Add adaptive as a module property #16

Open luebken opened 7 years ago

luebken commented 7 years ago

8. Adaptive

A container should anticipate its environment, react to it and configure its self accordingly. This idea has been described by Jeff Lindsay where he describes containers a software appliances. And has been described in detail here: http://autopilotpattern.io/

autopilot:

  1. What resources does the container have to connect to?
  2. How is the container configured? config file, args. env
  3. Does anything have to be done before the application in the container starts?
  4. How is the application in the container started?
  5. How will other containers discover this container?
  6. How do we know if the application in the container is healthy?
  7. What are the key metrics that indicate the container's load?
  8. If the resources the container connects to change, how do we update the application in the container with those new resources?
  9. Does the container create any data on disk that needs to be shared by other instances or backed up in any way?
  10. Does anything have to be done before or after shutting down the container?