Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Check if we can seamlessly upgrade to Mongo 4.4 #40

Open
thinkh opened this issue Aug 24, 2020 · 1 comment
Open

Check if we can seamlessly upgrade to Mongo 4.4 #40

thinkh opened this issue Aug 24, 2020 · 1 comment
Labels
type: technical debt Describes or removes a technical debt

Comments

@thinkh
Copy link
Contributor

thinkh commented Aug 24, 2020

  • Check we can use the Mongo image to 4.4 without losing existing data
  • Update pymongo library to newest version
@thinkh thinkh added the type: technical debt Describes or removes a technical debt label Aug 24, 2020
@ghost
Copy link

ghost commented Jun 4, 2021

You have to do the following to upgrade from 3.4 to 4.4:

  1. Upgrade to 3.4
  • change image version to 3.4
  • run container: docker-compose up db_mongo
  • run the following command: docker-compose exec db_mongo mongo --eval 'db.adminCommand( { setFeatureCompatibilityVersion: "3.4" } )'
  • shutdown container
  1. Upgrade to 3.6
  • change image version to 3.6
  • run container: docker-compose up db_mongo
  • run the following command: docker-compose exec db_mongo mongo --eval 'db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } )'
  • shutdown container
  1. Upgrade to 4.0
  • change image version to 4.0
  • run container: docker-compose up db_mongo
  • run the following command: docker-compose exec db_mongo mongo --eval 'db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )'
  • shutdown container
  1. Upgrade to 4.2
  • change image version to 4.2
  • run container: docker-compose up db_mongo
  • run the following command: docker-compose exec db_mongo mongo --eval 'db.adminCommand( { setFeatureCompatibilityVersion: "4.2" } )'
  • shutdown container
  1. Upgrade to 4.4
  • change image version to 4.4
  • run container: docker-compose up db_mongo
  • run the following command: docker-compose exec db_mongo mongo --eval 'db.adminCommand( { setFeatureCompatibilityVersion: "4.4" } )'
  • shutdown container

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: technical debt Describes or removes a technical debt
Projects
None yet
Development

No branches or pull requests

1 participant