简体   繁体   中英

Can I have ArangoDB 2.8 and ArangoDB 3 on the same server?

I need to transfer a lot of databases from arango 2.8 to version 3.

Can I run them simultaneously, on the same machine, on different ports in order to export them and import them on the spot ?

I would recommend running Arangodump and Arangoimp. This simply exports entire collections to json files which can be rapidly imported. Details here . You can simply Arangodump your Arango 2.8 files, uninstall ArangoDB 2.8, install 3.0, and import them into Arango 3.0. I don't have any experience running two versions simultaneously, but unless they are containerized I would not recommend trying, as both versions, when locally installed, use files in a directory with the same name ( /usr/share/arangodb ).

Currently the only way to run two versions of ArangoDB on the same machine would be to have a chroot with the other version, or run the second version in a docker environment.

There are files with the same locations in the 2.8 and 3.0 packages, hence the arangodb3 packages conflict with with the arangodb version 2.x packages.

You can in debian/ubuntu use DeBootstrap to initialize a minimal chroot for ArangoDB; for Centos/Redhat etc. yumbootstrap seems to provide a similar solution. As Nate already told you, you need to configure the ports arangod binds to a different port .

Using docker you can use our official ArangoDB image in the docker library . Since docker sets up virtual ips, you probably can use the same port - as long as you don't bind 0.0.0.0:8529 in the host system. Please pay attention to the Persistent Data chapter of the docker container manual and read on:

Once your migration is complete, you can install ArangoDB 3 in the host, and move the database directories over. You should take care that the chroot is on the same volume as your current /var/lib/arangodb directory, so moving is cheap.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM