Closed aogier closed 4 years ago
Hi Alessandro,
WA_DB_NAME_PREFIX
is documented here: https://developers.facebook.com/docs/whatsapp/guides/mysql
I'm not aware of WA_DB_SHARD_PREFIX
though, what effect does it have when you set it? Also curious to know how you figured out these two variable names?
Hi Mengyi,
you're completely right and I totally missed this guide! Haven't used the head I've used the legs, and found WA_DB_NAME_PREFIX
starting from other variables and reading waweb application code. The WA_DB_SHARD_PREFIX
can be found with binutils' strings
(1) against coreapp executables. Given that the former variable is indeed documented as the way to consolidate everything on a single db host I think I'll drop it.
Thank you! I don't close this ticket as I'll be glad to share other thoughts if you want otherwise let's close it, regards!
Hi Alessandro,
WA_DB_NAME_PREFIX
is the right variable to use. Will close the issue for now. Look forward to more insights from you. :D
@mengyiyuan do you know whether WA_DB_NAME_PREFIX
is also supported with Postgres?
Hello, I'm working on a rather large setup in order to consolidate databases on a single server instance. It seems that, although undocumented, this is supported via env vars
WA_DB_NAME_PREFIX
andWA_DB_SHARD_PREFIX
:what I'd like to know is that this undocumented feature is here to stay, and/or there are others caveats to bear in mind doing this analysis.
Thank you, regards!