Scope :
This article describes the methodology in order to define a password to REDIS.
By default, there is no password defined.
Methodology :
Following components may connect to Redis:
- ses-console (for session cache)
- ses-gateway (for api session cache)
- PTE (for translation cache). Redis parameters are retrieved from TRM configuration.
The order of the password reconfiguration is as follows :
1. SES Console
Through WebUI, go to Administration / Settings. Then edit the Redis settings section by setting the Redis authentication password parameter with the requested Redis password.
Then restart the systran-ses-console service.
# systemctl restart systran-ses-console.service
2. SES Gateway
Edit the .yml config file within /opt/systran/apps-node/translation-gateway/config.
And set the Redis password in front of pass directive.
ApiKeys: Cache: host: localhost port: 6379 pass: prefix: keyserv validity: 600 #in seconds, 0 for infinite
Then restart the systran-ses-gateway service.
# systemctl restart systran-ses-gateway.service
3. Translation Resource Monitor
The change must be performed on each TRM node. Edit the /opt/systran/translation-resource-monitor/etc/trm.cfg file.
Uncomment only the redis-password directive and set it the requested Redis password.
#redis config #with-redis-cache = true #redis-host = localhost #redis-port = 6379 #redis-key-prefix = PTE_ #redis-password = SESpassword
Then restart the systran-translation-resource-monitor service.
# systemctl restart systran-translation-resource-monitor.service
4. Redis password
Edit file /etc/redis.conf, uncomment line starting with "requirepass" and update with password (password "systran" for used below for REDIS :
requirepass systran
Relaunch REDIS :
# systemctl restart redis
Translation testing
Test the translation.
If there are issues, restart all of the SPNS9 services and retest.