redisbench和reids-cli測試、監控redis狀態和效能

來源:互聯網
上載者:User

標籤:localhost   伺服器   監控   檢測   資訊   

centos系統

安裝:

yum -y install redis

內建redisbench測試載入器


1、redis-benchmark 
redis基準資訊,redis伺服器效能檢測 

redis-benchmark -h localhost -p 6379 -c 100 -n 100000 
100個並發串連,100000個請求,檢測host為localhost 連接埠為6379的redis伺服器效能 


benchmark工具測試資訊:
測試命令:
redis-benchmark -n 100000 -c 60
向redis伺服器發送100000個請求,每個請求附帶60個並發用戶端
結果(部分):
====== SET ======
對集合寫入測試
  100000 requests completed in 2.38 seconds
100000個請求在2.38秒內完成
  60 parallel clients
每次請求有60個並發用戶端
  3 bytes payload
每次寫入3個位元組的資料
  keep alive: 1
保持一個串連,一台伺服器來處理這些請求

93.06% <= 15 milliseconds
99.96% <= 31 milliseconds
99.98% <= 46 milliseconds
99.99% <= 62 milliseconds
100.00% <= 62 milliseconds
所有請求在62毫秒內完成
42105.26 requests per second
每秒處理42105.26次請求 



2、redis-cli 

redis-cli -h localhost -p 6380 monitor 
Dump all the received requests in real time; 
監控host為localhost,連接埠為6380,redis的串連及讀寫操作
 
 

redis-cli -h localhost -p 6380 info 
Provide information and statistics about the server ; 
提供host為localhost,連接埠為6380,redis服務的統計資訊
 



redis-cli -h 10.10.86.x

>set name jasonOK>get name"jason"


redisbench和reids-cli測試、監控redis狀態和效能

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.