ALB Sticky Sessions or a working MATOMO_GENERAL_SALT ? Containerized environment

Hi, I’ve got Matomo configured completely headless inside a docker container that runs on AWS ECS with an AWS Application load balancer in front of it. I’m running two containers in a load balanced environment. Hopefully more some day.

I was consistently giving me errors logging in until I learned that config.ini.php were not the same. The differing line was the “salt”. So I ssh’d thru my bastion, to my ECS host, and used docker exec to get a bash prompt. Then with a bit of finagling I was able to make both salts the same. After that the errors went away, terrific.

With more reading, I learned that Matomo has a convention where you can create ENV Vars of the pattern MATOMO_$CONFIG-SECTION_$CONFIG-PARAMETER, so I was hopeful that I could create MATOMO_GENERAL_SALT with a long secret string and have the same salt on all instances.

I tried this. It didn’t set them the same. :(. Can someone help me understand what order stuff like this gets set in, and why it might not have been set?

Soo, if that doesn’t work, or isn’t supposed to work, my next option is to enable sticky sessions in the ALB listener rule which “should work” but I want to ask you folks before I go about doing that.

Advice? Thanks.