The ideal location for statistics sharing databases is a memory based filesystem. The default of /tmp is memory based on some Linux distributions, but not on most. /dev/shm is always a memory based filesystem.
Draft Release Note
If neither the environment variable ydb_statsdir, nor its predecessor, gtm_statsdir, is set, the environment variable initialization of ydb_env_set sets both to /dev/shm. In the event either or both are set, ydb_env_set ensures both have the same value, with $ydb_statsdir, if any, taking precedence over $gtm_statsdir. ydb_env_unset unsets the value of both.
Final Release Note
Description
The ideal location for statistics sharing databases is a memory based filesystem. The default of /tmp is memory based on some Linux distributions, but not on most. /dev/shm is always a memory based filesystem.
Draft Release Note
If neither the environment variable
ydb_statsdir
, nor its predecessor,gtm_statsdir
, is set, the environment variable initialization ofydb_env_set
sets both to/dev/shm
. In the event either or both are set, ydb_env_set ensures both have the same value, with$ydb_statsdir
, if any, taking precedence over$gtm_statsdir
.ydb_env_unset
unsets the value of both.