-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multiple redis per instance scenario
- Loading branch information
Showing
49 changed files
with
70 additions
and
63,127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[Unit] | ||
Description=Advanced key-value store | ||
After=network.target | ||
Documentation=http://redis.io/documentation, man:redis-server(1) | ||
|
||
[Service] | ||
Type=forking | ||
ExecStart=/usr/bin/redis-server /etc/redis/redis-{{ item.id }}.conf | ||
PIDFile=/run/redis/redis-server-{{ item.id }}.pid | ||
TimeoutStopSec=0 | ||
Restart=always | ||
User=redis | ||
Group=redis | ||
RuntimeDirectory=redis | ||
RuntimeDirectoryMode=2755 | ||
|
||
UMask=007 | ||
PrivateTmp=yes | ||
LimitNOFILE=65535 | ||
PrivateDevices=yes | ||
ProtectHome=yes | ||
ReadOnlyDirectories=/ | ||
ReadWritePaths=-/var/lib/redis | ||
ReadWritePaths=-/var/log/redis | ||
ReadWritePaths=-/var/run/redis | ||
|
||
NoNewPrivileges=true | ||
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE | ||
MemoryDenyWriteExecute=true | ||
ProtectKernelModules=true | ||
ProtectKernelTunables=true | ||
ProtectControlGroups=true | ||
RestrictRealtime=true | ||
RestrictNamespaces=true | ||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX | ||
|
||
# redis-server can write to its own config file when in cluster mode so we | ||
# permit writing there by default. If you are not using this feature, it is | ||
# recommended that you replace the following lines with "ProtectSystem=full". | ||
ProtectSystem=true | ||
ReadWriteDirectories=-/etc/redis | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
Alias=redis-{{ item.id }}.service |
Oops, something went wrong.