Skip to content

Commit

Permalink
Added instructions to disable glibc for tarballs and enable THP for u…
Browse files Browse the repository at this point in the history
…pgrade
  • Loading branch information
nastena1606 committed Aug 12, 2024
1 parent 1f9ecd2 commit c9f3bec
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cache/plugin/git-committers/page-authors.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/install/apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ Percona provides the [`percona-release`](https://docs.percona.com/percona-softwa
By default, {{psmdb.full_name}} stores data files in `/var/lib/mongodb/`
and configuration parameters in `/etc/mongod.conf`.

## Enable Transparent Hugepages (THP)

Enable Transparent Hugepages (THP) before starting Percona Server for MongoDB 8.0. THP is required to use the new TCMalloc version with MongoDB. For how to enable THP, see [Enable Transparent Hugepages (THP)](https://www.mongodb.com/docs/upcoming/administration/tcmalloc-performance/#enable-transparent-hugepages--thp-) section of documentation.

## Run {{psmdb.full_name}}

**Start the service**
Expand Down
8 changes: 7 additions & 1 deletion docs/install/tarball.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,14 @@ Follow these steps to install Percona Server for MongoDB from a tarball:
$ mkdir -p /data/db
```

5. The new TCMalloc requires [Restartable Sequences (rseq) :octicons-external-16:](https://github.com/google/tcmalloc/blob/master/docs/design.md#restartable-sequences-and-per-cpu-tcmalloc) to implement [per-CPU caches](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:

5. Make sure that you have read and write permissions for the data
```{.bash data-prompt="$"}
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`.

## Next steps
Expand Down
9 changes: 7 additions & 2 deletions docs/install/upgrade-from-70.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Upgrading from Percona Server for MongoDB 7.0 to 8.0

To upgrade Percona Server for MongoDB to version 8.0, you must be running version
## Considerations

1. To upgrade Percona Server for MongoDB to version 8.0, you must be running version
7.0. Upgrades from earlier versions are not supported.

Before upgrading your production Percona Server for MongoDB deployments, test all your applications
2. Before upgrading your production Percona Server for MongoDB deployments, test all your applications
in a testing environment to make sure they are compatible with the new version.
For more information, see [Compatibility Changes in MongoDB 8.0](https://www.mongodb.com/docs/v8.0/release-notes/8.0-compatibility/)

3. Enable Transparent Hugepages (THP) before starting Percona Server forMongoDB 8.0. THP is required to use the new TCMalloc version with MongoDB. For how to enable THP, see [Enable Transparent Hugepages (THP)](https://www.mongodb.com/docs/upcoming/administration/tcmalloc-performance/#enable-transparent-hugepages--thp-) section of documentation.

4. If you are using data-at-rest-encryption with KMIP server, check the [upgrade considerations](../kmip.md#upgrade-considerations)
We recommend to upgrade Percona Server for MongoDB from official Percona repositories using [`percona-release` repository management tool](https://docs.percona.com/percona-software-repositories/index.html) and
the corresponding package manager for your system.

Expand Down
4 changes: 4 additions & 0 deletions docs/install/yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ Percona provides the [`percona-release`](https://docs.percona.com/percona-softwa
By default, {{psmdb.full_name}} stores data files in `/var/lib/mongodb/`
and configuration parameters in `/etc/mongod.conf`.

## Enable Transparent Hugepages (THP)

Enable Transparent Hugepages (THP) before starting Percona Server for MongoDB 8.0. THP is required to use the new TCMalloc version with MongoDB. For how to enable THP, see [Enable Transparent Hugepages (THP)](https://www.mongodb.com/docs/upcoming/administration/tcmalloc-performance/#enable-transparent-hugepages--thp-) section of documentation.

## Run {{psmdb.full_name}}

!!! note
Expand Down

0 comments on commit c9f3bec

Please sign in to comment.