Anchor | ||||
---|---|---|---|---|
|
...
To enable password authentication on regions with one node/server:
Stop redis:
cd eaglemgr
./stop starweb redis extractservice
Edit eagle/estar/tpe/cfg/eaglemc2s/redis/redis.conf file. Uncomment the requirepass parameter and set a long string as the password:
...
Restart REDIS:
cd eaglemgr
./restart starweb redisserver
Restart MC2:
./restart starweb extractservicelb extractserviceworkerstart starweb redis extractservice
Enabling Password Authentication on Regions with Several Nodes
On regions with several nodes REDIS runs in a master/slave configuration, REDIS Sentinel is used to manage the instances.
To change the password for regions with several nodes, perform the following configuration changes on each node on which MC2 is running:
Stop redis:
cd eaglemgr
./stop starweb redis extractservice
Edit eagle/estar/tpe/cfg/eaglemc2s/redis/redis.conf file.
...
sentinel auth-pass masterid MyVeryLongAndComplexPasword12345
Where masterid is the master name from sentinel monitor parameter
Make sure this parameter is after parameter sentinel monitor in the configuration file.
Example:
sentinel monitor o171s031 10.80.105.93 20438 1
sentinel auth-pass o171s031 AhhhHHHHdddtttqqqYYYYYYY22222888777jjjjjjjjjZ
Delete all lines after this line:
# Generated by CONFIG REWRITE
Restart REDIS:
cd eaglemgr
./restart starweb redisserver redissentinel
Restart MC2:
./restart starweb extractservicelb extractserviceworker start starweb redis extractservice