首页 > 分享 > ?��?��c�?Tsarc��?Z�atscs�a?�e??cS�?�?-c��a?�e??c�?

?��?��c�?Tsarc��?Z�atscs�a?�e??cS�?�?-c��a?�e??c�?

2013年5月9日     浏览数:642 发表评论 阅读评论

e��a?�markdown?�?a??blogi??bloga�?c�?a��e?�a?�markdown?�?a???�??????�a��a��

Tsar???a��a???

Tsar????�?a�?cs�e��e��a�?a��i??a?�e�?c�?????��e��???aS?a�?cs�c?�c�Ya?????i??a��cpui??ioi??memi??tcpc��i?�a�?a?Sa?�c�??��??�i??a��squid haproxy nginxc��i?�i??tsar?�????a�z?��?Y?c?�a�?aZ�a???Y?c?�i???�?a??a?�e�?a?�c�?a�????aS?a�?cs�a?????!

  • a�??�?c?�a?�i?shttp://tsar.taobao.org/
  • githuba?�a?�i?shttps://github.com/kongjian/tsar

atsare�?a�?e??cs�a?�a?�a�?

Tsarcs�a??c�?i?Y

  • ?S�???a?�???
    • ?�?a�??S�????�????
    • ?�?c�?e�?a??a��e?za??e?Ye??i??a?S?�????a?�a?�bugi??a??a?�a��a?�a�?a?�
  • ???a?�a?�
  • e�?a?�a??a�sc?�c�Y?��e??c��?Z�???a?�
  • e�?a?�a??a�sa??c�?e??a��cs�c��?Z�???a?�
  • a??e�?a��??�a��?��e��c��?Z�a��a��a?????
  • ?�??????�????Y?c?�
  • ?�????e?�a�?a?�e??c?�?��??�a?�
  • e�?a??nagioscs�e?�aS?c��?Z�i??e?�e?????c�?

a��e?�Tsar

  • a?�e??a��e?�a??c��a?�i??githube�?e��a��???a?�a?�a?�c�??�???�i??a??e?�a�?a??c�??�?c?�a��e?�a�?i??c��c��c?�a?�e??cs�a��a�?i??e�?c?�?��a��/socket?��a��a??c?�e?�e�?c?�e��?�?c?�a?�a�?a��e?�??�e??a??a��
git clone git://github.com/kongjian/tsar.git
cd tsar
make
make install
wget -O tsar.zip https://github.com/alibaba/tsar/archive/master.zip
unzip tsar.zip
cd tsar
make
make install
  • Tsar???c�?a?�cs�c��a?�a�??��a��

a�?a��a�� conf

a�?a��a�� devel

a�?a��a�� include

a�?a��a�� modules

a�?a��a�� rpm

a�?a��a�� src

a��a��a�� tools

e�?c?�?��a��a??confc��a?�i?????a?�?��a��a??modulesc��a?�e�?e??i??Tsara?�a?????e�?e��a��a??c�??��??�cs�???a?�cs�i???��a�?atscs�c��?Z�e�?e��e?�e�??��aS?a??c�?a��

  • a??c�?Tsarcs�atsc��?Z�???a?�

a??conf/tsar.conf?��a��a?�cs�a??a?�a??c?�?��aS�a?Sa��a?�ona��a�?

mod_ts_cache on
mod_ts_client on
mod_ts_codes on
mod_ts_conn on
mod_ts_err on
mod_ts_os on
mod_ts_storage on

a��e?�a?�a?Ze�?c?�?��a��a?se?�a�?a?�a?�/etc/tsar/tsar.confi???Z�e��cs�?��a��e?�e�?c?�e?�a??e�?c?�?��a��a??a?�?????�a��

  • a�?a?Zatscs�socket?��a��

    a??modulesc��a?�a?�cs�atsc�?a�?cs�???a?�c???c�?a?�e????�atscs�a?�a??socket?��a��cs�??�a�si??e?�a??socket?��a��e?za??e�?e�?i??a��?z?a??c?�a??a?�a??a?Si??Tsarc��?Z�atse??a?�???a??a?sa�??��??�cs�a��

    a?�a��mod_ts_client.ce�?e��e�?c?�cs�socket?��a��cs�a??c?�???”/var/run/trafficserver/mgmtapisocket”

    e�?e��a��e?�cs�atscs�socket?��a��a??”/usr/local/var/trafficserver/mgmtapisocket”

    ?SSe�?c?�?��a��e�Y???a?�cs�socket?��a��a?�?�?a??a�?c?�e?�a��e?�a��a??a�?c�??Z?a??c�?a?�a��

    a?�c��a?Ya??a�?e��?��a??c�?e??e?z?Z?cs�?�?a??i?s
    ln -s /usr/local/var/trafficserver/mgmtapisocket /var/run/trafficserver/mgmtapisocket

a??c�?Tsar

tsar --ts
tsar --ts_conn
tsar --ts_cache
#??�a�s?��e�?e�?es�?�?a??
tsar --ts -i 1
#a�z?��e?�a�??�?a??
tsar --ts -l 1
#??�e��c��a???�?a??
tsar --ts --ts_conn --ts_cache

a�?a?Zats???a?�a?�e???�??�?

  • c�??Z?a?Se?Sa��e��a?�a?�a��

??�a�z-?��??�a?�a?? 19:41:18

ts : ???c��e?�?��?��i?????c��e?z?Z??��i???�?e�?i??a�?a?�?��e�?i?????a??e?z?Z?a��c?�cs�e?�?��?��

??�a�z-?��??�a?�a?? 19:46:42

ts_conni?s cliente?z?Z??��i??servere?z?Z??��i??cachecs�e?z?Z??��i???��a?�cs�e?z?Z??��i????�e�?cs�cliente?z?Z??��i??clienta?�e�?cs�a?�aS??��i??servera��c?�cs�a?�aS?c??

e��?�???Z_e??e�? 20:01:13

transaction & connectioni????�e?z?Z?i??a?�a??a?�a�sa??a?�?��??�i??transactionc�?a�?cs�????�?a??a��c?�e?�?��cs�c�Ye�?i??a????�a??a�?a??a��a��c?�e�???�a?�aS�

e��?�???Z_e??e�? 20:02:30

t_cli = transaction in client side, t_server = transaction in server side.

  1. 七魔星呼吸
    2013年5月10日10:50 | #1

    沙发,相当于一个监控软件,拿分走人。哈哈

  2. dobk
    2013年12月17日18:28 | #2

    han…为什么打开后,几乎数据都是空的?能否求解释。。

  3. 纸鸢
    2013年12月17日22:30 | #3

    281057393,加群吧@dobk

  4. SEEU
    2014年4月17日14:58 | #4

    刚刚启用,为啥全是0啊 直接cat数据文件也是如此。

  1. 本文目前尚无任何 trackbacks 和 pingbacks.
advertisement blocker for chrome software development company description software development company in ahmedabad software development company in austria software development company in bangalore software development company in baroda software development company in canada software development company in chandigarh software development company in coimbatore software development company in delhi