참고 링크
http://www.mongodb.org/display/DOCS/Monitoring+and+Diagnostics#MonitoringandDiagnostics-HostedMonitoring
http://gurjarmehul.wordpress.com/2011/12/27/monitoring-mongodb/
몽고DB를 모니터링하기 위한 방법은 다양하다.
- 툴을 이용한 모니터링
- munin
- Server stats: this will retrieve server stats (requires python; uses http interface)
- Collection stats, this will display collection sizes, index sizes, and each (configured) collection count for one DB (requires python; uses driver to connect)
- cacti
- Mikoomi provides a MongoDB plugin for Zabbix
- Nagios
- Motop - Realtime monitoring tool for several MongoDB servers. Shows current operations ordered by durations every second.
- mtop - A top like utility for Mongo
- Mongo Live - A Chrome extension that provides a real-time server status view (uses the rest interface).
- Shell Command
- db.serverStatus() : 일반적인 서버 상태 정보
- db.stats() : 선택된(use) 데이타베이스 상태 정보
- db.foo.find().explain() : 쿼리 실행 계획
- db.users.stats() : collection 통계
- 프로파일러
- db.setProfilingLevel(2) ; profile enable
- db.system.profile.find() : slow query see
- db.setProfilingLevel(0) ; profile disable
- Utility
mongostat --host 127.0.0.1:27017 30 --noheaders > perflog.txt
30초마다 헤더정보 없이 mongostat의 결과 정보를 peflog.txt에 기록해라.
- Mongotop
- read/write의 성능 정보(sec/per)
- Query profiler(Slow query 분석)
- Http console
'Etc' 카테고리의 다른 글
성능 정보 수집하기 (0) | 2012.07.12 |
---|---|
스트레스 테스트 batch request/sec 정보 공유 (0) | 2012.07.11 |
인메모리DB, 틈새에서 대세로? memSQL (2) | 2012.06.26 |
Redis 사용 (0) | 2012.06.07 |
Redis(Windows OS) 복제 구성하기 (2) | 2012.06.07 |