diff --git a/docs/install/tarball.md b/docs/install/tarball.md index af6f31399..5ba17a39f 100644 --- a/docs/install/tarball.md +++ b/docs/install/tarball.md @@ -84,15 +84,61 @@ The following steps show how to install Percona Server for MongoDB from a tarbal ```bash sudo mkdir -p /data/db ``` - - 5. The new TCMalloc requires [Restartable Sequences (rseq) :octicons-link-external-16:](https://github.com/google/tcmalloc/blob/master/docs/design.md#restartable-sequences-and-per-cpu-tcmalloc) to implement [per-CPU caches :octicons-link-external-16:](https://www.mongodb.com/docs/upcoming/reference/glossary/#std-term-per-CPU-cache). To ensure that TCMalloc can use rseq, prevent glibc from registering an rseq structure. To do this, set the following environment variable: - ```bash - GLIBC_TUNABLES=glibc.pthread.rseq=0 - export GLIBC_TUNABLES + 5. Create a user and group for mongod + + ```bash + $ groupadd -r mongod + $ useradd -M -r -g mongod -d /var/lib/mongo -s /bin/false -c mongod mongod + ``` + + 6. The new TCMalloc requires [Restartable Sequences (rseq) :octicons-link-external-16:](https://github.com/google/tcmalloc/blob/master/docs/design.md#restartable-sequences-and-per-cpu-tcmalloc) to implement [per-CPU caches :octicons-link-external-16:](https://www.mongodb.com/docs/upcoming/reference/glossary/#std-term-per-CPU-cache). To ensure that TCMalloc can use rseq, prevent glibc from registering an rseq structure. To do this, set the following environment variable: + + ```bash + GLIBC_TUNABLES=glibc.pthread.rseq=0 + export GLIBC_TUNABLES + ``` - 6. Make sure that you have read and write permissions for the data - directory and run `mongod`. + 7. (Optional) Create a systemd unit file. Specify the following configuration: + + ```bash + tee /usr/lib/systemd/system/mongod.service <