If you have ever installed Mongo 3.* version and worrying as to how to upgrade it to Mongo 4.x.
Then this story is for you, Mongo has made the upgrades comparatively easy.
This story is a brief overview as to how to upgrade Mongo and it is divided into three segments
Identification
While Migrating Databases from one node to another using
We landed into Unrecognized field 'snapshot'. mongo this error.
Debugging
We saw that there is a version mismatch as in source host being 4.2.x and target being 3.6.17 between both the mongo servers.
Now we have to take an immediate step to upgrade mongo and maintain the same version of mongo across the nodes. So that the dumps can be transferred between nodes.
Solution
Please note that you can update mongo DB only on Stepwise.
For instance, To upgrade from a version earlier than the 3.6-series, you
must successively upgrade major releases until you have upgraded to
3.6-series. For example, if you are running a 3.4-series, you must upgrade first to 3.6 before you can upgrade to 4.0.
This has three steps to do
Get the FeatureCompatibilityVersion
Set the FeatureCompatibilityVersion
Upgrade to the next stable version
How to get the FeatureCompatibilityVersion
Enter mongo shell and then type
db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
if the parameter is set you should be seeing a result similar to this
Always check versions on fellow nodes before deploying anything. If
the change is a minor version change its ok but if its major change
please try to stick to only one version :)
Setting up k8's to use nvidia Setting up k8's to use nvidia Prerequisites Quick Start Preparing your GPU Nodes Enabling GPU Support in Kubernetes Checks Sample yaml file References Destroy Prerequisites The list of prerequisites for running the NVIDIA device plugin is described below: NVIDIA drivers ~= 410.48 nvidia-docker version > 2.0 (see how to install and it's prerequisites) docker configured with nvidia as the default runtime . Kubernetes version >= 1.10 kubeadm installation . Post installation use flannel as the network plugin - $ sudo kubeadm init --pod-network-cidr=10.244.0.0/16 - $ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml - $ kubectl taint nodes --all node-role.kubernetes.io/master- Quick Start Preparing your GPU Nodes The following steps need to be executed on all your GPU nodes. This README assumes that the NVIDIA drivers ...
Comments
Post a Comment