Redis Cluster: add repl_ping_slave_period to slave data validity time.
Redis Cluster: add repl_ping_slave_period to slave data validity time.

When the configured node timeout is very small, the data validity time
(maximum data age for a slave to try a failover) is too little (ten
times the configured node timeout) when the replication link with the
master is mostly idle. In this case we'll receive some data from the
master only every server.repl_ping_slave_period to refresh the last
interaction with the master.

This commit adds to the max data validity time the slave ping period to
avoid this problem of slaves sensing too old data without a good reason.
However this max data validity time is likely a setting that should be
configurable by the Redis Cluster user in a way completely independent
from the node timeout.

sunheehnus/redis,mumingv/redis,ton31337/redis,healerkx/redis,zhiliaoniu/redis,linfangrong/redis,JoeWoo/redis,MOON-CLJ/redis,roth1002/redis,clamoriniere1A/redis,wujf/redis,ttuna/msot-redis,unasm/redis-3.0-annotated,citusdata/redis,MasahikoSawada/redis,atreeyang/redis,YuanZhewei/redis,mengyou0304/redis,abhiklodh/redis,AALEKH/redis,yuhc/redis-benchmark-enhanced,zy416548283/redis-3.0-annotated,Hailei/redis,tzq668766/redis-3.0-annotated,nnog/redis,alenslan/redis,roth1002/redis,seppo0010/redis,francischan714/redis,pcarrier/redis,jxwr/redis,antirez/redis,itugs/redis,badboy/redis,neomantra/redis,0x55/redis-3.0-annotated,pkdevbox/redis,neomantra/redis,Aaron1992/redis,alenslan/redis,ketor/redis,oranagra/redis,NBSW/redis,onlymellb/redis-3.0-annotated,seppo0010/redis,YuraLukashik/redis,twskipper/redis,tanghaodong25/redis,mingyaaaa/redis,seandsky/redis,ituncle/redis,z-fork/redis,davidradunz/redis,SyntaxStacks/redis,gilala/bjredis,guker/redis,jacklee0810/redis-3.0-annotated,msn217/redis-3.0-annotated,magastzheng/redis-3.0-annotated,ctripcorp/redis,jacklee0810/redis-3.0-annotated,SummonY/redis,ytjiang/redis,jasonkying/redis,devaos/redis,j0hnma/hszredis,netroby/redis,csuhawk/redis,a-pavlov/redis,itamarhaber/redis,tzq668766/redis-3.0-annotated,haima-zju/redis-3.0-annotated,itugs/redis,CodeJuan/redis,jackyan/redis,mgk/redis,GrimDerp/redis,slfs007/mk-redis,msn217/redis-3.0-annotated,tjschuck/redis,josiahcarlson/redis,dreamquster/redis,sunheehnus/redis,GitHubMota/redis,zczhuohuo/redis,badboy/redis,wuyu201321060203/redis-3.0-annotated,wenxueliu/redis_comment,mumingv/redis-3.0-annotated,oranagra/redis,oranagra/redis,LongXQ/redis,yossigo/redis,allengaller/redis,AALEKH/redis,moonbingbing/redis-3.0-annotated,twskipper/redis,ituncle/redis,izhoujie/redis,cusspvz/redis,pcarrier/redis,linfangrong/redis,tzq668766/redis-3.0-annotated,MSOpenTech/redis,july2993/redis,ErikDubbelboer/redis,h0x91b/redis,takeshineshiro/redis,z-fork/redis,Markgorden/redis,timothyohare/3rdPartySrc-redis,twskipper/redis,StevenTsai/redis,abhiklodh/redis,supasate/redis,janekmi/redis,tellapart/redis,xujunhai1991/redis,PradheepShrinivasan/redis,simplestbest/redis,valdsJohn/redis,gilala/hbjredis,pmem/redis,YuanZhewei/redis,xuzhezhaozhao/redis_reading,ttuna/msot-redis,davidradunz/redis,AplayER/redis,izhoujie/redis,antirez/redis,rrsean/redis-3.0-annotated,taoguan/redis,honestme/redis,gilala/bjredis,yossigo/redis,a-pavlov/redis,hornen/redis,wbailey5/redis,yybirdcf/learn-redis,seppo0010/rlite-server,aim-for-better/redis,antirez/redis,kensou97/redis,rogerchina/redis,itugs/redis,a-pavlov/redis,zhoudayang/redis,soveran/redis,magastzheng/redis-3.0-annotated,iandyh/redis,4396/redis,PradheepShrinivasan/redis,sunheehnus/redis,hgl888/redis,rogerchina/redis,dayuoba/redis,wbailey5/redis,idning/redis,wenxueliu/redis_comment,sunlianqiang/redis-3.0-annotated,gilala/bjredis,honestme/redis,tanghaodong25/redis,mengzhejin/RedisStudy,holstvoogd/redis,simplestbest/redis,Markgorden/redis,miaoyc1989/redis-3.0-annotated,taoguan/redis,j0hnma/szredis,YuraLukashik/redis,zhiliaoniu/redis,drinkthere/redis-3.0-annotated,zy416548283/redis-3.0-annotated,Soledad89/redis,holstvoogd/redis,xujunhai1991/redis,yossigo/redis,alenslan/redis,spinlock/redis,Aliceljm1/redis,fengshao0907/redis-3.0-annotated,Wangyao14cyy/redis,YuanZhewei/redis,hawkchch/redis,charsyam/redis,hornen/redis,Aliceljm1/redis-3.0-annotated,taoguan/redis,spearhead-ea/redis,pmem/redis,hedisdb/hedis,hawkchch/redis,j0hnma/hszredis,csuhawk/redis,RepmujNetsik/redis,xuguruogu/redis,yuhc/redis-benchmark-enhanced,HeartSaVioR/redis,louisliangjun/redis,shining-yang/redis,saisai/redis,qiyang0221/redis,Soledad89/redis,gaoxianglong/redis,Aliceljm1/redis-3.0-annotated,mingyaaaa/redis,devaos/redis,universsky/redis,jbochi/redis,citusdata/redis,soloestoy/redis,idning/redis,takeshineshiro/redis,brg-liuwei/redis,wprice/redis,riyan8250/redis,modulexcite/redis,Aaron1992/redis,h0x91b/redis,SummonY/redis,healerkx/redis,xuzhezhaozhao/redis_reading,CodeJuan/redis,mattsta/redis,z-fork/redis,ksarch-saas/redis,riyan8250/redis,moonbingbing/redis-3.0-annotated,timothyohare/3rdPartySrc-redis,kaushik94/redis,healerkx/redis,fengshao0907/redis,jingjidejuren/redis,ncopa/redis,shreesundara/redis,yossigo/redis,jackyan/redis,whille/redis-3.0-annotated,alenslan/redis,HouKangkang/redis-3.0-annotated,unasm/redis-3.0-annotated,zhiliaoniu/redis,ouyangkongtong/redis,z-fork/redis,programmecat/redis,gilala/hredis,Hailei/redis,GitHubMota/redis,mengyou0304/redis,LongXQ/redis,zguangyu/redis,soveran/redis,clamoriniere1A/redis,programmecat/redis,zczhuohuo/redis,healerkx/redis,hornen/redis,Markgorden/redis,HunanTV/redis,190235047/redis,YongMan/redis,modulexcite/redis,davidradunz/redis,HouKangkang/redis-3.0-annotated,izhoujie/redis,dreamquster/redis,netroby/redis,ouyangkongtong/redis,190235047/redis,zy416548283/redis-3.0-annotated,yuhc/redis-benchmark-enhanced,maodeyi/redis_lua,kensou97/redis,gilala/redis,splitice/redis,ncopa/redis,ton31337/redis,july2993/redis,devaos/redis,PKRoma/redis,gilala/redis,wbailey5/redis,takeshineshiro/redis,cloudrain21/redis,OmarQunsul/graph-redis,mgk/redis,shreesundara/redis,janekmi/redis,jasonkying/redis,cloudrain21/redis,modulexcite/redis,cnbin/redis,zczhuohuo/redis,devaos/redis,kmiku7/redis,shshlzh/redis-3.0-annotated,maodeyi/redis_lua,ctripcorp/redis,HeartSaVioR/redis,neomantra/redis,louisliangjun/redis,yybirdcf/learn-redis,jxwr/redis,supasate/redis,wprice/redis,wangyikai/redis,rogerlz/redis,fengshao0907/redis,shreesundara/redis,josiahcarlson/redis,buobao/redis-3.0-annotated,seppo0010/redis,guker/redis,jxwr/redis,adamweixuan/redis-3.0-annotated,gilala/hbjredis,RepmujNetsik/redis,kaushik94/redis,itamarhaber/redis,mcanthony/redis,haima-zju/redis-3.0-annotated,0x55/redis-3.0-annotated,duanx/redis,j0hnma/szredis,arijitvt/redis,thomasdarimont/redis,JoeWoo/redis,wujf/redis,OmarQunsul/graph-redis,tjschuck/redis,jingjidejuren/redis,mumingv/redis,adamweixuan/redis-3.0-annotated,wenxueliu/redis_comment,gaoxianglong/redis,gilala/bjredis,mgk/redis,ouyangkongtong/redis,SyntaxStacks/redis,OmarQunsul/graph-redis,charsyam/redis,pedigree/redis,rouzier/redis,thomasdarimont/redis,MasahikoSawada/redis,fankeke/redis-3.0-annotated,mumingv/redis,clamoriniere1A/redis,Sciumo/redis,vincent-vivian-liu/redis,zhcy/redis,arijitvt/redis,JoeWoo/redis,ctripcorp/redis,simplestbest/redis,cnbin/redis,onlymellb/redis-3.0-annotated,cnbin/redis,mingyaaaa/redis,qiyang0221/redis,fankeke/redis-3.0-annotated,Aliceljm1/redis,Aliceljm1/redis,PKRoma/redis,spearhead-ea/redis,pedigree/redis,janekmi/redis,tjschuck/redis,yuhc/redis-benchmark-enhanced,fengshao0907/redis-3.0-annotated,zhoudayang/redis,idning/redis,NBSW/redis,mattsta/redis,CodeJuan/redis,Sciumo/redis,mengyou0304/redis,zhaobo1023/redis-3.0-annotated,LongXQ/redis,netroby/redis,gaoxianglong/redis,xuguruogu/redis,francischan714/redis,brg-liuwei/redis,taoguan/redis,timothyohare/3rdPartySrc-redis,moonbingbing/redis-3.0-annotated,4396/redis,holstvoogd/redis,hgl888/redis,sunlianqiang/redis-3.0-annotated,guker/redis,flashbuckets/redis,huangz1990/redis-3.0-annotated,msn217/redis-3.0-annotated,PradheepShrinivasan/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,SummonY/redis,seandsky/redis,whille/redis-3.0-annotated,xuzhezhaozhao/redis_reading,yybirdcf/learn-redis,xlzhan/redis,YuanZhewei/redis,badboy/redis,gechong/redis-3.0-annotated,nilyang/redis-tdd-annotation,ksarch-saas/redis,unasm/redis-3.0-annotated,soloestoy/redis,roth1002/redis,rrsean/redis-3.0-annotated,Hailei/redis,weizijun/redis,splitice/redis,ncopa/redis,mumingv/redis-3.0-annotated,yuzhangjob/redis-3.0-annotated-unstable,0x55/redis-3.0-annotated,josiahcarlson/redis,blackmady/redis,jbochi/parallel_redis,NBSW/redis,SummonY/redis,ttuna/msot-redis,HunanTV/redis,honestme/redis,kmiku7/redis,wprice/redis,ofirluzon/redis,seppo0010/rlite-server,yybirdcf/learn-redis,wuyu201321060203/redis-3.0-annotated,Wangyao14cyy/redis,mumingv/redis,oranagra/redis,kaushik94/redis,nuxeh/redis,vincent-vivian-liu/redis,seandsky/redis,wprice/redis,pedigree/redis,whille/redis-3.0-annotated,AplayER/redis,jbochi/redis,fengshao0907/redis,brg-liuwei/redis,0x55/redis-3.0-annotated,rouzier/redis,fengshao0907/redis-3.0-annotated,sunheehnus/redis,hornen/redis,xlzhan/redis,iandyh/redis,Aaron1992/redis,hawkchch/redis,ReadCode/redis-3.0-annotated,spearhead-ea/redis,pkdevbox/redis,linfangrong/redis,magastzheng/redis-3.0-annotated,valdsJohn/redis,mcanthony/redis,zhcy/redis,Hailei/redis,csuhawk/redis,GrimDerp/redis,GitHubMota/redis,atreeyang/redis,xuguruogu/redis,july2993/redis,zhoudayang/redis,arijitvt/redis,AplayER/redis,wuyu201321060203/redis-3.0-annotated,Markgorden/redis,ton31337/redis,ipmobiletech/redis,simplestbest/redis,zhcy/redis,programmecat/redis,shshlzh/redis-3.0-annotated,zhcy/redis,duanx/redis,aim-for-better/redis,badboy/redis,gilala/hredis,allengaller/redis,LongXQ/redis,ipmobiletech/redis,HunanTV/redis,Soledad89/redis,4396/redis,j0hnma/hszredis,citusdata/redis,elkingtonmcb/redis,PKRoma/redis,nnog/redis,ketor/redis,cloudrain21/redis,wbailey5/redis,JoeWoo/redis,qiyang0221/redis,mengzhejin/RedisStudy,OmarQunsul/graph-redis,MSOpenTech/redis,netroby/redis,spinlock/redis,duanx/redis,blackmady/redis,splitice/redis,YongMan/redis,seppo0010/rlite-server,takeshineshiro/redis,zhaobo1023/redis-3.0-annotated,kaushik94/redis,ksarch-saas/redis,xujunhai1991/redis,kensou97/redis,saisai/redis,tellapart/redis,himoca/redis,valdsJohn/redis,gongice/redis-3.0-annotated,arijitvt/redis,gilala/hbjredis,zczhuohuo/redis,MasahikoSawada/redis,HeartSaVioR/redis,riyan8250/redis,Aliceljm1/redis,narma/redis,ytjiang/redis,thomasdarimont/redis,neomantra/redis,shining-yang/redis,harrisonfeng/redis,Wangyao14cyy/redis,holstvoogd/redis,narma/redis,charsyam/redis,NBSW/redis,190235047/redis,supasate/redis,colstrom/redis,spinlock/redis,darksideofthemoo/redis-histogram,MasahikoSawada/redis,fankeke/redis-3.0-annotated,j0hnma/hszredis,wujf/redis,huyuezheng/redis,rogerchina/redis,xlzhan/redis,allengaller/redis,jbochi/parallel_redis,soveran/redis,jasonkying/redis,Sciumo/redis,SyntaxStacks/redis,ipmobiletech/redis,wenxueliu/redis_comment,gilala/hbjredis,ramonsnir/redis,GrimDerp/redis,harrisonfeng/redis,yuzhangjob/redis-3.0-annotated-unstable,xuguruogu/redis,shining-yang/redis,ttuna/msot-redis,louisliangjun/redis,AALEKH/redis,huyuezheng/redis,tanghaodong25/redis,RepmujNetsik/redis,pcarrier/redis,ReadCode/redis-3.0-annotated,programmecat/redis,miaoyc1989/redis-3.0-annotated,miaoyc1989/redis-3.0-annotated,ctripcorp/redis,jingjidejuren/redis,PKRoma/redis,miaoyc1989/redis-3.0-annotated,MSOpenTech/redis,mengzhejin/RedisStudy,blackmady/redis,ofirluzon/redis,xuzhezhaozhao/redis_reading,nuxeh/redis,gaoxianglong/redis,dongqifan2/redis-3.0-annotated,pedigree/redis,mgk/redis,dayuoba/redis,ErikDubbelboer/redis,ituncle/redis,zhoudayang/redis,huyuezheng/redis,xujunhai1991/redis,colstrom/redis,saisai/redis,dongqifan2/redis-3.0-annotated,nuxeh/redis,huyuezheng/redis,hawkchch/redis,mattsta/redis,vincent-vivian-liu/redis,kmiku7/redis,h0x91b/redis,StevenTsai/redis,july2993/redis,buobao/redis-3.0-annotated,WorkingOfTimtohyZhang/redis-3.0-annotated,darksideofthemoo/redis-histogram,nnog/redis,universsky/redis,YongMan/redis,hedisdb/hedis,zguangyu/redis,weizijun/redis,4396/redis,ttuna/msot-redis,seppo0010/rlite-server,rouzier/redis,abhiklodh/redis,dreamquster/redis,MOON-CLJ/redis,davidradunz/redis,CodeJuan/redis,gilala/hredis,twskipper/redis,mcanthony/redis,ofirluzon/redis,dongqifan2/redis-3.0-annotated,Soledad89/redis,pkdevbox/redis,colstrom/redis,zguangyu/redis,cusspvz/redis,gilala/hredis,buobao/redis-3.0-annotated,nilyang/redis-tdd-annotation,ipmobiletech/redis,nilyang/redis-tdd-annotation,gongice/redis-3.0-annotated,jackyan/redis,drinkthere/redis-3.0-annotated,seppo0010/redis,gechong/redis-3.0-annotated,gongice/redis-3.0-annotated,soloestoy/redis,ErikDubbelboer/redis,cloudrain21/redis,mingyaaaa/redis,YuraLukashik/redis,guker/redis,allengaller/redis,PKRoma/redis,francischan714/redis,darksideofthemoo/redis-histogram,slfs007/mk-redis,pkdevbox/redis,valdsJohn/redis,YongMan/redis,pmem/redis,colstrom/redis,mverrilli/redis,GitHubMota/redis,brg-liuwei/redis,shshlzh/redis-3.0-annotated,harrisonfeng/redis,mumingv/redis-3.0-annotated,nnog/redis,itugs/redis,pcarrier/redis,dayuoba/redis,HeartSaVioR/redis,ituncle/redis,tjschuck/redis,soloestoy/redis,jingjidejuren/redis,himoca/redis,rrsean/redis-3.0-annotated,qiyang0221/redis,saisai/redis,StevenTsai/redis,supasate/redis,nilyang/redis-tdd-annotation,mcanthony/redis,flashbuckets/redis,j0hnma/szredis,narma/redis,jasonkying/redis,oranagra/redis,duanx/redis,ofirluzon/redis,Aliceljm1/redis-3.0-annotated,elkingtonmcb/redis,tellapart/redis,gilala/redis,ytjiang/redis,HunanTV/redis,soveran/redis,wujf/redis,gilala/redis,elkingtonmcb/redis,ReadCode/redis-3.0-annotated,kmiku7/redis,citusdata/redis,adamweixuan/redis-3.0-annotated,clamoriniere1A/redis,xlzhan/redis,nuxeh/redis,GrimDerp/redis,ton31337/redis,antirez/redis,h0x91b/redis,RepmujNetsik/redis,atreeyang/redis,Wangyao14cyy/redis,maodeyi/redis_lua,thomasdarimont/redis,francischan714/redis,Aaron1992/redis,universsky/redis,riyan8250/redis,soloestoy/redis,sunlianqiang/redis-3.0-annotated,flashbuckets/redis,kensou97/redis,himoca/redis,elkingtonmcb/redis,mverrilli/redis,zhiliaoniu/redis,jackyan/redis,mverrilli/redis,jbochi/parallel_redis,flashbuckets/redis,harrisonfeng/redis,neomantra/redis,shining-yang/redis,zhaobo1023/redis-3.0-annotated,tellapart/redis,ramonsnir/redis,dayuoba/redis,idning/redis,jbochi/redis,MSOpenTech/redis,slfs007/mk-redis,ketor/redis,j0hnma/szredis,jacklee0810/redis-3.0-annotated,itamarhaber/redis,ytjiang/redis,Sciumo/redis,universsky/redis,gechong/redis-3.0-annotated,wangyikai/redis,janekmi/redis,hedisdb/hedis,cusspvz/redis,charsyam/redis,onlymellb/redis-3.0-annotated,a-pavlov/redis,roth1002/redis,mengzhejin/RedisStudy,atreeyang/redis,dreamquster/redis,darksideofthemoo/redis-histogram,StevenTsai/redis,WorkingOfTimtohyZhang/redis-3.0-annotated,itamarhaber/redis,modulexcite/redis,splitice/redis,hedisdb/hedis,weizijun/redis,wuyu201321060203/redis-3.0-annotated,aim-for-better/redis,shshlzh/redis-3.0-annotated,mverrilli/redis,hgl888/redis,vincent-vivian-liu/redis,tanghaodong25/redis,weizijun/redis,linfangrong/redis,wangyikai/redis,YuraLukashik/redis,abhiklodh/redis,charsyam/redis,timothyohare/3rdPartySrc-redis,aim-for-better/redis,drinkthere/redis-3.0-annotated,ksarch-saas/redis,iandyh/redis,cnbin/redis,haima-zju/redis-3.0-annotated,iandyh/redis,ncopa/redis,zguangyu/redis,hgl888/redis,HouKangkang/redis-3.0-annotated,blackmady/redis,huangz1990/redis-3.0-annotated,AplayER/redis,spinlock/redis,ErikDubbelboer/redis,honestme/redis,SyntaxStacks/redis,pmem/redis,ofirluzon/redis,ramonsnir/redis,rogerlz/redis,izhoujie/redis,rogerlz/redis,cusspvz/redis,mengyou0304/redis,ouyangkongtong/redis,MOON-CLJ/redis,shreesundara/redis,fengshao0907/redis,csuhawk/redis,wangyikai/redis,josiahcarlson/redis,190235047/redis,PradheepShrinivasan/redis,yossigo/redis,louisliangjun/redis,MSOpenTech/redis,huangz1990/redis-3.0-annotated,rogerlz/redis,seandsky/redis,AALEKH/redis,yuzhangjob/redis-3.0-annotated-unstable,rouzier/redis,rogerchina/redis