forked from LittlePeng/redis-monitor
-
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.
- Loading branch information
pengjilu
committed
May 11, 2013
1 parent
33f9301
commit 3fd9ea1
Showing
4 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
һ��Monitor | ||
1.Ϊÿ��redisʵ������һ����ʱ�̣߳������ռ�Info���ݣ����洢���£� | ||
1. Info ����ȡʧ���DZ���Ϊ NULLֵ | ||
����ȡ�������ݵ����洢��������ʾ | ||
2. Memory ��peak��current | ||
3. command�� ���β�ֵ������ | ||
4.Status �� down��Master��detail����slave��detail������ֻ�������α��ʱ��¼ | ||
5.Hit rate | ||
6.keys��expires | ||
7.�������� expired��evicted | ||
|
||
2.���������� | ||
ÿ3sȡһ�Σ���ôÿСʱ���ݣ�1200��һ��Info����1.5K����ôһ��ʵ��1Сʱ1.8M����ô20��ʵ��һ��������ݣ�860M�� | ||
Infoȫ�����ݻ��Dz���ȫ������һ�ݣ�����redis�ڴ�ռ�ã�����ʹ��sqllite��ѹ������ | ||
|
||
��ô������Info����������һ��200�ֽڣ���ôһ��������120M����������7�죻��Monitor��ʱ��顣 | ||
|
||
redis����ZSET���棬ʹ��UNIX ʱ���Ϊscore����������ʹ��json���档 | ||
|
||
����Web���棺 | ||
Overview + Live | ||
|
||
����ʹ�÷�ʽ | ||
redis-live.conf Ϊjson��ʽ���� | ||
�ռ��������ݴ洢Ŀǰֻ��ʹ��redis | ||
|
||
������ | ||
�������̣� redis-monitor.py Ϊ��ʱ�ռ����� | ||
redis-live.py ��վ�㣬�˿�Ϊ��8888 | ||
|
||
��װ������ | ||
python2.7 | ||
tornado | ||
redis-py | ||
python-dateutil-2.1 | ||
jinja2 | ||
werkzeug | ||
|
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>RedisLive</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.python.pydev.PyDevBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.python.pydev.pythonNature</nature> | ||
</natures> | ||
</projectDescription> |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?eclipse-pydev version="1.0"?> | ||
|
||
<pydev_project> | ||
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH"> | ||
<path>/RedisLive</path> | ||
</pydev_pathproperty> | ||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> | ||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> | ||
</pydev_project> |
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,4 @@ | ||
#Tue Apr 23 11:08:40 CST 2013 | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 | ||
encoding/redis_monitor.py=utf-8 |