Skip to content

Commit

Permalink
two
Browse files Browse the repository at this point in the history
  • Loading branch information
pengjilu committed May 11, 2013
1 parent 33f9301 commit 3fd9ea1
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
39 changes: 39 additions & 0 deletions readme_ch.txt
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

17 changes: 17 additions & 0 deletions src/.project
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>
10 changes: 10 additions & 0 deletions src/.pydevproject
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>
4 changes: 4 additions & 0 deletions src/.settings/org.eclipse.core.resources.prefs
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

0 comments on commit 3fd9ea1

Please sign in to comment.