CN111212145A - 一种用于供电服务指挥***的Redis集群 - Google Patents

一种用于供电服务指挥***的Redis集群 Download PDF

Info

Publication number
CN111212145A
CN111212145A CN202010021465.0A CN202010021465A CN111212145A CN 111212145 A CN111212145 A CN 111212145A CN 202010021465 A CN202010021465 A CN 202010021465A CN 111212145 A CN111212145 A CN 111212145A
Authority
CN
China
Prior art keywords
data
redis cluster
power supply
command system
cluster
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010021465.0A
Other languages
English (en)
Inventor
蒋鑫
郑蔚涛
陈严纾
杨启帆
蔡宇翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Fujian Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Fujian Electric Power Co Ltd
Priority to CN202010021465.0A priority Critical patent/CN111212145A/zh
Publication of CN111212145A publication Critical patent/CN111212145A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

本发明涉及一种用于供电服务指挥***的Redis集群,所述供电服务指挥***在指挥监控、配网监测、配网运营和客户服务中主要数据查询采用Rediscluster;所述Rediscluster将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。本发明采用Redis Cluster,不存在所谓的中心节点或者代理节点,每个节点都有保存数据和整个集群的状态,也就是说每个节点都会保存其他节点的信息,并且定时会给其他节点发送心跳,能够及时感知集群中的节点。

Description

一种用于供电服务指挥***的Redis集群
技术领域
本发明涉及缓存技术领域,具体涉及一种用于供电服务指挥***的Redis集群。
背景技术
随着供电服务指挥***数据量的增多,Redis不论作为数据存储或是缓存,它的数据量也会逐渐增多,虽然Redis的速度非常可观,但随着其中的数据量的庞大,并且仅仅在一个设备或是一个Redis实例中,其存取速度也会大打折扣,所以我们需要在不同的设备或服务器上,搭建多个Redis实例仓库,将原来的Redis的所有的keys分发到各个服务器的Redis上,这就是现在所谓的Redis集群(Redis Cluster)。
发明内容
有鉴于此,本发明的目的在于提供一种用于供电服务指挥***的Redis集群,能提供一种可靠的数据缓存,极大的提高***的访问速度,从而提高供电服务指挥***用户的体验感。
为实现上述目的,本发明采用如下技术方案:
一种用于供电服务指挥***的Redis集群,所述供电服务指挥***在指挥监控、配网监测、配网运营和客户服务中主要数据查询采用Rediscluster ;所述Rediscluster 将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。
进一步的,所述Rediscluster支持简单的key-value类型的数据,同时还提供list,set,zset,hash数据结构的存储。
进一步的,所述Rediscluster支持数据的备份,即master-slave模式的数据备份。
进一步的,所述***支持二进制案例的Strings, Lists, Hashes, Sets 及Ordered Sets 数据类型操作。
进一步的,所述***设置的主要集群方案包括客户端分片、基于代理的分片和路由查询。
进一步的,所述Redis cluster基于smart client和无中心的设计,client按key的哈希将请求直接发送到对应的节点;没有使用一致性hash, 而是引入了虚拟槽的概念;Redis Cluster有16384个虚拟槽,每个key通过CRC16校验后对16384取模来决定放置哪个槽;集群的每个节点负责一部分hash槽。
本发明与现有技术相比具有以下有益效果:
本发明查询速度非常可观,可以搭建多个实例仓库减轻***的负载压力。可靠性良好,当***重启或进行恢复时数据可以自动加载进缓存中。
附图说明
图1是本发明一实施例中Redis Cluster示意图。
具体实施方式
下面结合附图及实施例对本发明做进一步说明。
请参照图1,本发明提供一种用于供电服务指挥***的Redis集群,所述供电服务指挥***在指挥监控、配网监测、配网运营和客户服务中主要数据查询采用Rediscluster;所述Rediscluster 将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。
在本实施例中,所述Rediscluster支持简单的key-value类型的数据,同时还提供list,set,zset,hash数据结构的存储。所述Rediscluster支持数据的备份,即master-slave模式的数据备份。
在本实施例中,所述***支持二进制案例的Strings, Lists, Hashes, Sets 及Ordered Sets 数据类型操作。所述***设置的主要集群方案包括客户端分片、基于代理的分片和路由查询。
在本实施例中,所述Redis cluster基于smart client和无中心的设计,client按key的哈希将请求直接发送到对应的节点;没有使用一致性hash, 而是引入了虚拟槽的概念;Redis Cluster有16384个虚拟槽,每个key通过CRC16校验后对16384取模来决定放置哪个槽;集群的每个节点负责一部分hash槽。
在实施例中,每个主节点处理各自的数据,提供读写能力,从节点异步复制主节点的数据。假设给每个redis实例分配了8G的最大内存,总的数据容量大小为24G(如果想继续扩充数据容量,继续加主节点)。单个redis实例的最大内存不建议超过10G。sentinel是一个分布式***,可以在一个架构中运行多个sentinel进程,这些进程使用流言协议(gossipprotocols)来接收关于rdis主服务器是否下线的信息,并使用投票协议(agreementprotocols)来决定是否执行自动故障迁移,以及选举哪个从服务器成为新的主服务器。sentinel服务通过ping命令来确认监控的服务器是否正常,当足够多数量的sentinel都确认监控的同一服务器停止服务了(主观下线),则判定此服务器停止服务。
实施例1:redis server 1、redis server 2、redis server 3分别是供电服务指挥***的集群服务器;
实施例:在使用redis集群时:
1)key批量操作对***的支持有限。如mset、mget,***目前只支持具有相同slot值的
key执行批量操作。对于映射为不同slot值的key由于执行mget、mget等操作可能存在于多个节点上因此不被支持。
2)key事务操作支持有限。同理只支持多key在同一节点上的事务操
作,当多个key分布在不同的节点上时无法使用事务功能。
3)key作为数据分区的最小粒度,因此不能将一个大的键值对象如
hash、list等映射到不同的节点。
4)不支持多数据库空间。单机下的Redis可以支持16个数据库,集群模
式下只能使用一个数据库空间,即db0。
5)复制结构只支持一层,从节点只能复制主节点,不支持嵌套树状复
制结构。
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。

Claims (6)

1.一种用于供电服务指挥***的Redis集群,其特征在于:所述供电服务指挥***在指挥监控、配网监测、配网运营和客户服务中主要数据查询采用Rediscluster;所述Rediscluster将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。
2.根据权利要求1所述的用于供电服务指挥***的Redis集群,其特征在于:所述Rediscluster支持简单的key-value类型的数据,同时还提供list,set,zset,hash数据结构的存储。
3.根据权利要求1所述的一种用于供电服务指挥***的Redis集群,其特征在于:所述Rediscluster支持数据的备份,即master-slave模式的数据备份。
4.根据权利要求1所述的一种用于供电服务指挥***的Redis集群,其特征在于:所述***支持二进制案例的Strings, Lists, Hashes, Sets 及 Ordered Sets 数据类型操作。
5.根据权利要求1所述的一种用于供电服务指挥***的Redis集群,其特征在于:所述***设置的主要集群方案包括客户端分片、基于代理的分片和路由查询。
6.根据权利要求1所述的一种用于供电服务指挥***的Redis集群,其特征在于:所述Redis cluster基于smart client和无中心的设计,client按key的哈希将请求直接发送到对应的节点;没有使用一致性hash, 而是引入了虚拟槽的概念;Redis Cluster有16384个虚拟槽,每个key通过CRC16校验后对16384取模来决定放置哪个槽;集群的每个节点负责一部分hash槽。
CN202010021465.0A 2020-01-09 2020-01-09 一种用于供电服务指挥***的Redis集群 Pending CN111212145A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010021465.0A CN111212145A (zh) 2020-01-09 2020-01-09 一种用于供电服务指挥***的Redis集群

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010021465.0A CN111212145A (zh) 2020-01-09 2020-01-09 一种用于供电服务指挥***的Redis集群

Publications (1)

Publication Number Publication Date
CN111212145A true CN111212145A (zh) 2020-05-29

Family

ID=70789012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010021465.0A Pending CN111212145A (zh) 2020-01-09 2020-01-09 一种用于供电服务指挥***的Redis集群

Country Status (1)

Country Link
CN (1) CN111212145A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579650A (zh) * 2020-12-25 2021-03-30 恩亿科(北京)数据科技有限公司 基于Redis缓存的数据处理方法及***

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160366220A1 (en) * 2015-06-15 2016-12-15 Yossi Gottlieb Methods, systems, and media for providing distributed database access during a network split
CN107343034A (zh) * 2017-06-26 2017-11-10 杭州铭师堂教育科技发展有限公司 基于QConf的Redis高可用***及方法
CN107517266A (zh) * 2017-09-05 2017-12-26 江苏电力信息技术有限公司 一种基于分布式缓存的即时通讯方法
CN107656971A (zh) * 2017-09-02 2018-02-02 国网辽宁省电力有限公司 一种基于Redis的智能电网采集监测数据存储方法
CN109753244A (zh) * 2018-12-29 2019-05-14 北京奥鹏远程教育中心有限公司 一种Redis集群的应用方法
CN110333986A (zh) * 2019-06-19 2019-10-15 上海二三四五网络科技有限公司 一种保障redis集群可用性的方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160366220A1 (en) * 2015-06-15 2016-12-15 Yossi Gottlieb Methods, systems, and media for providing distributed database access during a network split
CN107343034A (zh) * 2017-06-26 2017-11-10 杭州铭师堂教育科技发展有限公司 基于QConf的Redis高可用***及方法
CN107656971A (zh) * 2017-09-02 2018-02-02 国网辽宁省电力有限公司 一种基于Redis的智能电网采集监测数据存储方法
CN107517266A (zh) * 2017-09-05 2017-12-26 江苏电力信息技术有限公司 一种基于分布式缓存的即时通讯方法
CN109753244A (zh) * 2018-12-29 2019-05-14 北京奥鹏远程教育中心有限公司 一种Redis集群的应用方法
CN110333986A (zh) * 2019-06-19 2019-10-15 上海二三四五网络科技有限公司 一种保障redis集群可用性的方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579650A (zh) * 2020-12-25 2021-03-30 恩亿科(北京)数据科技有限公司 基于Redis缓存的数据处理方法及***

Similar Documents

Publication Publication Date Title
Chen et al. Giza: Erasure coding objects across global data centers
US10102086B2 (en) Replicated database distribution for workload balancing after cluster reconfiguration
US9785691B2 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster
EP1625502B1 (en) Redundant data assigment in a data storage system
US8856091B2 (en) Method and apparatus for sequencing transactions globally in distributed database cluster
US20060155912A1 (en) Server cluster having a virtual server
Chen et al. Towards scalable and reliable in-memory storage system: A case study with Redis
US7702757B2 (en) Method, apparatus and program storage device for providing control to a networked storage architecture
CN109218100A (zh) 分布式对象存储集群及其请求响应方法、***和存储介质
CN104735110A (zh) 元数据管理方法和***
CN111651302A (zh) 分布式数据库备份方法,装置及***
US10970177B2 (en) Methods and systems of managing consistency and availability tradeoffs in a real-time operational DBMS
CN113297173B (zh) 分布式数据库集群管理方法及装置、电子设备
CN114385755A (zh) 一种分布式存储***
CN111212145A (zh) 一种用于供电服务指挥***的Redis集群
US11461201B2 (en) Cloud architecture for replicated data services
Jiang et al. A novel clustered MongoDB-based storage system for unstructured data with high availability
CN111309260B (zh) 一种数据存储节点选择方法
Saha et al. An analysis of the average message overhead in replica control protocols
CN117331755A (zh) 一种向量数据库主从备份和分片策略的高可用***及方法
CN111752892B (zh) 分布式文件***及其实现方法、管理***、设备及介质
US20230113180A1 (en) Methods and systems for expanding gpu memory footprint based on hybrid-memory
CN115048061A (zh) 基于Raft的冷数据存储方法
WO2007028249A1 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster with collision monitoring
Faiz et al. Database replica management strategies in multidatabase systems with mobile hosts

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200529

RJ01 Rejection of invention patent application after publication