memcached ha e fumane faele ea pid? CentOS 7 e totobatsa pid ea memcache

Ha ke ntse ke hlophisa lenaneo la ho beha leihlo la Monit bakeng sa memcached ho CentOS 7 , ke ile ka kopana le bothata moo memcached e neng e sa fumane faele ea pid...

memcached ha e fumane faele ea pid? CentOS 7 e totobatsa pid ea memcache

Litlhophiso tsohle tseo re ka li fumanang ho googling li na le mohala ona:

check process memcached with pidfile /var/run/memcached/memcached.pid

empa,/var/run ha ho le ea mong memcached.pid faele, kapa /var/run/memcached foldara.

hlahlobisitsoe /usr/lib/systemd/system/memcached.service

[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/memcached
ExecStart=/usr/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS
  • Ka hona, ha ho na tsela ea ho ea faeleng ea .pid.
  • Haeba u sheba memcached ntle le faele ea .pid?
  • Hape, na faele ee ea .pid e ka ba sebakeng se seng?

CentOS 7 e hlakisa aterese ea sebaka sa faele ea memcache pid joang?

Tharollo ke ho hlakisa aterese ea faele ea memcache pid eo u e boletseng ho tlhophiso ea tlhahlobo ea Monit▼

check process memcached with pidfile /var/run/memcached/memcached.pid

Kenya aterese ea faele ea memcached pid e latelang▼

check process memcached with match memcached

Litlhophiso tsa rona tsa memcached:

check process memcached with match memcached
start program = "/usr/bin/systemctl start memcached"
stop program = "/usr/bin/systemctl stop memcached"
if failed host 127.0.0.1 port 11211 protocol MEMCACHE then restart
if cpu > 70% for 2 cycles then alert
if cpu > 98% for 5 cycles then restart
if 2 restarts within 3 cycles then timeout

Bakeng sa mokhoa oa ho kenya Centos 7 Monit monitoring 5.14, ka kopo sheba thuto e latelang▼

Comments

您的邮箱地址不会被公开。必填项已用*标注

Scroll ho Top