nosql - 如何調優 WEBDIS性能(REDIS的HTTP代理)
問題描述
硬件環境:DELL 2950 8 CORE 8G RAM
運行REDIS-benchmark
====== PING_INLINE ====== 33222.59 requests per second====== PING_BULK ====== 33444.82 requests per second====== SET ====== 39682.54 requests per second====== GET ====== 34965.04 requests per second====== INCR ====== 38610.04 requests per second====== LPUSH ====== 36764.70 requests per second====== LPOP ====== 34843.21 requests per second====== SADD ====== 37878.79 requests per second====== SPOP ====== 33783.79 requests per second====== LPUSH (needed to benchmark LRANGE) ====== 34129.69 requests per second====== MSET (10 keys) ====== 23584.91 requests per second
用webdis代理封裝REDIS后,通過http請求來操作REDIS,測試工具webbenchsetsid webbench -c 100 -t 60 http://111.1.3.68:7379/INCR/newcountsetsid webbench -c 200 -t 60 http://111.1.3.68:7379/INCR/newcount最后讀取newcount的值來判斷操作的次數提高 WEBBENCH 并發客戶端 的數量,對最后的結果沒有任何影響。用多臺終端攻擊同一臺機器發現對結果也沒有影響。
每秒的操作數量在17000次左右。LPUSH LPOP 等操作的數量都和這個一樣。
WEBDIS的配置文件
{'redis_host':'127.0.0.1','redis_port':6379,'redis_auth':null,'http_host':'0.0.0.0','http_port':7379,'threads':8,'daemonize':false,'websockets':false,'database':0,'acl': [{'disabled':['DEBUG' , 'FLUSHDB', 'FLUSHALL']},{'http_basic_auth':'user:password','enabled':['DEBUG']}],'verbosity': 3,'logfile': 'webdis.log'}
想問下大家,怎么樣提高WEBDIS的每秒并發性能。怎么樣讓WEBDIS的性能更加接近RERDIS-BENCHMARK測試的結果。
問題解答
回答1:已經停止用webdis了,也不建議大家在生產環境中用
相關文章:
1. mysql日期類型默認值’0000-00-00’ 報錯2. 求救一下,用新版的phpstudy,數據庫過段時間會消失是什么情況?3. mysql replace 死鎖4. mysql - C#連接數據庫時一直這一句出問題int i = cmd.ExecuteNonQuery();5. MYSQL 根據兩個字段值查詢 但兩個值的位置可能是互換的,這個怎么查?6. extra沒有加載出來7. android - 安卓做前端,PHP做后臺服務器 有什么需要注意的?8. javascript - 微信網頁開發從菜單進入頁面后,按返回鍵沒有關閉瀏覽器而是刷新當前頁面,求解決?9. php傳對應的id值為什么傳不了啊有木有大神會的看我下方截圖10. mysql - ubuntu開啟3306端口失敗,有什么辦法可以解決?
