[SERVER-36098] Support for multiple mongodb version on one single server Created: 12/Jul/18 Updated: 06/Dec/22 Resolved: 19/Oct/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build, Packaging |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Srinivas Kompella | Assignee: | Backlog - Build Team (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Build
|
| Participants: |
| Description |
|
Hi... Here is my thoughts about this new feature request. Currently I am only able to install one version per linux server... I know we can do the tar/untar of executable but its a bit messy to do that but doable. I like to be able to install multiple versions of mongo 2.6 all the way to mongo 4.0 on a given linux server and perform the upgrades/downgrades etc.. without the need to uninstall and reinstall the versions. |
| Comments |
| Comment by Matt Lord (Inactive) [ 19/Oct/18 ] |
|
Hi srinivaskompella, While there is general support for doing this in yum and apt by using name+version package names, e.g. mongo4.0-server or even mongo4.0.3-server, this leads to a host of other complications and issues with complex software such as databases. So this is a feature that we have no current plans to implement. As you noted, tarballs can be used for this purpose but then the management is a bit more involved. There are official MongoDB Enterprise tools that make this easier to manage: And there are a number of community tools that make this more manageable, for example:
I'm going to close this as "won't fix" for now, but please do let me know if you feel that this is easier to solve than I think it is or if you feel that this decision is simply a grave mistake for other reasons. Thank you for using MongoDB! Best Regards, Matt |
| Comment by Ramon Fernandez Marina [ 27/Jul/18 ] |
|
Thanks for the additional details srinivaskompella. The preferred way to do this today is via tarballs. I'm passing this along to Product for consideration, since it would involve significant changes in our build and packaging infrastructure, so such an effort needs to be balanced against all other projects. Regards, |
| Comment by Srinivas Kompella [ 12/Jul/18 ] |
|
Hi.. I am coming from relational database background... mainly Oracle.. Oracle gives the ability to install many versions of oracle into paths such as /oracle/app/oracle/product/11.2.0.3 = Installed path for oracle 11.2.0.3 or /oracle/app/oracle/product/12.2.0.1 = Installed path for oracle 12.2.0.1...and such The problem I am facing is that...I have some servers that are on Mongo 2.6 and moving to 3.6 and there are multiple installs i need to do to get to 3.6. ================================================= My upgrade steps from 2.6 to 3.6 — keep datafiles (in /data) and logfiles (/log) seperate and not use /var. — Uninstall Mongo 2.6 using yum erase — Install newer version of 3.0. — Bring up Mongod and validate everything good. — Bring Down Mongo — Uninstall Mongo version using yum erase — Install newer version of 3.2 using yum install — Bring up Mongod and validate everything good. — Bring Down Mongo — Uninstall Mongo version using yum erase — Install newer version of 3.4 using yum install — Bring up Mongod and validate everything good. — Bring Down Mongo etc...etc...etc....
I am currently using yum erase to <remove mongo version> and yum install <new version>.. and while keeping the mongo datafiles and log in a seperate filesystem and not loose them when I erase using yum. Is there any method available for me to install mongo under /opt/mongodb/2.6 or /opt/mongodb/3.0 etc..and keep them ready on the server for use in a future upgrade project.. we just want to install all versions and keep them on the servers so we dont have to do this each time and also keep track of which versions is install on which server etc.
And, Thanks again for replying to this ticket quickly..
|
| Comment by Ramon Fernandez Marina [ 12/Jul/18 ] |
|
Thanks for your report srinivaskompella. Can you please provide additional details on the process that this feature would allow you to follow for upgrades/etc.? Are you referring to package managers like apt/yum? The more information you can provide the better. Thanks, |