- 浏览: 980130 次
文章分类
- 全部博客 (428)
- Hadoop (2)
- HBase (1)
- ELK (1)
- ActiveMQ (13)
- Kafka (5)
- Redis (14)
- Dubbo (1)
- Memcached (5)
- Netty (56)
- Mina (34)
- NIO (51)
- JUC (53)
- Spring (13)
- Mybatis (17)
- MySQL (21)
- JDBC (12)
- C3P0 (5)
- Tomcat (13)
- SLF4J-log4j (9)
- P6Spy (4)
- Quartz (12)
- Zabbix (7)
- JAVA (9)
- Linux (15)
- HTML (9)
- Lucene (0)
- JS (2)
- WebService (1)
- Maven (4)
- Oracle&MSSQL (14)
- iText (11)
- Development Tools (8)
- UTILS (4)
- LIFE (8)
最新评论
-
Donald_Draper:
Donald_Draper 写道刘落落cici 写道能给我发一 ...
DatagramChannelImpl 解析三(多播) -
Donald_Draper:
刘落落cici 写道能给我发一份这个类的源码吗Datagram ...
DatagramChannelImpl 解析三(多播) -
lyfyouyun:
请问楼主,执行消息发送的时候,报错:Transport sch ...
ActiveMQ连接工厂、连接详解 -
ezlhq:
关于 PollArrayWrapper 状态含义猜测:参考 S ...
WindowsSelectorImpl解析一(FdMap,PollArrayWrapper) -
flyfeifei66:
打算使用xmemcache作为memcache的客户端,由于x ...
Memcached分布式客户端(Xmemcached)
Redis 的 Sentinel 文档:http://www.redis.cn/topics/sentinel.html
# Example sentinel.conf # port <sentinel-port> # The port that this sentinel instance will run on ##sentinel 监听端口 port 26379 # sentinel announce-ip <ip> # sentinel announce-port <port> # # The above two configuration directives are useful in environments where, # because of NAT, Sentinel is reachable from outside via a non-local address. # # When announce-ip is provided, the Sentinel will claim the specified IP address # in HELLO messages used to gossip its presence, instead of auto-detecting the # local address as it usually does. # # Similarly when announce-port is provided and is valid and non-zero, Sentinel # will announce the specified TCP port. # # The two options don't need to be used together, if only announce-ip is # provided, the Sentinel will announce the specified IP and the server port # as specified by the "port" option. If only announce-port is provided, the # Sentinel will announce the auto-detected local IP and the specified port. # # Example: #我们可以通过配置sentinel announce-ip和sentinel announce-port,让sentinel运行在 指定的ip(gossip协议握手地址)和port上 # sentinel announce-ip 1.2.3.4 # dir <working-directory> # Every long running process should have a well-defined working directory. # For Redis Sentinel to chdir to /tmp at startup is the simplest thing # for the process to don't interfere with administrative tasks such as # unmounting filesystems. ## 工作目录 dir /tmp # sentinel monitor <master-name> <ip> <redis-port> <quorum> # # Tells Sentinel to monitor this master, and to consider it in O_DOWN # (Objectively Down) state only if at least <quorum> sentinels agree. # # Note that whatever is the ODOWN quorum, a Sentinel will require to # be elected by the majority of the known Sentinels in order to # start a failover, so no failover can be performed in minority. # # Slaves are auto-discovered, so you don't need to specify slaves in # any way. Sentinel itself will rewrite this configuration file adding # the slaves using additional configuration options. # Also note that the configuration file is rewritten when a # slave is promoted to master. # # Note: master name should not include special characters or spaces. # The valid charset is A-z 0-9 and the three characters ".-_". #sentinel监控的master主机名为mymaster,ip地址为127.0.0.1,端口为6379,当有2个 slave同意重新选举master时,则集群重新选举master,同时,Sentinel会重写配置文件 sentinel monitor mymaster 127.0.0.1 6379 2 # sentinel auth-pass <master-name> <password> # # Set the password to use to authenticate with the master and slaves. # Useful if there is a password set in the Redis instances to monitor. # # Note that the master password is also used for slaves, so it is not # possible to set a different password in masters and slaves instances # if you want to be able to monitor these instances with Sentinel. # # However you can have Redis instances without the authentication enabled # mixed with Redis instances requiring the authentication (as long as the # password set is the same for all the instances requiring the password) as # the AUTH command will have no effect in Redis instances with authentication # switched off. # # Example: ###sentinel 连接master的验证密码,最好保证集群中redis的实例的验证密码是相同的,以便 Sentinel监控集群中redis的实例 # sentinel auth-pass mymaster MySUPER--secret-0123passw0rd # sentinel down-after-milliseconds <master-name> <milliseconds> # # Number of milliseconds the master (or any attached slave or sentinel) should # be unreachable (as in, not acceptable reply to PING, continuously, for the # specified period) in order to consider it in S_DOWN state (Subjectively # Down). # # Default is 30 seconds. ## 当多久sentinel检测到Master不可达时,认为master宕机 sentinel down-after-milliseconds mymaster 30000 # sentinel parallel-syncs <master-name> <numslaves> # # How many slaves we can reconfigure to point to the new slave simultaneously # during the failover. Use a low number if you use the slaves to serve query # to avoid that all the slaves will be unreachable at about the same # time while performing the synchronization with the master. ## 当集群中master宕机时,为了保证集群能可以接受查询请求,配置salve不进行选择, 能做为slave的数量 sentinel parallel-syncs mymaster 1 # sentinel failover-timeout <master-name> <milliseconds> # # Specifies the failover timeout in milliseconds. It is used in many ways: # # - The time needed to re-start a failover after a previous failover was # already tried against the same master by a given Sentinel, is two # times the failover timeout. # # - The time needed for a slave replicating to a wrong master according # to a Sentinel current configuration, to be forced to replicate # with the right master, is exactly the failover timeout (counting since # the moment a Sentinel detected the misconfiguration). # # - The time needed to cancel a failover that is already in progress but # did not produced any configuration change (SLAVEOF NO ONE yet not # acknowledged by the promoted slave). # # - The maximum time a failover in progress waits for all the slaves to be # reconfigured as slaves of the new master. However even after this time # the slaves will be reconfigured by the Sentinels anyway, but not with # the exact parallel-syncs progression as specified. # # Default is 3 minutes. ## 当集群中master宕机时,Sentinels重新配置redis实例为master的超时时间,当超时时间, 仍没有配置完,Sentinels将redis实例重新配置成与parallel-syncs slave redis实例一样 sentinel failover-timeout mymaster 180000 # SCRIPTS EXECUTION # # sentinel notification-script and sentinel reconfig-script are used in order # to configure scripts that are called to notify the system administrator # or to reconfigure clients after a failover. The scripts are executed # with the following rules for error handling: # # If script exits with "1" the execution is retried later (up to a maximum # number of times currently set to 10). # # If script exits with "2" (or an higher value) the script execution is # not retried. # # If script terminates because it receives a signal the behavior is the same # as exit code 1. # # A script has a maximum running time of 60 seconds. After this limit is # reached the script is terminated with a SIGKILL and the execution retried. # NOTIFICATION SCRIPT # # sentinel notification-script <master-name> <script-path> # # Call the specified notification script for any sentinel event that is # generated in the WARNING level (for instance -sdown, -odown, and so forth). # This script should notify the system administrator via email, SMS, or any # other messaging system, that there is something wrong with the monitored # Redis systems. # # The script is called with just two arguments: the first is the event type # and the second the event description. # # The script must exist and be executable in order for sentinel to start if # this option is provided. # # Example: ### 当master宕机时,sentinel的报警脚本 # sentinel notification-script mymaster /var/redis/notify.sh # CLIENTS RECONFIGURATION SCRIPT # # sentinel client-reconfig-script <master-name> <script-path> # # When the master changed because of a failover a script can be called in # order to perform application-specific tasks to notify the clients that the # configuration has changed and the master is at a different address. # # The following arguments are passed to the script: # # <master-name> <role> <state> <from-ip> <from-port> <to-ip> <to-port> # # <state> is currently always "failover" # <role> is either "leader" or "observer" # # The arguments from-ip, from-port, to-ip, to-port are used to communicate # the old address of the master and the new address of the elected slave # (now a master). # # This script should be resistant to multiple invocations. # # Example: # 当master宕机时,sentinel的通知clients的脚本,通知内容为,配置文件已将 改变,当前redis实例的role,state信息,及新的master ip # sentinel client-reconfig-script mymaster /var/redis/reconfig.sh
发表评论
-
Spring与Redis的集成详解二
2016-12-26 11:36 1847Jedis获取Redis连接详解:http://donald- ... -
Spring与Redis的集成详解一
2016-12-26 10:32 3300Jedis获取Redis连接详解:http://donald- ... -
Redis的客户端Jedis及Jedis操作Redis命令详解
2016-12-25 14:15 10428Jedis获取Redis连接详解:http://donald- ... -
Jedis获取Redis连接详解
2016-12-24 17:16 5729Jedis操作Redis :http://donald-dra ... -
Spring与Redis的集成
2016-12-23 16:40 2655springmvc整合redis架构搭建实例:http://w ... -
Jedis操作Redis
2016-12-23 14:41 2255Redis各特性的应用场景:http://www.cnblog ... -
Redis主从,读写分离、HA配置
2016-12-21 20:24 1097Redis的安装与配置:http://donald-drape ... -
Redis 发布订阅,事务,备份恢复,监控
2016-12-21 10:40 648Redis 发布订阅 ##在 ... -
Redis数据类型操作命令
2016-12-20 18:45 462Redis教程: http://www.runoob.com/ ... -
Redis日志、数据目录、AOF、AUTH配置
2016-12-20 16:04 1543简单粗暴的Redis数据备份和恢复方法:http://www. ... -
Redis启动连接基准测试
2016-12-20 15:04 676基于Redis Sentinel的Redis集群(主从& ... -
Redis配置文件详解
2016-12-20 14:50 1637上一篇说了Redis的配置安装,这篇来看一下Redis配置文件 ... -
Redis的安装与配置
2016-12-19 18:31 967CentOS6.4安装配置redis:http://www.c ...
相关推荐
- **复制标注信息**:允许用户将一个标注框的信息复制到另一个目标文件中,通过输入目标文件ID实现。 3. **查看 ReID 标注结果**: - **ReID 标注结果重分类**:使用fastreid算法重新分类所有的ReID结果,然后...
2. **训练脚本**:提供了详尽的训练脚本和配置文件,用户可以轻松调整超参数以适应不同的任务需求。这些脚本包括数据预处理、模型训练、验证和测试等步骤,极大地简化了实验流程。 3. **评估工具**:Fast-ReID提供...
MySQL、Reid、Nexus、Jenkins、Redis Sentinel、RabbitMQ、nginx、FastDFS使用Docker-Composites安装包
《2018年CVPR ReID研究综述与论文解析》 计算机视觉中的行人重识别(Person Re-Identification,简称ReID)是一项关键技术,它致力于在不同摄像头视角下识别同一个人。2018年的CVPR(Conference on Computer Vision...
"REID"在IT行业中可能指的是“Re-identification”或者“Relative ID”,它与数据处理、计算机视觉和人工智能领域紧密相关。在这个上下文中,我们主要讨论的是“Re-identification”技术,这是一种在监控系统或图像...
单模态行人重识别(Person-ReID)是计算机视觉领域中的一个重要研究方向,它主要解决在不同摄像头视角下同一行人身份的识别问题。这个压缩包包含2015年至2020年间部分关于单模态ReID的学术论文,为深入理解与研究该...
标题中的"Video-Person-ReID-master_reID_"和描述中的"Person_reID_baseline_pytorch-master"都指向了一个特定的领域——行人重识别(Person Re-Identification,简称ReID)。行人重识别是计算机视觉领域的一个重要...
特征寻人,也称为行人重识别(Re-identification,简称REID),是计算机视觉领域中的一个关键任务,其目标是在不同的摄像头视图中识别出同一行人的身份。在这个过程中,特征提取扮演着至关重要的角色。RGB、YCrCb、...
《行人多属性重识别数据集:P-DukeMTMC-reID》 在计算机视觉领域,行人识别是一项重要的任务,尤其在安全监控、智能交通和人脸识别系统中有着广泛的应用。P-DukeMTMC-reID(Person-DukeMTMC-reID)是一个专为此目的...
在实际应用中,由于环境变化、遮挡、姿态差异等因素,同一行人在不同摄像头下的图像可能差异巨大,这给算法的准确性提出了高要求。因此,研究人员致力于开发能适应这些复杂条件的模型和方法。 在CVPR2019中,一种...
REID,即Person Re-identification(人员重识别)是一个在计算机视觉领域用于识别和追踪特定个体在不同监控摄像机下图像的算法。这种技术在新零售场景下有着广泛的应用,比如商场内顾客行为追踪,以及通过识别追踪...
压缩包内的文件名"deep-person-reid-master"可能表示这是一个主仓库或者主代码分支,通常包含了项目的核心代码、数据集、训练脚本、模型配置以及可能的预训练模型等。我们可能期待在这个目录结构中找到以下部分: 1...
基于yolov8与ReID算法开发的多摄像头协作的人脸追踪系统python源码+模型文件.zip基于yolov8与ReID算法开发的多摄像头协作的人脸追踪系统python源码+模型文件.zip基于yolov8与ReID算法开发的多摄像头协作的人脸追踪...
源码包含254个文件,涵盖116个Python源文件、78个Python编译文件、12个ReStructuredText文件、11个YAML配置文件、9个Markdown文件、6个文本文件、3个Shell脚本文件、2个图片文件、2个C++源文件和2个CUDA源文件。...
标题中的"ckpt-person-reid-pytorch-deep-sort_20211201.rar"揭示了这个压缩包文件是关于一个人体重识别(Person Re-identification, 简称ReID)的项目,使用PyTorch深度学习框架,并且结合了Deep Sort算法。...
但是,为了获得高精度(例如 2048),需要非常长的代码,这会影响搜索速度。 在这项工作中,我们通过制定一种新颖的粗到精 (CtF) 哈希码搜索策略来引入一种新的快速 ReID 解决方案,该策略互补地使用短码和长码,...
在IT领域,特别是计算机视觉和人工智能的分支,...通过对压缩包文件"ViehiclePersonREID"的分析,我们可以推测其中可能包含了针对人和车辆的reid模型训练数据集、模型代码或者实验结果,为进一步研究和应用提供了基础。
基于YOLOv8+度量学习ReID实现相机跨镜头人脸追踪系统python源码.zip 项目旨在通过多个摄像头监控网络中对特定人脸进行连续追踪,即使人脸在多个摄像头之间移动或遮挡也能保持追踪。这个项目结合了目标检测(YOLOv8)...
reid-strong-baseline-demo.py