@@ -166,82 +166,5 @@ Once you've finished migrating over to the new cluster, just update your wildcar
166166point at your new load balancer. The application names are all the same, so no CNAME
167167modification needs to occur.
168168
169- In-place upgrade
170- ----------------
171-
172- This upgrade method involves shutting down the existing cluster, upgrading Deis components, and then
173- restarting them. It has the benefit of preserving existing data, but has the caveat that it results
174- in cluster downtime.
175-
176- Stop components
177- ^^^^^^^^^^^^^^^
178- The Makefile has the ability to stop all Deis copmonents. Once this occurs, all apps will
179- be unresponsive.
180-
181- .. code-block :: console
182-
183- dev $ make stop
184-
185- You can ``make status `` to ensure that all services are stopped.
186-
187- Export data containers
188- ^^^^^^^^^^^^^^^^^^^^^^
189- Four Deis components, builder, database, logger, and registry, run separate containers to store
190- their stateful data. We export these as tarballs before upgrading the containers.
191-
192- .. code-block :: console
193-
194- dev $ fleetctl ssh deis-builder.service
195- core $ sudo docker export deis-builder-data > /home/core/deis-builder-data-backup.tar
196- dev $ fleetctl ssh deis-database.service
197- core $ sudo docker export deis-database-data > /home/core/deis-database-data-backup.tar
198- dev $ fleetctl ssh deis-logger.service
199- core $ sudo docker export deis-logger-data > /home/core/deis-logger-data-backup.tar
200- dev $ fleetctl ssh deis-registry.service
201- core $ sudo docker export deis-registry-data > /home/core/deis-registry-data-backup.tar
202-
203- Upgrade Deis client and fleetctl
204- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
205- The latest Deis client should be installed. You can either use pip or download a pre-compiled binary.
206- See the release notes or the release's README for a link to the latest client.
207-
208- Also, new Deis releases frequently require upgrades to the fleetctl client. Again, see the
209- release notes for the new release to see if an upgrade is necessary.
210-
211- Upgrade components
212- ^^^^^^^^^^^^^^^^^^
213- Now we instruct all servers to download the release's Docker containers. This will take some time...
214-
215- .. code-block :: console
216-
217- dev $ make pull
218-
219- Import data containers
220- ^^^^^^^^^^^^^^^^^^^^^^
221- We need to reimport the saved data containers we exported earlier.
222-
223- .. code-block :: console
224-
225- dev $ fleetctl ssh deis-builder.service
226- core $ cat /home/core/deis-builder-data-backup.tar | sudo docker import - deis-builder-data
227- dev $ fleetctl ssh deis-database.service
228- core $ cat /home/core/deis-database-data-backup.tar | sudo docker import - deis-database-data
229- dev $ fleetctl ssh deis-logger.service
230- core $ cat /home/core/deis-logger-data-backup.tar | sudo docker import - deis-logger-data
231- dev $ fleetctl ssh deis-registry.service
232- core $ cat /home/core/deis-registry-data-backup.tar | sudo docker import - deis-registry-data
233-
234- Start the cluster
235- ^^^^^^^^^^^^^^^^^
236- Again, the Makefile takes care of this logic for us:
237-
238- .. code-block :: console
239-
240- dev $ make run
241-
242- Test
243- ^^^^
244- Ensure all applications function as expected.
245-
246169.. _`#710` : https://github.com/deis/deis/issues/710
247170.. _`#467` : https://github.com/deis/deis/issues/467
0 commit comments