jam2in / arcus-misc Goto Github PK
View Code? Open in Web Editor NEWThis project forked from naver/arcus-misc
Arcus miscellaneous code
License: Apache License 2.0
This project forked from naver/arcus-misc
Arcus miscellaneous code
License: Apache License 2.0
Moved from
arcus-task/issue#36
arcus-task/issue#53
arcus-task 리포지토리에 여러 개의 memc_mon 관련 이슈에 코멘트가 복잡하게 얽혀서 이쪽으로 옮겨 재정리합니다.
file delete detection 후 process 존재 여부 check를 위해 kill() 호출 사이에 sleep time으로도 사용되는
monitoring 주기를 짧게(예... 50ms) 설정하여 실행한 경우 드물지만 아래와 같은 문제가 발생합니다.
commit : jam2in/arcus-misc@e5f69ab
시험 방법
memcached 로그와 arcus_memc_mon 로그 확인하여
memcached 정상 기동 여부와 znode 정상 삭제 여부 확인
위 시험 방법으로 시험하면 pid file이 삭제되는 현상이 있습니다.
원인은 다음과 같습니다.
이슈 #53 반영하여 시험하였을 때의 monitoring process 로그입니다.
=== Checking memcached process (1/1) - pid : 13972 - addr : 127.0.0.1:11215 ... OK
=== Checking memcached process (1/1) - pid : 13972 - addr : 127.0.0.1:11215 ... OK
=== Detection : pid file deleted : memcached.127.0.0.1:11215
Memcached process exists. Do not unregister. : (-1, 127.0.0.1:11215)
Pid file deleted, but cannot unregister 127.0.0.1:11215 memcached node!
=== Checking memcached process (1/1) - pid : 13972 - addr : 127.0.0.1:11215 ... OK
=== Detection : pid file created : memcached.127.0.0.1:11215
=== Detection : pid file modified : memcached.127.0.0.1:11215
Register memcached repl node. Start monitoring. : (14090, 127.0.0.1:11215)
=== Checking memcached process (1/2) - pid : 14090 - addr : 127.0.0.1:11215 ... OK
=== Checking memcached process (2/2) - pid : 13972 - addr : 127.0.0.1:11215 ... NOK
Memcached process does not exist. It may abnormally terminate. : (13972, 127.0.0.1:11215)
Zookeeper error. zpath=/arcus_repl/group_list/test/g0/127.0.0.1:11215^127.0.0.1:20125^0000179165, error=-101(no node), arcus_memc_mon_rm_znode.c:313
Znode deletion fails.
Unregister memcached repl node. Stop monitoring. : (13972, 127.0.0.1:11215)
=== Detection : pid file deleted : memcached.127.0.0.1:11215
Memcached process exists. Do not unregister. : (-1, 127.0.0.1:11215)
Pid file deleted, but cannot unregister 127.0.0.1:11215 memcached node!
=== Checking memcached process (1/1) - pid : 14090 - addr : 127.0.0.1:11215 ... OK
=== Checking memcached process (1/1) - pid : 14090 - addr : 127.0.0.1:11215 ... OK
=== Checking memcached process (1/1) - pid : 14090 - addr : 127.0.0.1:11215 ... OK
=== Checking memcached process (1/1) - pid : 14090 - addr : 127.0.0.1:11215 ... OK
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.