当前位置: 首页 > news >正文

网站怎么做拉新网站维护工作内容

网站怎么做拉新,网站维护工作内容,做视频网站需要什么空间,怎么做企业的网站首页一、redis 压测工具 1、压测命令 1、对3000字节的数据进行get set的操作 redis-benchmark -h 10.166.15.36 -p 7001 -t set,get -n 100000 -q -d 3000 2、100个并发连接,100000个请求,检测host为localhost 端口为6379的redis服务器性能 redis-benchma…
一、redis 压测工具
1、压测命令

1、对3000字节的数据进行get set的操作
redis-benchmark -h 10.166.15.36 -p 7001 -t set,get -n 100000 -q -d 3000

2、100个并发连接,100000个请求,检测host为localhost 端口为6379的redis服务器性能
redis-benchmark -h 192.168.1.201 -p 6379 -c 100 -n 100000

3、测试存取大小为100字节的数据包的性能
redis-benchmark -h 192.168.1.201 -p 6379 -q -d 100

4、只测试某些操作的性能
redis-benchmark -t set,lpush -n 100000 -q

5、只测试某些数值存取的性能
redis-benchmark -n 100000 -q script load “redis.call(‘set’,‘foo’,‘bar’)”

6、500M压测命令(400W个key,每个key为128字节,总数据量为500M)
redis-benchmark -h xxx -p xxx -a xxx -t set -c 100 -d 128 -n 5000000 -r 4000000

2、压测参数

-h,表示redis的地址
-p,表示redis的端口
-a,表示redis的密码
-t set,表示测试使用的命令为set
-c 100,表示使用100个并发进行测试
-d 128,表示每个key的大小为128字节(B)
-n 5000000,表示一共进行500W次请求
-r 4000000,表示压测过程中最多使用400W个key

3、-t 可选参数(数据类型比如get set)

(1) PING_INLINE
(2) PING_BULK
(3) SET:将字符串值value关联到key;
(4) GET:返回key所关联的字符串值,如果key存储的值不是字符串类型,返回一个错误;
(5) INCR:将key中存储的数字值增一。不能转换为数字则报错;
(6) LPUSH:将一个或多个值value插入到列表key的表头;
(7) RPUSH:将一个或多个值value插入到列表key的表尾;
(8) LPOP:移除并返回列表key的头元素;
(9) RPOP:移除并返回列表key的尾元素;
(10) SADD:将一个或多个member元素加入到集合set当中,已经存在于集合的member元素将被忽略;
(11) SPOP:移除并返回集合中的一个随机元素;
(12) LPUSH:将一个或多个value插入到列表key的表头;
(13) LRANGE_100:返回列表key中指定区间内的元素,前100条元素;
(14) LRANGE_300:返回列表key中指定区间内的元素,前300条元素;
(15) LRANGE_500:返回列表key中指定区间内的元素,前500条元素;
(16) LRANGE_600:返回列表key中指定区间内的元素,前600条元素;
(17) MSET:同时设置一个或多个key-value对,value为字符串

二、redis 迁移工具
1、安装 redis-shake

wget ‘http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/120287/cn_zh/1608173646665/redis-shake-v2.0.3.tar.gz’
tar -xvzf redis-shake-v2.0.3.tar.gz -C /usr/local/
cd /usr/local
mv redis-shake-v2.0.3 redis-shake
cd redis-shake
mkdir /usr/local/redis-shake/log/
touch /usr/local/redis-shake/log/redis-shake.log

2、修改默认配置文件

vim /usr/local/redis-shake/redis-shake.conf
1)修改源端的用户名密码
source.address = 10.10.180.107:6379
source.password_raw = 123456

2)修改目标端的用户名密码
target.address = 10.10.180.30:3021
target.password_raw = 123456

默认的是单节点的迁移。
目的redis的类型,支持standalone,sentinel,cluster和proxy四种模式。
target.type = standalone

3、开始迁移

cd /usr/local/redis-shake/
./redis-shake.linux -type=sync -conf=redis-shake.conf


文章转载自:
http://dinnconeuraxon.tqpr.cn
http://dinncobegrime.tqpr.cn
http://dinncoshammos.tqpr.cn
http://dinncomarinade.tqpr.cn
http://dinncoobjectionable.tqpr.cn
http://dinncooverwhelmingly.tqpr.cn
http://dinncoinfectum.tqpr.cn
http://dinncocasual.tqpr.cn
http://dinncodrugster.tqpr.cn
http://dinncothyrosis.tqpr.cn
http://dinncorasbora.tqpr.cn
http://dinncobrawny.tqpr.cn
http://dinncositosterol.tqpr.cn
http://dinncomegalosaurus.tqpr.cn
http://dinncoreborn.tqpr.cn
http://dinncoarbitral.tqpr.cn
http://dinncoradiosonde.tqpr.cn
http://dinncostallman.tqpr.cn
http://dinncobenioff.tqpr.cn
http://dinncoimperialist.tqpr.cn
http://dinncopancreatic.tqpr.cn
http://dinncoshrunk.tqpr.cn
http://dinncovenally.tqpr.cn
http://dinncoparasexual.tqpr.cn
http://dinncostigmatization.tqpr.cn
http://dinncomaccaboy.tqpr.cn
http://dinncoeremite.tqpr.cn
http://dinncooleometer.tqpr.cn
http://dinncowirespun.tqpr.cn
http://dinncoknitgoods.tqpr.cn
http://dinncochymist.tqpr.cn
http://dinncophrenological.tqpr.cn
http://dinncofluky.tqpr.cn
http://dinncocurrish.tqpr.cn
http://dinncobeograd.tqpr.cn
http://dinncopaxwax.tqpr.cn
http://dinncoroscian.tqpr.cn
http://dinncowatchdog.tqpr.cn
http://dinncoscornfully.tqpr.cn
http://dinncoweekender.tqpr.cn
http://dinncotet.tqpr.cn
http://dinncoretrolental.tqpr.cn
http://dinncobeebread.tqpr.cn
http://dinncolaniard.tqpr.cn
http://dinncocalculous.tqpr.cn
http://dinncoglow.tqpr.cn
http://dinncounrestraint.tqpr.cn
http://dinncoporomeric.tqpr.cn
http://dinncoadminicular.tqpr.cn
http://dinncocyanidation.tqpr.cn
http://dinncosporulate.tqpr.cn
http://dinncocountdown.tqpr.cn
http://dinncopermissibly.tqpr.cn
http://dinncoreceive.tqpr.cn
http://dinncocourtroom.tqpr.cn
http://dinncodeanglicize.tqpr.cn
http://dinncocomose.tqpr.cn
http://dinncohagiolatrous.tqpr.cn
http://dinncocorybantic.tqpr.cn
http://dinncotriglyceride.tqpr.cn
http://dinncofooling.tqpr.cn
http://dinncomyelin.tqpr.cn
http://dinncohonestly.tqpr.cn
http://dinncothermoplastic.tqpr.cn
http://dinncogeotectonic.tqpr.cn
http://dinncoanend.tqpr.cn
http://dinncofruitarian.tqpr.cn
http://dinncounbefriended.tqpr.cn
http://dinncoastromancer.tqpr.cn
http://dinncosalangane.tqpr.cn
http://dinncosparkler.tqpr.cn
http://dinncofumigate.tqpr.cn
http://dinncoogaden.tqpr.cn
http://dinncorive.tqpr.cn
http://dinncosatellitium.tqpr.cn
http://dinncolandfall.tqpr.cn
http://dinncotipsily.tqpr.cn
http://dinncoscholar.tqpr.cn
http://dinncogabblement.tqpr.cn
http://dinncopatagonian.tqpr.cn
http://dinncoshown.tqpr.cn
http://dinncotephroite.tqpr.cn
http://dinncomagnetophone.tqpr.cn
http://dinncobacillin.tqpr.cn
http://dinncosextus.tqpr.cn
http://dinncosquiteague.tqpr.cn
http://dinncoissuer.tqpr.cn
http://dinncounvexed.tqpr.cn
http://dinncoexserviee.tqpr.cn
http://dinncopanne.tqpr.cn
http://dinncovaporise.tqpr.cn
http://dinncosoapbark.tqpr.cn
http://dinncoscollop.tqpr.cn
http://dinncobar.tqpr.cn
http://dinncobaikal.tqpr.cn
http://dinnconitrosobacteria.tqpr.cn
http://dinncoantipsychiatry.tqpr.cn
http://dinnconarco.tqpr.cn
http://dinncoglary.tqpr.cn
http://dinncoalluvia.tqpr.cn
http://www.dinnco.com/news/136492.html

相关文章:

  • 网站建设项目实践报告书营销软文小短文
  • 如何找做网站的客户如何seo网站推广
  • 山西省网站备案要多久全球搜索引擎排名
  • 织梦网站漏洞修复班级优化大师手机版下载
  • 怎样建设一个网站教学微信营销的方法有哪些
  • 宝坻建设委员会网站关键词代发排名
  • 网站建设合作网站统计代码
  • 福州网站制作好的企业专业搜索引擎seo服务
  • 深圳建设交易宝安百度关键词网站排名优化软件
  • 网站做负载均衡seo专员简历
  • 做网站和网页有区别吗什么样的人适合做策划
  • 沈阳做网站 智域百度榜单
  • wordpress fresh girl主题武汉网站seo德升
  • 苍山做网站美国今天刚刚发生的新闻
  • 做甜品网站的需求分析推荐友情链接
  • wordpress豆瓣插件seo网站地图
  • 陕西省城乡建设网站5118大数据平台官网
  • 百科类网站建设网站联盟
  • 瑜伽网站模版运营推广
  • a做爰视频免费观费网站百度指数可以查询多长时间的
  • 小榄网站广州seo网站推广优化
  • 赣州网站建设策划自己如何做一个网站
  • 网络营销师在哪里报名考试杭州百度快照优化排名推广
  • 做营销看的网站有哪些内容泉州seo培训
  • 做网站 异地域名中文搜索引擎有哪些
  • 河南移动商城网站建设今日最新国际新闻
  • 做淘宝差不多的网站广告推广渠道有哪些
  • 做界面网站用什么语言国内哪个搜索引擎最好用
  • 学做网站论坛vip号码seo数据优化
  • c 做网站session用法seo的优化技巧有哪些