From 9f42bec2abaa65a59781b208758a2a485edd59e2 Mon Sep 17 00:00:00 2001 From: liviulesan Date: Fri, 11 Mar 2022 14:38:20 +0000 Subject: [PATCH] updated documentation for planetmint with references to tarantool instead of mongodb --- .../run-dev-network-stack.md | 8 +-- .../run-node-as-processes.md | 12 ++-- .../run-node-with-docker-compose.md | 4 +- .../_static/mongodb_cloud_manager_1.png | Bin 12196 -> 0 bytes .../installation/appendices/log-rotation.md | 7 +- .../network-setup/network-setup.md | 7 +- .../network-setup/planetmint-node-ansible.md | 2 +- .../node-setup/all-in-one-planetmint.md | 7 +- .../installation/node-setup/configuration.md | 66 +++--------------- .../installation/node-setup/planetmint-cli.md | 12 ++-- .../production-node/node-components.md | 8 +-- .../production-node/node-requirements.md | 2 +- .../node-security-and-privacy.md | 2 +- .../node-setup/set-up-node-software.md | 21 ++---- .../node-setup/troubleshooting.md | 4 +- 15 files changed, 47 insertions(+), 115 deletions(-) delete mode 100644 docs/root/source/installation/_static/mongodb_cloud_manager_1.png diff --git a/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-dev-network-stack.md b/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-dev-network-stack.md index e5e9c37..d059560 100644 --- a/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-dev-network-stack.md +++ b/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-dev-network-stack.md @@ -99,8 +99,7 @@ $ bash stack.sh -h ENV[TM_VERSION] (Optional) Tendermint version to use for the setup. (default: 0.22.8) - ENV[MONGO_VERSION] - (Optional) MongoDB version to use with the setup. (default: 3.6) + ENV[AZURE_CLIENT_ID] Only required when STACK_TYPE="cloud" and STACK_TYPE_PROVIDER="azure". Steps to generate: @@ -181,8 +180,6 @@ $ export STACK_BRANCH=master #Optional, since 0.22.8 is the default tendermint version. $ export TM_VERSION=0.22.8 -#Optional, since 3.6 is the default MongoDB version. -$ export MONGO_VERSION=3.6 $ bash stack.sh ``` @@ -232,8 +229,7 @@ $ export STACK_BRANCH=master #Optional, since 0.22.8 is the default tendermint version $ export TM_VERSION=0.22.8 -#Optional, since 3.6 is the default MongoDB version. -$ export MONGO_VERSION=3.6 + $ bash stack.sh ``` diff --git a/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-as-processes.md b/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-as-processes.md index 70a3791..dea26ce 100644 --- a/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-as-processes.md +++ b/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-as-processes.md @@ -11,16 +11,16 @@ The following doc describes how to run a local node for developing Planetmint Te There are two crucial dependencies required to start a local node: -- MongoDB +- Tarantool - Tendermint and of course you also need to install Planetmint Sever from the local code you just developed. -## Install and Run MongoDB +## Install and Run Tarantool -MongoDB can be easily installed, just refer to their [installation documentation](https://docs.mongodb.com/manual/installation/) for your distro. -We know MongoDB 3.4 and 3.6 work with Planetmint. -After the installation of MongoDB is complete, run MongoDB using `sudo mongod` +Tarantool can be easily installed, just refer to their [installation documentation](https://www.tarantool.io/en/download/os-installation/ubuntu/) for your distro. +We know Tarantool 2.8 work with Planetmint. +After the installation of Tarantool is complete, run Tarantool using `tarantool` and to create a listener `box.cfg{listen=3301}` in cli of Tarantool. ## Install and Run Tendermint @@ -125,7 +125,7 @@ To execute tests when developing a feature or fixing a bug one could use the fol $ pytest -v ``` -NOTE: MongoDB and Tendermint should be running as discussed above. +NOTE: Tarantool and Tendermint should be running as discussed above. One could mark a specific test and execute the same by appending `-m my_mark` to the above command. diff --git a/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-with-docker-compose.md b/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-with-docker-compose.md index 5ee7643..de733bb 100644 --- a/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-with-docker-compose.md +++ b/docs/root/source/contributing/dev-setup-coding-and-contribution-process/run-node-with-docker-compose.md @@ -39,7 +39,7 @@ $ docker-compose up -d bdb The above command will launch all 3 main required services/processes: -* ``mongodb`` +* ``tarantool`` * ``tendermint`` * ``planetmint`` @@ -55,7 +55,7 @@ To follow the logs of the ``planetmint`` service: $ docker-compose logs -f planetmint ``` -To follow the logs of the ``mongodb`` service: + ```bash $ docker-compose logs -f mdb diff --git a/docs/root/source/installation/_static/mongodb_cloud_manager_1.png b/docs/root/source/installation/_static/mongodb_cloud_manager_1.png deleted file mode 100644 index 16073d6b370df4d22a9853a8e266eedf6b509044..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12196 zcmbW7Wl$a8*5(@t?w;TdAxMzm?j(4C;O=h0HMkwzIgsEI-0hIy93&9j-QD3J!~f1y z&CGr0&QwiRS6l7f`%AC2*Lt2`q>7R(CfXY`001!M<)qXA08aJgz6%BZ<;ELK@&gyFFVs7r>YUSv5f&dW#04hLU zO8m2D_R&(nXZ*Vk-cw~ta7L+_9wwaCMDfwD0gE{J+Ty3$%w(r-&tcv3?NYs6Y{z@e9H-|6RejH`26+#p`f zA_1o?OiWDcAYa3NSGuH(LEfbH9azrb@C_^{9Gen8%vf_Hp#2cuh@`Q=Y5V*}y+ zy8Ew;evX4+E|Br`D@%&*3iMH-FzvKw{)0(%!jzACSQy;~AvrbgL7y^&FX~34jAswb zr-w+Jj{a}ciL<>h>e%=$NG$aKZJl!oPLMYm?WUl{qt!Zyg8Qa@xS^*yPYP4;#NA^P zLQ0^%coU+*mbjK$JDFZh<@H6%WR0*pIzSjh7mvLIT&&mBA5g8Y(0S-0H1s7mNo#>M zF`$~=g5Gt<%6kj%(44~#b=b>rX``|yoSfX*V36{VY!hW|U(CZ*H-FlSp$9JVmAnYN zn4gvgGW3LmuQNY+vnY*pkLj61r`(bW*5pxO79wZSmvtcWQv_|$-@u90|K{?ZUVM%p z)z-QamRMHZK4pX?(JbJrY?3F!qSy_`eHhseX}FalP)|_*ykO0Vpb{q%b;uncu4OFM zN1pKMxAhgqsqnf>9dER}S@Tyt_u85?xS{uA2{rvIK~jENQ)PcM!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Wxc{-1Or)HfhkR73Sn0vhxJ6h`RW(p(I+Z#CS!)Q$pAXy~I14h#PQ2mkj%@c% -db.createUser({user: "", pwd: "", roles: [{role: "readWrite", db: ""}]}) -``` - -* `database.login` is the user's username. -* `database.password` is the user's password, given in plaintext. -* `database.ca_cert`, `database.certfile`, `database.keyfile`, `database.crlfile`, and `database.keyfile_passphrase` are not used so they can have their default values. - -**x.509 Certificate Authentication** - -To use x.509 certificate authentication, a MongoDB instance must be running somewhere (maybe in another machine), it must already have a database for use by Planetmint (usually named `planetmint`, which is the default `database.name`), and that database must be set up to use x.509 authentication. See the MongoDB docs about how to do that. - -* `database.login` is the user's username. -* `database.password` isn't used so the default value (`null`) is fine. -* `database.ca_cert`, `database.certfile`, `database.keyfile` and `database.crlfile` are the paths to the CA, signed certificate, private key and certificate revocation list files respectively. -* `database.keyfile_passphrase` is the private key decryption passphrase, specified in plaintext. - -**Example using environment variables** - -```text -export PLANETMINT_DATABASE_BACKEND=localmongodb -export PLANETMINT_DATABASE_HOST=localhost -export PLANETMINT_DATABASE_PORT=27017 -export PLANETMINT_DATABASE_NAME=database8 -export PLANETMINT_DATABASE_CONNECTION_TIMEOUT=5000 -export PLANETMINT_DATABASE_MAX_TRIES=3 -``` +To use username/password authentication, a Tarantool instance must already be running somewhere (maybe in another machine), it must already have a spaces for use by Planetmint, and that database must already have a "readWrite" user with associated username and password. **Default values** -If (no environment variables were set and there's no local config file), or you used `planetmint -y configure localmongodb` to create a default local config file for a `localmongodb` backend, then the defaults will be: - ```js "database": { - "backend": "localmongodb", + "backend": "tarantool", "host": "localhost", - "port": 27017, - "name": "planetmint", - "connection_timeout": 5000, - "max_tries": 3, - "replicaset": null, - "login": null, + "port": 3301, + "username": null, "password": null - "ssl": false, - "ca_cert": null, - "certfile": null, - "keyfile": null, - "crlfile": null, - "keyfile_passphrase": null, + } ``` diff --git a/docs/root/source/installation/node-setup/planetmint-cli.md b/docs/root/source/installation/node-setup/planetmint-cli.md index 08706ae..a3bab36 100644 --- a/docs/root/source/installation/node-setup/planetmint-cli.md +++ b/docs/root/source/installation/node-setup/planetmint-cli.md @@ -25,18 +25,18 @@ Show the version number. `planetmint -v` does the same thing. Generate a local configuration file (which can be used to set some or all [Planetmint node configuration settings](configuration)). It will ask you for the values of some configuration settings. If you press Enter for a value, it will use the default value. -At this point, only one database backend is supported: `localmongodb`. +At this point, only one database backend is supported: `tarantool`. If you use the `-c` command-line option, it will generate the file at the specified path: ```text -planetmint -c path/to/new_config.json configure localmongodb +planetmint -c path/to/new_config.json configure tarantool ``` If you don't use the `-c` command-line option, the file will be written to `$HOME/.planetmint` (the default location where Planetmint looks for a config file, if one isn't specified). If you use the `-y` command-line option, then there won't be any interactive prompts: it will use the default values for all the configuration settings. ```text -planetmint -y configure localmongodb +planetmint -y configure tarantool ``` @@ -47,13 +47,13 @@ Show the values of the [Planetmint node configuration settings](configuration). ## planetmint init -Create a backend database (local MongoDB), all database tables/collections, +Create a backend database (local tarantool), all database tables/collections, various backend database indexes, and the genesis block. ## planetmint drop -Drop (erase) the backend database (the local MongoDB database used by this node). +Drop (erase) the backend database (the local tarantool database used by this node). You will be prompted to make sure. If you want to force-drop the database (i.e. skipping the yes/no prompt), then use `planetmint -y drop` @@ -148,7 +148,7 @@ $ planetmint election new migration --private-key /home/user/.tendermint/config/ ``` Concluded chain migration elections halt block production at whichever block height they are approved. -Afterwards, validators are supposed to upgrade Tendermint, set new `chain_id`, `app_hash`, and `validators` (to learn these values, use the [election show](#election-show) command) in `genesis.json`, make and save a MongoDB dump, and restart the system. +Afterwards, validators are supposed to upgrade Tendermint, set new `chain_id`, `app_hash`, and `validators` (to learn these values, use the [election show](#election-show) command) in `genesis.json`, make and save a tarantool dump, and restart the system. For more details about how chain migrations work, refer to [Type 3 scenarios in BEP-42](https://github.com/planetmint/BEPs/tree/master/42). diff --git a/docs/root/source/installation/node-setup/production-node/node-components.md b/docs/root/source/installation/node-setup/production-node/node-components.md index 44f2abe..a1759e7 100644 --- a/docs/root/source/installation/node-setup/production-node/node-components.md +++ b/docs/root/source/installation/node-setup/production-node/node-components.md @@ -10,17 +10,15 @@ Code is Apache-2.0 and docs are CC-BY-4.0 A production Planetmint node must include: * Planetmint Server -* MongoDB Server 3.4+ (mongod) +* Tarantool * Tendermint * Storage for MongoDB and Tendermint It could also include several other components, including: * NGINX or similar, to provide authentication, rate limiting, etc. -* An NTP daemon running on all machines running Planetmint Server or mongod, and possibly other machines -* Probably _not_ MongoDB Automation Agent. It's for automating the deployment of an entire MongoDB cluster. -* MongoDB Monitoring Agent -* MongoDB Backup Agent +* An NTP daemon running on all machines running Planetmint Server or tarantool, and possibly other machines + * Log aggregation software * Monitoring software * Maybe more diff --git a/docs/root/source/installation/node-setup/production-node/node-requirements.md b/docs/root/source/installation/node-setup/production-node/node-requirements.md index 077a638..453d7c7 100644 --- a/docs/root/source/installation/node-setup/production-node/node-requirements.md +++ b/docs/root/source/installation/node-setup/production-node/node-requirements.md @@ -7,7 +7,7 @@ Code is Apache-2.0 and docs are CC-BY-4.0 # Production Node Requirements -**This page is about the requirements of Planetmint Server.** You can find the requirements of MongoDB, Tendermint and other [production node components](node-components) in the documentation for that software. +**This page is about the requirements of Planetmint Server.** You can find the requirements of Tarantool, Tendermint and other [production node components](node-components) in the documentation for that software. ## OS Requirements diff --git a/docs/root/source/installation/node-setup/production-node/node-security-and-privacy.md b/docs/root/source/installation/node-setup/production-node/node-security-and-privacy.md index 4841c94..779d1de 100644 --- a/docs/root/source/installation/node-setup/production-node/node-security-and-privacy.md +++ b/docs/root/source/installation/node-setup/production-node/node-security-and-privacy.md @@ -14,5 +14,5 @@ Here are some references about how to secure an Ubuntu 18.04 server: Also, here are some recommendations a node operator can follow to enhance the privacy of the data coming to, stored on, and leaving their node: -- Ensure that all data stored on a node is encrypted at rest, e.g. using full disk encryption. This can be provided as a service by the operating system, transparently to Planetmint, MongoDB and Tendermint. +- Ensure that all data stored on a node is encrypted at rest, e.g. using full disk encryption. This can be provided as a service by the operating system, transparently to Planetmint, Tarantool and Tendermint. - Ensure that all data is encrypted in transit, i.e. enforce using HTTPS for the HTTP API and the Websocket API. This can be done using NGINX or similar, as we do with the IPDB Testnet. diff --git a/docs/root/source/installation/node-setup/set-up-node-software.md b/docs/root/source/installation/node-setup/set-up-node-software.md index afce6d6..ec90189 100644 --- a/docs/root/source/installation/node-setup/set-up-node-software.md +++ b/docs/root/source/installation/node-setup/set-up-node-software.md @@ -5,11 +5,11 @@ SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) Code is Apache-2.0 and docs are CC-BY-4.0 ---> -# Set Up Planetmint, MongoDB and Tendermint +# Set Up Planetmint, Tarantool and Tendermint We now install and configure software that must run in every Planetmint node: Planetmint Server, -MongoDB and Tendermint. +Tarantool and Tendermint. ## Install Planetmint Server @@ -69,25 +69,18 @@ under `"wsserver"`: where `bnode.example.com` should be replaced by your node's actual subdomain. -## Install (and Start) MongoDB +## Install (and Start) Tarantool -Install a recent version of MongoDB. +Install a recent version of Tarantool. Planetmint Server requires version 3.4 or newer. ``` -sudo apt install mongodb +curl -L https://tarantool.io/DDJLJzv/release/2.8/installer.sh | bash + +sudo apt-get -y install tarantool ``` -If you install MongoDB using the above command (which installs the `mongodb` package), -it also configures MongoDB, starts MongoDB (in the background), -and installs a MongoDB startup script -(so that MongoDB will be started automatically when the machine is restarted). -Note: The `mongodb` package is _not_ the official MongoDB package -from MongoDB the company. If you want to install the official MongoDB package, -please see -[the MongoDB documentation](https://docs.mongodb.com/manual/installation/). -Note that installing the official package _doesn't_ also start MongoDB. ## Install Tendermint diff --git a/docs/root/source/installation/node-setup/troubleshooting.md b/docs/root/source/installation/node-setup/troubleshooting.md index aa679c0..f72bca8 100644 --- a/docs/root/source/installation/node-setup/troubleshooting.md +++ b/docs/root/source/installation/node-setup/troubleshooting.md @@ -2,7 +2,7 @@ ## General Tips -- Check the Planetmint, Tendermint and MongoDB logs. +- Check the Planetmint, Tendermint and Tarantool logs. For help with that, see the page about [Logging and Log Rotation](../appendices/log-rotation). - Try Googling the error message. @@ -36,7 +36,7 @@ addr_book_strict = false If you want to refresh your node back to a fresh empty state, then your best bet is to terminate it and deploy a new machine, but if that's not an option, then you can: -* drop the `planetmint` database in MongoDB using `planetmint drop` (but that only works if MongoDB is running) +* drop the `planetmint` database in tarantool using `planetmint drop` (but that only works if tarantool is running) * reset Tendermint using `tendermint unsafe_reset_all` * delete the directory `$HOME/.tendermint`