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

Zero downtime development with Elixir and Kubernetes

Zero downtime development with Elixir and Kubernetes

Zero downtime development with Elixir and Kubernetes by Bartosz Górka

Bartosz Górka

March 06, 2019
Tweet

More Decks by Bartosz Górka

Other Decks in Technology

Transcript

  1. Our focus We are most focused on deployment stage and

    often ignore data migration BartoszGorka96
  2. Risks - data migration process 1. Underestimating time and effort

    2. Doing all at once 3. Performance limitations 5. No rollback plan 4. Poor testing and migrating BartoszGorka96
  3. - Task 2 - Actions which we can do to

    prevent bugs BartoszGorka96
  4. Risks - data migration process 1. Underestimating time and effort

    2. Doing all at once 3. Performance limitations 5. No rollback plan 4. Poor testing and migrating R E
 P
 L
 Y BartoszGorka96
  5. We can use 1. down and up instead only change

    2. raw sql instead structures 3. step by step - to be able to rollback changes 5. concurrently index build 4. drop only when confirmed BartoszGorka96
  6. Example Add new column with NOT NULL constant* * with

    default value also BartoszGorka96
  7. Summary Always be careful with database migration. It’s is surely

    safe to take a backup before execute migration. Always think of backward compatibility usually without reverting migration. BartoszGorka96