Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Aptible Update Webinar Series - October 2016

Aptible
October 26, 2016

Aptible Update Webinar Series - October 2016

View the recording at: https://youtu.be/SIV0uPnz7i4

The Aptible Update Webinar Series is a quarterly presentation that covers recent features and changes to the Enclave deployment platform and Gridiron security management products.

The Aptible Update Webinar Series is a quarterly presentation that covers recent features and changes to the Enclave deployment platform and Gridiron security management products. These webinars feature technical sessions led by Aptible engineers, live demonstrations, customer examples, and Q&A with the Aptible team.

This Aptible Update Webinar is Enclave-focused and covers:

- Deploying from private Docker registries
- On-demand database backups
- Two-factor authentication
- Container metrics
- `aptible logs`
- HTTP health checks
- ALB endpoints
- Advanced memory management

Aptible

October 26, 2016
Tweet

More Decks by Aptible

Other Decks in Technology

Transcript

  1. Private(Repositories $ mkdir example-docker-app $ cd example-docker-app && git init

    . $ aptible apps:create example-docker-app --environment my-env > App example-docker-app created! > Git remote: [email protected]:my-env/example-docker-app.git $ aptible config:set APTIBLE_PRIVATE_REGISTRY_HOST=[registry host] \ APTIBLE_DOCKER_IMAGE=[image name] \ APTIBLE_PRIVATE_REGISTRY_USERNAME=[username] \ APTIBLE_PRIVATE_REGISTRY_PASSWORD=[password] $ echo "web: bundle exec rails s" > Procfile $ git add Procfile && commit -m "test docker pull" $ git remote add aptible [email protected]:my-env/example-docker-app.git $ git push aptible master
  2. How$it$works Restarts'happen'in,place Memory'management'restarts&containers&in+place:&it&does&not&run&aptible restart'on'your'app.' Specifically,'it'sends'a'SIGTERM'to'all'processes'in'your'container'(and'a'SIGKILL'if'they'don't'exit). Log$Drains$are$no,fied$when$a$container$is$restarted: 2016-10-24T10:33:18.381Z [hog-hog 3b8186a7d05b]: hog:

    hog up to 2147483648 bytes over 300 second(s) with 6 checkpoint(s) 2016-10-24T10:33:18.381Z [hog-hog 3b8186a7d05b]: hog: start 2016-10-24T10:33:18.832Z [hog-hog 3b8186a7d05b - aptible]: container has started 2016-10-24T10:33:18.381Z [hog-hog 3b8186a7d05b]: hog: checkpoint 0: 0 bytes 2016-10-24T10:34:05.396Z [hog-hog 3b8186a7d05b]: hog: checkpoint 1: 335544320 bytes 2016-10-24T10:34:52.416Z [hog-hog 3b8186a7d05b]: hog: checkpoint 2: 671088640 bytes 2016-10-24T10:35:39.456Z [hog-hog 3b8186a7d05b]: hog: checkpoint 3: 1006632960 bytes 2016-10-24T10:35:48.875Z [hog-hog 3b8186a7d05b]: hog: exit: SIGTERM 2016-10-24T10:35:48.873Z [hog-hog 3b8186a7d05b - aptible]: container exceeded its memory allocation 2016-10-24T10:35:48.874Z [hog-hog 3b8186a7d05b - aptible]: container is restarting: 2016-10-24T10:35:48.875Z [hog-hog 3b8186a7d05b - aptible]: PID PPID VSZ RSS STAT COMMAND 2016-10-24T10:35:48.875Z [hog-hog 3b8186a7d05b - aptible]: 1180 1164 736 4 S /sbin/tini -- hog 2016-10-24T10:35:48.875Z [hog-hog 3b8186a7d05b - aptible]: 1213 1180 1049220 1048732 D hog 2016-10-24T10:35:48.994Z [hog-hog 3b8186a7d05b - aptible]: container has exited 2016-10-24T10:35:49.997Z [hog-hog 3b8186a7d05b - aptible]: container has started 2016-10-24T10:35:49.565Z [hog-hog 3b8186a7d05b]: hog: hog up to 2147483648 bytes over 300 second(s) with 32 checkpoint(s) 2016-10-24T10:35:49.565Z [hog-hog 3b8186a7d05b]: hog: start