You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
CWD=$(cd $(dirname $0)/; pwd)
cd $CWD/..
systemctl stop m3dbnode
mkdir -p /opt/data/{m3db,m3kv}
mkdir -p /opt/m3db/{bin,etc}
cp -af ./bin/* /opt/m3db/bin/
cp -af ./etc/*.yml /opt/m3db/etc/
sysctl -w vm.max_map_count=3000000
sysctl -w vm.swappiness=1
sysctl -w fs.file-max=3000000
sysctl -w fs.nr_open=3000000
# echo "${USER} hard nofile 3000000" >> /etc/security/limits.conf
# Edit /etc/security/limits.conf file and allow the user under which asterisk runs to modify the ulimit to a higher value.
# <username> hard nofile <number>
ulimit -n 3000000
grep 'vm.max_map_count = 3000000' /etc/sysctl.conf || cat >> /etc/sysctl.conf <<'EOF'
# m3db
vm.max_map_count = 3000000
vm.swappiness = 1
fs.file-max = 3000000
fs.nr_open = 3000000
EOF
sudo cp -a ./systemd/m3dbnode.service /usr/lib/systemd/system/m3dbnode.service
systemctl daemon-reload
systemctl start m3dbnode
systemctl status m3dbnode
m3dbnode.service:
[Unit]
Description="M3DB Timeseries Database"
Documentation=https://docs.m3db.io/
After=network.target
[Service]
WorkingDirectory=/opt/m3db
#EnvironmentFile=/opt/run/m3db/etc/m3dbnode.env
Type=simple
ExecStart=/opt/m3db/bin/m3dbnode -f /opt/m3db/etc/m3dbnode.yml
Restart=on-failure
RestartSec=10s
SuccessExitStatus=0
# May not be honored if higher than kernel limit (sysctl fs.file-max) or process
# limit (sysctl fs.nr_open). Also may not be honored if lower than systemd limit
# (system.conf) or systemd user limit (user.conf).
LimitNOFILE=3000000
[Install]
WantedBy=multi-user.target
install.sh:
m3dbnode.service:
ERROR LOG:
The text was updated successfully, but these errors were encountered: