CN103501237A - Device management method, management platform, device and system - Google Patents

Device management method, management platform, device and system Download PDF

Info

Publication number
CN103501237A
CN103501237A CN201310394676.9A CN201310394676A CN103501237A CN 103501237 A CN103501237 A CN 103501237A CN 201310394676 A CN201310394676 A CN 201310394676A CN 103501237 A CN103501237 A CN 103501237A
Authority
CN
China
Prior art keywords
redis
equipment
instruction
message queue
management platform
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.)
Granted
Application number
CN201310394676.9A
Other languages
Chinese (zh)
Other versions
CN103501237B (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310394676.9A priority Critical patent/CN103501237B/en
Publication of CN103501237A publication Critical patent/CN103501237A/en
Application granted granted Critical
Publication of CN103501237B publication Critical patent/CN103501237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a device management method, management platform, device and system, and belongs to the technical field of computers. The method comprises the steps of generating an executive instruction for instructing a Redis device to execute the assigned operation, determining a message queue monitored by the Redis device, and sending a management instruction to the Redis device through the message queue monitored by the Redis device, wherein the message queue is used for providing the management instruction for the Redis device which monitors the message queue. The management platform comprises a generating module, a first determining module and a first sending module. According to the device management method, the problems that due to the fact that the management platform logs in the Redis device according to secret keys, the number of signalings between the management platform and the Redis device is increased, and the communication resources are wasted are solved, the effect of saving the communication resources is achieved, and the safety is improved.

Description

Device management method, management platform, equipment and system
Technical field
The present invention relates to field of computer technology, particularly a kind of device management method, management platform, equipment and system.
Background technology
Redis be one increase income, network enabled, the key-value pair stored data base based on internal memory, support numerous types of data and multiple operation, there is the function of powerful management data.Along with the lifting of the importance of data, for the demand of management, maintenance and the fail safe of data, also seem more and more important.Therefore, for guaranteeing normal operation and the service quality of Redis, need to Redis equipment that realize Redis be managed, this Redis equipment can be Redis server or Redis acting server, and the Redis acting server is for agent application layer and Redis server interaction.
Usually, create pair of secret keys on management platform, by PKI be stored in all Redis equipment that needs management, private key is stored in management platform, sign in in Redis equipment and manage by key.Management platform can send the request of carrying PKI to Redis equipment, Redis equipment compares the PKI received and the PKI prestored, if the PKI received is identical with the PKI prestored, Redis equipment uses public-key predetermined information is encrypted, and the enciphered message after encrypting is fed back to management platform.After management platform receives enciphered message, use private key to be decrypted this enciphered message, and the predetermined information obtained after deciphering is sent to Redis equipment, Redis equipment, after receiving predetermined information, determines that management platform has the authority of management self.Now, management platform can send supervisory instruction to Redis equipment, and Redis equipment is carried out the indicated operation of supervisory instruction received.Such as, restart Redis equipment, close Redis equipment etc.
Management platform when login Redis equipment, need to carry out repeatedly according to key and Redis equipment mutual, thereby manage this Redis equipment after signing in to this Redis equipment, increased the signaling between management platform and Redis equipment, wasted the communication resource.
Summary of the invention
In order to solve, management platform signs in to according to key management platform that Redis equipment causes and the signaling between Redis equipment increases, and has wasted the problem of the communication resource, and the embodiment of the present invention provides a kind of device management method, management platform, equipment and system.Described technical scheme is as follows:
First aspect, the embodiment of the present invention provides a kind of device management method, and described method comprises:
Generation is used to indicate the supervisory instruction that Redis equipment is carried out assigned operation;
Determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue;
The message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment.
Second aspect, the embodiment of the present invention provides a kind of device management method, and described method comprises:
The monitoring information queue, described message queue provides supervisory instruction for the Redis equipment to monitoring described message queue;
If the described message queue of monitoring receives the described supervisory instruction that management platform sends, read described supervisory instruction, described supervisory instruction is generated by described management platform;
Carry out the indicated assigned operation of described supervisory instruction.
The third aspect, the embodiment of the present invention provides a kind of management platform, and described management platform comprises:
Generation module, be used to indicate for generation the supervisory instruction that Redis equipment is carried out assigned operation;
The first determination module, for the message queue of determining that described Redis equipment is monitored, the described supervisory instruction that described message queue provides described generation module to generate for the Redis equipment to monitoring described message queue;
The first sending module, the message queue of monitoring for the described Redis equipment of determining by described the first determination module sends to described Redis equipment the described supervisory instruction that described generation module generates.
Fourth aspect, the embodiment of the present invention provides a kind of Redis equipment, and described equipment comprises:
Monitor module, for the monitoring information queue, described message queue provides supervisory instruction for the Redis equipment to monitoring described message queue;
Read module, if the described message queue of monitoring for described monitoring module receives the described supervisory instruction that management platform sends, read described supervisory instruction, and described supervisory instruction is generated by described management platform;
Executive Module, the indicated assigned operation of described supervisory instruction read for carrying out described read module.
The 5th aspect, the embodiment of the present invention provides a kind of equipment management system, and described system comprises: management platform as described as the third aspect and Redis equipment as described as fourth aspect.
Be used to indicate by generation the supervisory instruction that Redis equipment is carried out assigned operation, determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue, the message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment, because management platform can send to Redis equipment by supervisory instruction by message queue, and message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, send by message queue the fail safe that supervisory instruction can guarantee Redis equipment, thereby avoided the protection to Redis equipment by key, solved that management platform signs in to according to key management platform that Redis equipment causes and signaling between Redis equipment increases, wasted the problem of the communication resource, reached the effect of having saved the communication resource, and improved fail safe.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the device management method that provides of one embodiment of the invention;
Fig. 2 is the method flow diagram of the device management method that provides of another embodiment of the present invention;
Fig. 3 is the structural framing figure of the equipment management system that provides of one embodiment of the invention;
Fig. 4 is the structural framing figure of the equipment management system that provides of yet another embodiment of the invention;
Fig. 5 is the structural framing figure of the management equipment that provides of one embodiment of the invention;
Fig. 6 is the structural framing figure of the equipment management system that provides of one embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it shows the method flow diagram of the device management method that one embodiment of the invention provides, and this device management method comprises:
Step 101, management platform generates and is used to indicate the supervisory instruction that Redis equipment is carried out assigned operation;
Management platform, for managing Redis equipment, can be server, third party device or terminal etc.Management platform can be by the supervisory instruction management Redis equipment generated, and wherein, supervisory instruction is used to indicate Redis equipment and carries out assigned operation, by assigned operation, realizes the management to Redis equipment.This Redis equipment can be Redis server or Redis acting server.
Management platform can generate supervisory instruction after receiving triggering signal, or management platform can regularly generate supervisory instruction, or, management platform can meet when pre-conditioned and generate supervisory instruction etc. management platform being detected, and this enforcements does not limit the triggering mode of management platform generation supervisory instruction.
Management platform can be showed the configuration page to the user, by the user, according to configuration page, looks unfamiliar into supervisory instruction, or management platform can generate supervisory instruction etc. according to preset rules, and the present embodiment does not limit the generating mode of supervisory instruction.
Step 102, management platform is determined the message queue that Redis equipment is monitored, this message queue provides supervisory instruction for the Redis equipment to the monitoring information queue;
Message queue is that this message can be data or supervisory instruction etc. for processing the communication mode of a series of input message, can realizing by Message Queuing server, and the present embodiment be take supervisory instruction and described as example.Because message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, in order to guarantee Redis equipment, receive supervisory instruction, management platform need to be determined the message queue that Redis equipment is monitored.
Management platform can be made an appointment and indicate the route key of this message queue with Redis equipment, when management platform need to send supervisory instruction to Redis equipment, can read this route key, and determine according to this route key in the message queue of this Redis equipment monitoring.Wherein, the route key is for being routed to administrative messag the message queue of appointment.
Step 103, the message queue that management platform is monitored by Redis equipment sends supervisory instruction to Redis equipment;
Management platform can send to Message Queuing server by the supervisory instruction of generation and the route read key, Message Queuing server is routed to supervisory instruction in the message queue of this Redis equipment monitoring according to the route key, by this message queue, to Redis equipment, sends supervisory instruction.
Step 104, Redis equipment is monitored message queue;
Redis equipment can get the supervisory instruction that management platform sends in time by the monitoring information queue.
Step 105, if the message queue of monitoring receives the supervisory instruction that management platform sends, Redis equipment reads supervisory instruction, this supervisory instruction is generated by management platform;
If the message queue that Redis equipment is monitored comprises the supervisory instruction that management platform sends, Redis equipment can read this supervisory instruction from this message queue, and according to this supervisory instruction, self is managed.
Step 106, Redis equipment is carried out the indicated assigned operation of supervisory instruction.
Redis equipment can be carried out the indicated assigned operation of supervisory instruction, such as, Redis equipment can restart Redis equipment, close Redis equipment, revise Redis equipment configuration, Redis equipment is monitored etc.
In sum, the device management method that the embodiment of the present invention provides, be used to indicate by generation the supervisory instruction that Redis equipment is carried out assigned operation, determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue, the message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment, because management platform can send to Redis equipment by supervisory instruction by message queue, and message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, send by message queue the fail safe that supervisory instruction can guarantee Redis equipment, thereby avoided the protection to Redis equipment by key, solved that management platform signs in to according to key management platform that Redis equipment causes and signaling between Redis equipment increases, wasted the problem of the communication resource, reached the effect of having saved the communication resource, and improved fail safe.
Please refer to Fig. 2, it shows the method flow diagram of the device management method that another embodiment of the present invention provides, and this device management method comprises:
Step 201, management platform generates and is used to indicate the supervisory instruction that Redis equipment is carried out assigned operation;
Management platform, for managing Redis equipment, can be server, third party device or terminal etc.Management platform can be by the supervisory instruction management Redis equipment generated, and wherein, supervisory instruction is used to indicate Redis equipment and carries out assigned operation, by assigned operation, realizes the management to Redis equipment.This Redis equipment can be Redis server or Redis acting server.
Management platform can generate supervisory instruction after receiving triggering signal, or management platform can regularly generate supervisory instruction, or, management platform can meet when pre-conditioned and generate supervisory instruction etc. management platform being detected, and this enforcements does not limit the triggering mode of management platform generation supervisory instruction.
Management platform can be showed the configuration page to the user, by the user, according to configuration page, looks unfamiliar into supervisory instruction, or management platform can generate supervisory instruction etc. according to preset rules, and the present embodiment does not limit the generating mode of supervisory instruction.
In the present embodiment, assigned operation can be the configuration NameSpace, restart Redis equipment, close Redis equipment, revise the configuration of Redis equipment, Redis equipment is monitored etc.
If supervisory instruction is the instruction of configuration NameSpace, this NameSpace is the buffer unit in Redis, and Redis equipment is the Redis server, generates and is used to indicate the supervisory instruction that Redis equipment is carried out assigned operation, can comprise:
Generate for configuring the configuration information of NameSpace;
Whether detect configuration information meets pre-conditioned;
If it is pre-conditioned that testing result is that configuration information meets, according to configuration information, generate supervisory instruction.
Wherein, for fear of the identical problem that reads and writes data and make mistakes caused of Data Identification in Redis, can NameSpace be set for Redis, the data buffer storage that Data Identification is identical is in different NameSpaces, in order to distinguish data according to NameSpace.
Further, configuration NameSpace instruction can be newly-built NameSpace instruction, revise the NameSpace instruction and delete NameSpace instruction etc., and the present embodiment be take the instruction of configuration NameSpace as newly-built NameSpace instruction and revised the NameSpace instruction and describes as example.Management platform can generate the configuration information of NameSpace, and generates supervisory instruction according to configuration information, by Redis equipment, according to this supervisory instruction, configures NameSpace.
Further, when management platform generates configuration information, some parameter comprised due to configuration information is configured by the user, therefore, for fear of the problem of the inaccurate supervisory instruction mistake caused of user configured parameter, supervisory instruction can be detected configuration information.When configuration information meets default condition, management platform is determined the generation supervisory instruction; When configuration information does not meet when pre-conditioned, management platform can refuse to generate supervisory instruction, and the prompting configuration error, by the user, configuration information is modified.Can be filtered supervisory instruction by the detection to configuration information, avoided sending the problem of the waste communication resource that wrong supervisory instruction causes, reached the effect of saving communication overhead.
Before detecting configuration information, need to generate configuration information, and generate for configuring the configuration information of NameSpace, can comprise:
Filter out the port numbers in idle condition according to pre-defined rule, and be received in the configuration parameter of inputting in the configuration page of displaying, this configuration parameter comprises the Redis instance number that memory value, burst number and the burst of NameSpace comprise, this Redis example is main frame Master and slave Slave;
Generate configuration information according to port numbers and configuration parameter.
Owing to calling NameSpace according to the port numbers of NameSpace, thus the data in the read-write NameSpace, and therefore, management platform need to be to NameSpace configured port number.Management platform can read the port numbers in certain scope reserved in the Redis server, and filters out the current port numbers in idle condition, this port numbers is configured to the port numbers of NameSpace.Further, for the ease of port numbers is managed, can also the rule of filtered port number be arranged, such as, according to from small to large or rule from big to small screened, thereby can judge easily which port in idle condition, which port is in seizure condition.Wherein, during newly-built NameSpace, management platform need to filter out port numbers; While revising NameSpace, management platform can be screened the port numbers made new advances, and also can use the port numbers of original this NameSpace, and the present embodiment is not construed as limiting.
In the present embodiment, management platform can also arrange for NameSpace the storage organization of Master and Slave, and memory cell and Master that Master is data in Redis with Slave are identical with the data in Slave.Further, can configure at least one burst according to data volume in NameSpace, this burst is Master and Slave storage organization.Such as, when data volume is more, can increase the quantity of burst; When data volume is less, can reduce the quantity of burst.Wherein, the burst number is that the Redis instance number in burst can also can be illustrated in config option in the configuration page by the management platform default configuration, by the user, in the configuration page, is inputted.
Further, if Master and Slave are configured in a Redis server, once this Redis server breaks down so, to cause the disabled serious consequence of service, simultaneously in order to alleviate the load pressure of Redis server, the Redis example can also be dispersed in different Redis servers, further improve stability.Therefore, the number of Redis example is less than or equal to the number of Redis server.
In order to guarantee that the Redis example is dispersed in to different Redis servers, can be identified the Redis server, such as, Redis server 1, Redis server 2, Redis server 3 etc.If NameSpace only comprises a burst, the Master in burst can be configured in a Redis server of random selection, and next Slave is configured in the Redis server of sequence after this Redis server.If the Redis server of configuration, starts to distribute for first Redis server from sequence at last Redis server for sequence again.Such as, if the Redis server at Master place is Redis server 3, the Slave that can be connected with Master is configured in Redis server 1, then the Slave that will be connected with this Slave is configured in Redis server 2.If NameSpace comprises at least two bursts, the configuration mode of first burst can be with reference to the configuration mode of above-mentioned burst, in configuration N(N >=2) during individual burst, Master in N burst can be configured in the Redis server identical with last Slave of N-1 burst, the configuration mode of Slave in N burst is identical with the configuration mode of Slave in first burst, does not repeat herein.Can improve the availability of NameSpace by above-mentioned configuration mode, disperse the load of Redis server, improve further stability.
Further, management platform can also arrange memory value for NameSpace, and this memory value can also can be illustrated in config option in the configuration page by the management platform default configuration, by the user, in the configuration page, is inputted.Further, because the data in NameSpace are stored in the Redis server, therefore, the memory value of NameSpace should be less than the free memory value of Redis server, management platform can read the free memory value of Redis server, and the free memory value is illustrated in the configuration page, with for reference.
Preferably, pre-conditioned can be to detect the free memory value that the memory value configured is less than the Redis server.If management platform detects the free memory value that the memory value of configuration is greater than the Redis server, point out configuration error; If management platform detects the free memory value that the memory value of configuration is less than or equal to the Redis server, according to configuration information, generate supervisory instruction.
Further, management platform can also be arranged parameters such as the title of NameSpace, Hash type, snapshot conditions, and the present embodiment does not repeat.
Management platform sends the instruction of configuration NameSpace to Redis equipment, make Redis equipment automatically to create NameSpace according to the instruction of configuration NameSpace, avoided the user manually to the establishment of NameSpace, improved the establishment efficiency that creates NameSpace, the problem that the establishment NameSpace of also having avoided causing due to user's operating mistake is made mistakes, the situation of the accuracy that creates NameSpace of being improved.
Step 202, management platform is determined the message queue that Redis equipment is monitored, this message queue provides supervisory instruction for the Redis equipment to the monitoring information queue;
Message queue is that this message can be data or supervisory instruction etc. for processing the communication mode of a series of input message, can realizing by Message Queuing server, and the present embodiment be take supervisory instruction and described as example.Because message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, in order to guarantee Redis equipment, receive supervisory instruction, management platform need to be determined the message queue that Redis equipment is monitored.
Management platform can be made an appointment and indicate the route key of this message queue with Redis equipment, when management platform need to send supervisory instruction to Redis equipment, can read this route key, and determine according to this route key in the message queue of this Redis equipment monitoring.Wherein, the route key is for being routed to administrative messag the message queue of appointment.
Step 203, the message queue that management platform is monitored by Redis equipment sends supervisory instruction to Redis equipment;
In the present embodiment, can in management platform, dispose the Publisher(producer) script, management platform sends to supervisory instruction and the route key read in Message Queuing server by the Publisher script, and Message Queuing server is routed to by supervisory instruction the message queue that Redis equipment is monitored by switch.Because management platform and message queue are mutual, Redis equipment and message queue mutual, therefore, there do not is the administration authority of management platform to Redis equipment, there is the administration authority of Redis equipment while having avoided management platform to sign in to Redis equipment, can operate arbitrarily the problem of the data in Redis, reach the effect that improves the fail safe of data in Redis.
Wherein, Message Queuing server can be ActiveMQ, ZeroMQ, and RabbitMQ etc., can also be the message-oriented middleware of lightweight, as Beanstalkd, can be also other Redis etc.ZeroMQ is the fastest for the transmitting-receiving performance of message, but ZeroMQ itself can't accomplish the message persistence, needs the corresponding persistence function of exploitation, and does not also preponderate aspect available at height.When Redis is used as message queue, once the excessive performance of the total amount of message, can descend very soon.And RabbitMQ is relatively good aspect stability, characteristic and high availability, therefore, preferably, the message queue in the present embodiment is RabbitMQ.
Wherein, RabbitMQ provides three kinds of switch types, is respectively fanout, direct, topic.The fanout type, no matter what the route key is, can send to supervisory instruction in all message queues of binding with this switch; The direct type is accurate complete coupling route key, just can be managed instruction when only having the route key of the route key of supervisory instruction and message queue on all four and send in this message queue.The topic type is mated route key and matched rule, such as, matched rule between switch and message queue is topic.#, and, when the route key of supervisory instruction comprises " topic. ", switch is routed to this supervisory instruction in this message queue.Such as, the route key is topic.one or topic.ab etc.
Step 204, Redis equipment is monitored message queue;
In the present embodiment, can in Redis equipment, Consumer(consumer be set) script, by Consumer script monitor message queue.
Further, if Message Queuing server breaks down, normally monitoring information queue of Redis equipment, greatly affected the realization of business, therefore, needs to improve the high availability of Message Queuing server.In the present embodiment, can cluster and image feature be set to Message Queuing server.
Cluster refers to storage administration instruction in a Message Queuing server, by the metadata store of this Message Queuing server in other Message Queuing servers, when some Message Queuing servers break down, Redis equipment can connect with other Message Queuing servers, and determines the Message Queuing server of monitoring this supervisory instruction of storage by the metadata in these other Message Queuing servers.This metadata can comprise the sign of the Message Queuing server that stores this supervisory instruction.Further, the problem that the monitoring information queue caused for fear of identical message queue title in Message Queuing server makes mistakes, can virtual machine be set for Message Queuing server, by the title of message queue, identical message queue is buffered in different virtual machines, in order to distinguish message queue according to virtual machine.The sign that therefore, in metadata, can also comprise virtual machine.
Mirror image refers to storage administration instruction in all Message Queuing servers, and, when some Message Queuing servers break down, Redis equipment can connect with other Message Queuing servers, and monitors this other Message Queuing servers.
Further, when Message Queuing server breaks down, Redis equipment need to detect available Message Queuing server, thereby determines effective message queue.In order to save the operation of Redis equipment, can between Redis equipment and Message Queuing server, increase agent equipment, detect available Message Queuing server by agent equipment, and determine effective message queue.Monitoring information queue can comprise:
Control agent equipment is monitored message queue, and this message queue is the effective message queue that agent equipment is selected in having the message queue of identical message.
Wherein, the message queue with identical message can be the message queue with same metadata, can be also the message queue with identical message.
Further, agent equipment can be HA(High Availability, high availability) agency or keep-alive or zookeeper etc., the present embodiment is not construed as limiting.
Step 205, if the message queue of monitoring receives the supervisory instruction that management platform sends, Redis equipment reads supervisory instruction, this supervisory instruction is generated by management platform;
If the message queue that Redis equipment is monitored comprises the supervisory instruction that management platform sends, Redis equipment reads this supervisory instruction from this message queue by the Consumer script, and according to this supervisory instruction, self is managed.
Step 206, whether Redis equipment Inspection supervisory instruction is a kind of in default instruction list; Be a kind of in the instruction list if testing result is supervisory instruction, perform step 207;
While for fear of management platform, sending wrong supervisory instruction, Redis equipment is carried out the problem of the Information Security of the reduction Redis that this false command causes, can in Redis equipment, instruction list be set in advance, make Redis equipment only carry out the supervisory instruction in instruction list, limit by instruction list the supervisory instruction that Redis equipment is carried out, improved the Information Security of Redis.
Preferably, Redis can determine the route key by message queue, and catalogue corresponding to definite route key, reading command list from this catalogue.This catalogue can be pre-configured, and read in the internal memory of Redis equipment, forms the configuration dictionary.Whether Redis equipment can the detection management instruction be contained in the configuration dictionary, if supervisory instruction detected, is contained in the configuration dictionary, determines execution step 207; Be not contained in the configuration dictionary if supervisory instruction detected, finish management process.
Step 207, Redis equipment is carried out the indicated assigned operation of supervisory instruction.
Redis can also read the script of carrying out this supervisory instruction in catalogue, can carry out the indicated assigned operation of supervisory instruction, such as, Redis equipment can configure NameSpace, restart Redis equipment, close Redis equipment, revise Redis equipment configuration, Redis equipment is monitored etc.
Preferably, if supervisory instruction is the instruction of configuration NameSpace, this NameSpace is the buffer unit in Redis, and Redis equipment is the Redis server, carries out the indicated assigned operation of supervisory instruction, can comprise:
According to supervisory instruction configuration NameSpace, this supervisory instruction is generated according to configuration information by management platform, this configuration information is for configuring NameSpace, comprise the port numbers in idle condition that management platform filters out according to pre-defined rule and the configuration parameter of inputting in the configuration page of showing, this configuration parameter comprises the Redis instance number that memory value, burst number and the burst of NameSpace comprise, this Redis example is main frame Master and slave Slave.
Management platform can send the instruction of configuration NameSpace to each Redis server, Redis equipment can start the included Redis example of this NameSpace by the included configuration information of configuration NameSpace instruction received, to realize the Redis service by this Redis example.Wherein, Redis equipment is the Redis server.
Further, management platform can also be carried the indication that whether needs return messages when sending supervisory instruction, if need return messages, Redis equipment also needs execution result is sent to management platform as message.This execution result can be run succeeded or carry out failure.
If supervisory instruction is the instruction of configuration NameSpace, the method that the present embodiment provides can also comprise:
Send the described Redis example of indicating NameSpace to comprise by other message queues to management platform and start successful feedback information, this feedback information is used to indicate the message queue that management platform determines that other Redis equipment are monitored, the message queue of monitoring by other Redis equipment sends and revises configuration-direct and instruction of restarting to other Redis equipment, this modification configuration-direct and instruction of restarting are used to indicate other Redis equipment configuration NameSpaces, and other Redis equipment are the Redis acting server.
Redis equipment, after successfully starting the Redis example, can also send feedback information to management platform, and management platform is according to feedback information notice Redis acting server configuration NameSpace and restart the Redis acting server.
Corresponding, the method that the present embodiment provides can also comprise:
Receive the feedback information of Redis equipment to the instruction of configuration NameSpace by other message queues;
If the Redis example that feedback information indication NameSpace comprises starts successfully, determine the message queue that other Redis equipment are monitored, other Redis equipment are the Redis acting server;
The message queue of monitoring by other Redis equipment sends and revises configuration-direct and instruction of restarting to other Redis equipment, and this modification configuration-direct and instruction of restarting are used to indicate other Redis equipment configuration NameSpaces.
Management platform can be after receiving feedback information, add the NameSpace of configuration in configuration by revising configuration-direct notice Redis acting server, and restart the Redis acting server by instruction of restarting, newly-increased NameSpace is come into force, to guarantee the availability of NameSpace.Wherein, revise configuration-direct and instruction of restarting can together with send to message queue, also can send to respectively message queue.
It should be added that, can comprise at least two Redis examples in NameSpace due to configuration, if Redis equipment sends and to be used to indicate some Redis examples that NameSpace comprises and to start failed feedback information, in the Redis example that management platform also needs definite this NameSpace to comprise, the corresponding Redis equipment of Redis example that success starts, and the message queue of definite this Redis equipment monitoring, the message queue of monitoring by this Redis equipment sends the supervisory instruction of closing this Redis example to this Redis equipment, thereby the conflict while avoiding start next time, this Redis example caused.
Management platform sends the flow process of revising configuration-direct and instruction of restarting to the Redis acting server identical with the instruction that management platform sends the configuration NameSpace to the Redis server, does not repeat herein.
Further, when the configuration NameSpace when deleting NameSpace, the Redis example that this NameSpace of Redis server closing comprises, and be used to indicate to the management platform feedback Redis example that NameSpace comprises and close successful feedback information.Management platform is determined the message queue that the Redis acting server is monitored after receiving this feedback information, send and revise configuration-direct and instruction of restarting to the Redis acting server by definite message queue, so that the Redis acting server is deleted this NameSpace, and restart the Redis acting server.
Perhaps, if supervisory instruction is carried out the indicated assigned operation of supervisory instruction for monitoring Redis device directive, can comprise:
Obtain the monitor data that Redis equipment is monitored;
By other message queues, monitor data is fed back to management platform, monitor data exists when abnormal for Redis equipment, and the indication management platform triggers the abnormality processing flow process.
Redis equipment can be to the CPU(Central Processing Unit of outfit of equipment, CPU), IO(Input/Output, I/O) or internal memory display routine MEM etc., and CPU, IO, the MEM of service etc. are monitored, and the monitor data that monitoring is obtained sends to management platform.Preferably, the transmission frequency of monitor message can also be set, such as, transmission per minute is once.Wherein, Redis equipment can comprise Redis server and Redis acting server.
It should be added that, if supervisory instruction is monitoring Redis device directive, the method that the present embodiment provides can also comprise:
Receive the monitor data of Redis equipment feedback by other message queues;
If it is abnormal that monitor data indication Redis equipment exists, trigger the abnormality processing flow process.
Management platform can be detected the monitor data received, if monitor data indication Redis equipment detected, exists extremely, and management platform can trigger the abnormality processing flow process, such as, trigger alarm or automatically safeguard Redis equipment etc.Because message queue can send message in real time, therefore, monitor data can send to management platform in real time, and management platform can be found the abnormal of Redis equipment in time, thereby safeguards in time Redis equipment, has guaranteed the normal operation of Redis.
Wherein, Redis equipment can send message to management platform by synchronous or asynchronous system.Such as, Redis can pass through RPC(Remote Procedure Call, remote procedure call) synchronous mode transmission message.Under the RPC pattern, management platform is waited for the message that Redis equipment sends after sending supervisory instruction always, and being connected of disconnection and Message Queuing server receiving this message after, this pattern is applicable to the scene that Webpage etc. needs summary responses.Perhaps, Redis equipment can send message by asynchronous mode.Under asynchronous mode, also need to receiving equipment be set in management platform, management platform only is responsible for sending supervisory instruction, and receiving equipment is responsible for receiving the message that Redis equipment sends, and this pattern is applicable to monitoring and waits the scene that does not need summary responses.
Further, management platform can also arrange same route key to a plurality of Redis equipment, and management platform can be managed a plurality of Redis equipment by a supervisory instruction, has improved the efficiency of management.
In sum, the device management method that the embodiment of the present invention provides, be used to indicate by generation the supervisory instruction that Redis equipment is carried out assigned operation, determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue, the message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment, because management platform can send to Redis equipment by supervisory instruction by message queue, and message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, send by message queue the fail safe that supervisory instruction can guarantee Redis equipment, thereby avoided the protection to Redis equipment by key, solved that management platform signs in to according to key management platform that Redis equipment causes and signaling between Redis equipment increases, wasted the problem of the communication resource, reached the effect of having saved the communication resource, and improved fail safe.In addition, by detecting described supervisory instruction, be whether a kind of in default instruction list; If testing result is described supervisory instruction, be a kind of in described instruction list, determine and carry out the indicated assigned operation of described supervisory instruction, can limit the supervisory instruction that Redis equipment is carried out by instruction list, while having solved management equipment transmission false command, Redis equipment is carried out the problem of the Information Security of the reduction Redis that this false command causes, has reached the effect that improves the Information Security of Redis.
Please refer to Fig. 3, it shows the structural framing figure of the equipment management system that one embodiment of the invention provides, this equipment management system can comprise management platform, Redis equipment and Message Queuing server, and management platform comprises: generation module 310, the first determination module 320 and the first sending module 330; Redis equipment comprises: monitor module 410, read module 420 and Executive Module 430.
Generation module 310, be used to indicate for generation the supervisory instruction that Redis equipment is carried out assigned operation;
The first determination module 320, for the message queue of determining that Redis equipment is monitored, the supervisory instruction that message queue provides generation module 310 to generate for the Redis equipment to the monitoring information queue;
The first sending module 330, the message queue of monitoring for the Redis equipment definite by the first determination module 320 sends to Redis equipment the supervisory instruction that generation module 310 generates;
Monitor module 410, for the monitoring information queue, message queue provides supervisory instruction for the Redis equipment to the monitoring information queue;
Read module 420, if receive for the message queue of monitoring module 410 monitorings the supervisory instruction that management platform sends, read supervisory instruction, and supervisory instruction is generated by management platform;
Executive Module 430, the indicated assigned operation of supervisory instruction read for carrying out read module 420.
In sum, the equipment management system that the embodiment of the present invention provides, be used to indicate by generation the supervisory instruction that Redis equipment is carried out assigned operation, determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue, the message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment, because management platform can send to Redis equipment by supervisory instruction by message queue, and message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, send by message queue the fail safe that supervisory instruction can guarantee Redis equipment, thereby avoided the protection to Redis equipment by key, solved that management platform signs in to according to key management platform that Redis equipment causes and signaling between Redis equipment increases, wasted the problem of the communication resource, reached the effect of having saved the communication resource, and improved fail safe.
Please refer to Fig. 4, it shows the structural framing figure of the equipment management system that yet another embodiment of the invention provides, this equipment management system can comprise system management platform, Redis equipment and Message Queuing server, and management platform comprises: generation module 310, the first determination module 320 and the first sending module 330; Redis equipment comprises: monitor module 410, read module 420 and Executive Module 430.
Generation module 310, be used to indicate for generation the supervisory instruction that Redis equipment is carried out assigned operation;
The first determination module 320, for the message queue of determining that Redis equipment is monitored, the supervisory instruction that message queue provides generation module 310 to generate for the Redis equipment to the monitoring information queue;
The first sending module 330, the message queue of monitoring for the Redis equipment definite by the first determination module 320 sends to Redis equipment the supervisory instruction that generation module 310 generates;
Monitor module 410, for the monitoring information queue, message queue provides supervisory instruction for the Redis equipment to the monitoring information queue;
Read module 420, if receive for the message queue of monitoring module 410 monitorings the supervisory instruction that management platform sends, read supervisory instruction, and supervisory instruction is generated by management platform;
Executive Module 430, the indicated assigned operation of supervisory instruction read for carrying out read module 420.
Preferably, if supervisory instruction is the instruction of configuration NameSpace, NameSpace is the buffer unit in Redis, and Redis equipment is the Redis server, and generation module 310 comprises:
The first generation unit 311, for generating for configuring the configuration information of NameSpace;
Detecting unit 312, whether the configuration information generated for detection of the first generation unit 311 meets pre-conditioned;
The second generation unit 313, meet pre-conditionedly for configuration information detected at detecting unit 312, according to configuration information, generates supervisory instruction.
Further, the first generation unit 311 comprises:
Obtain subelement 311A, for according to pre-defined rule, filtering out the port numbers in idle condition, and be received in the configuration parameter of inputting in the configuration page of displaying, configuration parameter comprises the Redis instance number that memory value, burst number and the burst of NameSpace comprise, the Redis example is main frame Master and slave Slave;
Generate subelement 311B, for basis, obtain port numbers and the configuration parameter generation configuration information that subelement 311A gets.
Preferably, if supervisory instruction is the instruction of configuration NameSpace, NameSpace is the buffer unit in Redis, Redis equipment is the Redis server, Executive Module 430, for according to supervisory instruction, configuring NameSpace, supervisory instruction is generated according to configuration information by management platform, configuration information is for configuring NameSpace, comprise the port numbers in idle condition that management platform filters out according to pre-defined rule and the configuration parameter of inputting in the configuration page of showing, configuration parameter comprises the memory value of NameSpace, the Redis instance number that burst number and burst comprise, the Redis example is main frame Master and slave Slave.
Further, equipment also comprises:
The 3rd sending module 460, start successful feedback information for by other message queues, to management platform, sending the described Redis example of indicating NameSpace to comprise, feedback information is used to indicate the message queue that management platform determines that other Redis equipment are monitored, the message queue of monitoring by other Redis equipment sends and revises configuration-direct and instruction of restarting to other Redis equipment, revise configuration-direct and instruction of restarting and be used to indicate other Redis equipment configuration NameSpaces, other Redis equipment are the Redis acting server.
Further, management platform also comprises:
The first receiver module 340, for receiving the feedback information of Redis equipment to the instruction of configuration NameSpace by other message queues;
The second determination module 350, if the described Redis example that the feedback information received for the first receiver module 340 indication NameSpace comprises starts successfully, determine the message queue that other Redis equipment are monitored, and other Redis equipment are the Redis acting server;
The second sending module 360, the message queue of monitoring for other Redis equipment of determining by the second determination module 350 sends and revises configuration-direct and instruction of restarting to other Redis equipment, revises configuration-direct and instruction of restarting and is used to indicate other Redis equipment configuration NameSpaces.
Preferably, if supervisory instruction is monitoring Redis device directive, Executive Module 430, comprising:
Acquiring unit 431, for obtaining the monitor data that Redis equipment is monitored;
Feedback unit 432, feed back to management platform for monitor data acquiring unit 431 got by other message queues, and monitor data exists when abnormal for Redis equipment, and the indication management platform triggers the abnormality processing flow process.
Further, if supervisory instruction is monitoring Redis device directive, management platform also comprises:
The second receiver module 370, for receiving the monitor data of Redis equipment feedback by other message queues;
Trigger module 380, abnormal if the monitor data received for the second receiver module 370 indication Redis equipment exists, trigger the abnormality processing flow process.
Further, equipment also comprises:
Whether detection module 440 is a kind of in default instruction list for detection of supervisory instruction;
The 3rd determination module 450, while being instruction list a kind of for supervisory instruction detected at detection module 440, determining and carry out the indicated assigned operation of supervisory instruction.
Preferably, monitor module 410, for control agent equipment, monitor message queue, message queue is the effective message queue that agent equipment is selected in having the message queue of identical message.
In sum, the equipment management system that the embodiment of the present invention provides, be used to indicate by generation the supervisory instruction that Redis equipment is carried out assigned operation, determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue, the message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment, because management platform can send to Redis equipment by supervisory instruction by message queue, and message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, send by message queue the fail safe that supervisory instruction can guarantee Redis equipment, thereby avoided the protection to Redis equipment by key, solved that management platform signs in to according to key management platform that Redis equipment causes and signaling between Redis equipment increases, wasted the problem of the communication resource, reached the effect of having saved the communication resource, and improved fail safe.In addition, by detecting described supervisory instruction, be whether a kind of in default instruction list; If testing result is described supervisory instruction, be a kind of in described instruction list, determine and carry out the indicated assigned operation of described supervisory instruction, can limit the supervisory instruction that Redis equipment is carried out by instruction list, while having solved management equipment transmission false command, Redis equipment is carried out the problem of the Information Security of the reduction Redis that this false command causes, has reached the effect that improves the Information Security of Redis.
Please refer to Fig. 5, it shows the structural representation of the management equipment that one embodiment of the invention provides.Described management equipment 500 can be management platform or Redis equipment, this Redis equipment can be Redis server or Redis acting server, described management equipment 500 comprises CPU (CPU) 501, comprises the system storage 504 of random-access memory (ram) 502 and read-only memory (ROM) 503, and the system bus 505 of connected system memory 504 and CPU 501.Described management equipment 500 also comprises the basic input/output (I/O system) 506 of transmission information between each device helped in computer, and for the mass-memory unit 507 of storage operation system 513, application program 514 and other program modules 515.
Described basic input/output 506 includes display 508 for showing information and for the input equipment such as mouse, keyboard 509 of user's input information.Wherein said display 508 and input equipment 509 all are connected to CPU 501 by the IOC 510 that is connected to system bus 505.Described basic input/output 506 can also comprise that IOC 510 is with for receiving and process the input from a plurality of other equipment such as keyboard, mouse or electronic touch pens.Similarly, IOC 510 also provides the output equipment that outputs to display screen, printer or other types.
Described mass-memory unit 507 is connected to CPU 501 by the bulk memory controller (not shown) that is connected to system bus 505.Described mass-memory unit 507 and the computer-readable medium be associated thereof provide non-volatile memories for management equipment 500.That is to say, described mass-memory unit 507 can comprise the computer-readable medium (not shown) such as hard disk or CD-ROM drive.
Without loss of generality, described computer-readable medium can comprise computer-readable storage medium and communication media.Computer-readable storage medium comprises volatibility and non-volatile, the removable and irremovable medium of realizing with any method for information such as computer-readable instruction, data structure, program module or other data of storage or technology.Computer-readable storage medium comprises RAM, ROM, EPROM, EEPROM, flash memory or its technology of other solid-state storage, CD-ROM, DVD or other optical storage, cassette, tape, disk storage or other magnetic storage apparatus.Certainly, the known described computer-readable storage medium of those skilled in the art is not limited to above-mentioned several.Above-mentioned system storage 504 and mass-memory unit 507 can be referred to as memory.
According to various embodiments of the present invention, described management equipment 500 can also be by being connected to the remote computer operation on network such as networks such as internets.Be also that management equipment 500 can be connected to network 512 by the network interface unit 511 be connected on described system bus 505, in other words, also can be connected to by network interface unit 511 network or the remote computer system (not shown) of other types.
Described memory also comprises one or more than one program, described one or an above program are stored in memory, and are configured to carry out described one or above program package containing for provided device management method embodiment illustrated in fig. 1 and provided device management method embodiment illustrated in fig. 2 are provided by one or above CPU 501.
Please refer to Fig. 6, it shows the structural framing figure of the equipment management system that one embodiment of the invention provides.This equipment management system comprises management platform 610, Redis equipment 620 and Message Queuing server 630;
Wherein, Message Queuing server 630 is for the generating messages queue.
Wherein, management platform 610 can be the management platform as shown in Fig. 3 or Fig. 4 or Fig. 5, and Redis equipment 620 can be the Redis equipment as shown in Fig. 3 or Fig. 4 or Fig. 5.
In sum, the equipment management system that the embodiment of the present invention provides, be used to indicate by generation the supervisory instruction that Redis equipment is carried out assigned operation, determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue, the message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment, because management platform can send to Redis equipment by supervisory instruction by message queue, and message queue only provides supervisory instruction to the Redis equipment of monitoring this message queue, therefore, send by message queue the fail safe that supervisory instruction can guarantee Redis equipment, thereby avoided the protection to Redis equipment by key, solved that management platform signs in to according to key management platform that Redis equipment causes and signaling between Redis equipment increases, wasted the problem of the communication resource, reached the effect of having saved the communication resource, and improved fail safe.In addition, by detecting described supervisory instruction, be whether a kind of in default instruction list; If testing result is described supervisory instruction, be a kind of in described instruction list, determine and carry out the indicated assigned operation of described supervisory instruction, can limit the supervisory instruction that Redis equipment is carried out by instruction list, while having solved management equipment transmission false command, Redis equipment is carried out the problem of the Information Security of the reduction Redis that this false command causes, has reached the effect that improves the Information Security of Redis.
It should be noted that: the management platform that above-described embodiment provides, Redis equipment and equipment management system are when carrying out equipment control, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, the internal structure that is about to management platform, Redis equipment and equipment management system is divided into different functional modules, to complete all or part of function described above.In addition, the management platform that above-described embodiment provides, Redis equipment and equipment management system and device management method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (23)

1. a device management method, is characterized in that, described method comprises:
Generation is used to indicate the supervisory instruction that Redis equipment is carried out assigned operation;
Determine the message queue that described Redis equipment is monitored, described message queue provides described supervisory instruction for the Redis equipment to monitoring described message queue;
The message queue of monitoring by described Redis equipment sends described supervisory instruction to described Redis equipment.
2. device management method according to claim 1, it is characterized in that, if described supervisory instruction is the instruction of configuration NameSpace, described NameSpace is the buffer unit in Redis, described Redis equipment is the Redis server, described generation is used to indicate the supervisory instruction that Redis equipment is carried out assigned operation, comprising:
Generate for configuring the configuration information of described NameSpace;
Whether detect described configuration information meets pre-conditioned;
If testing result is described configuration information to be met described pre-conditionedly, according to described configuration information, generate described supervisory instruction.
3. device management method according to claim 2, is characterized in that, described generation, for configuring the configuration information of described NameSpace, comprising:
Filter out the port numbers in idle condition according to pre-defined rule, and be received in the configuration parameter of inputting in the configuration page of displaying, described configuration parameter comprises the Redis instance number that memory value, burst number and the burst of described NameSpace comprise, described Redis example is main frame Master and slave Slave;
Generate described configuration information according to described port numbers and described configuration parameter.
4. device management method according to claim 3, is characterized in that, described method also comprises:
Receive the feedback information of described Redis equipment to the instruction of described configuration NameSpace by other message queues;
If the described Redis example that described feedback information indicates described NameSpace to comprise starts successfully, determine the message queue that other Redis equipment are monitored, described other Redis equipment are the Redis acting server;
The message queue of monitoring by described other Redis equipment sends and revises configuration-direct and instruction of restarting to described other Redis equipment, and described modification configuration-direct and instruction of restarting are used to indicate described other Redis equipment and configure described NameSpace.
5. device management method according to claim 1, is characterized in that, if described supervisory instruction is monitoring Redis device directive, described method also comprises:
Receive the monitor data of described Redis equipment feedback by other message queues;
If it is abnormal that described monitor data indicates described Redis equipment to exist, trigger the abnormality processing flow process.
6. a device management method, is characterized in that, described method comprises:
The monitoring information queue, described message queue provides supervisory instruction for the Redis equipment to monitoring described message queue;
If the described message queue of monitoring receives the described supervisory instruction that management platform sends, read described supervisory instruction, described supervisory instruction is generated by described management platform;
Carry out the indicated assigned operation of described supervisory instruction.
7. device management method according to claim 6, is characterized in that, described method also comprises:
Detect described supervisory instruction and be whether a kind of in default instruction list;
Be a kind of in described instruction list if testing result is described supervisory instruction, determine and carry out the indicated assigned operation of described supervisory instruction.
8. device management method according to claim 6, it is characterized in that, if described supervisory instruction is the instruction of configuration NameSpace, described NameSpace is the buffer unit in Redis, described Redis equipment is the Redis server, the assigned operation that the described supervisory instruction of described execution is indicated comprises:
Configure described NameSpace according to described supervisory instruction, described supervisory instruction is generated according to configuration information by described management platform, described configuration information is for configuring described NameSpace, comprise the port numbers in idle condition that described management platform filters out according to pre-defined rule and the configuration parameter of inputting in the configuration page of showing, described configuration parameter comprises the Redis instance number that memory value, burst number and the burst of described NameSpace comprise, described Redis example is main frame Master and slave Slave.
9. device management method according to claim 8, is characterized in that, described method also comprises:
Send the described Redis example of indicating described NameSpace to comprise by other message queues to described management platform and start successful feedback information, described feedback information is used to indicate the message queue that described management platform determines that other Redis equipment are monitored, the message queue of monitoring by described other Redis equipment sends and revises configuration-direct and instruction of restarting to described other Redis equipment, described modification configuration-direct and instruction of restarting are used to indicate described other Redis equipment and configure described NameSpace, and described other Redis equipment are the Redis acting server.
10. device management method according to claim 6, is characterized in that, if described supervisory instruction is monitoring Redis device directive, the indicated assigned operation of the described supervisory instruction of described execution comprises:
Obtain the monitor data that described Redis equipment is monitored;
By other message queues, described monitor data is fed back to described management platform, described monitor data exists when abnormal for described Redis equipment, indicates described management platform to trigger the abnormality processing flow process.
11. according to the arbitrary described device management method of claim 6 to 10, it is characterized in that, described monitoring information queue comprises:
Control agent equipment is monitored described message queue, and described message queue is the effective message queue that described agent equipment is selected in having the message queue of identical message.
12. a management platform, is characterized in that, described management platform comprises:
Generation module, be used to indicate for generation the supervisory instruction that Redis equipment is carried out assigned operation;
The first determination module, for the message queue of determining that described Redis equipment is monitored, the described supervisory instruction that described message queue provides described generation module to generate for the Redis equipment to monitoring described message queue;
The first sending module, the message queue of monitoring for the described Redis equipment of determining by described the first determination module sends to described Redis equipment the described supervisory instruction that described generation module generates.
13. management platform according to claim 12, is characterized in that, if described supervisory instruction is the instruction of configuration NameSpace, described NameSpace is the buffer unit in Redis, and described Redis equipment is the Redis server, and described generation module comprises:
The first generation unit, for generating for configuring the configuration information of described NameSpace;
Detecting unit, whether the described configuration information generated for detection of described the first generation unit meets pre-conditioned;
The second generation unit, meet describedly when pre-conditioned for described configuration information detected at described detecting unit, according to described configuration information, generates described supervisory instruction.
14. management platform according to claim 13, is characterized in that, described the first generation unit comprises:
Obtain subelement, for according to pre-defined rule, filtering out the port numbers in idle condition, and be received in the configuration parameter of inputting in the configuration page of displaying, described configuration parameter comprises the Redis instance number that memory value, burst number and the burst of described NameSpace comprise, described Redis example is main frame Master and slave Slave;
Generate subelement, for according to described, obtain described port numbers and the described configuration parameter that subelement gets and generate described configuration information.
15. according to the described management platform of claim 13 or 14, it is characterized in that, described management platform also comprises:
The first receiver module, for receiving the feedback information of described Redis equipment to the instruction of described configuration NameSpace by other message queues;
The second determination module, if the described Redis example that the described feedback information received for described the first receiver module indicates described NameSpace to comprise starts successfully, determine the message queue that other Redis equipment are monitored, described other Redis equipment are the Redis acting server;
The second sending module, the message queue of monitoring for described other Redis equipment of determining by described the second determination module sends and revises configuration-direct and instruction of restarting to described other Redis equipment, and described modification configuration-direct and instruction of restarting are used to indicate described other Redis equipment and configure described NameSpace.
16. management platform according to claim 12, is characterized in that, if described supervisory instruction is monitoring Redis device directive, described management platform also comprises:
The second receiver module, for receiving the monitor data of described Redis equipment feedback by other message queues;
Trigger module, abnormal if the described monitor data received for described the second receiver module indicates described Redis equipment to exist, trigger the abnormality processing flow process.
17. a Redis equipment, is characterized in that, described equipment comprises:
Monitor module, for the monitoring information queue, described message queue provides supervisory instruction for the Redis equipment to monitoring described message queue;
Read module, if the described message queue of monitoring for described monitoring module receives the described supervisory instruction that management platform sends, read described supervisory instruction, and described supervisory instruction is generated by described management platform;
Executive Module, the indicated assigned operation of described supervisory instruction read for carrying out described read module.
18. Redis equipment according to claim 17, is characterized in that, described equipment also comprises:
Whether detection module is a kind of in default instruction list for detection of described supervisory instruction;
The 3rd determination module, while being described instruction list a kind of for described supervisory instruction detected at described detection module, determining and carry out the indicated assigned operation of described supervisory instruction.
19. Redis equipment according to claim 17, it is characterized in that, if described supervisory instruction is the instruction of configuration NameSpace, described NameSpace is the buffer unit in Redis, described Redis equipment is the Redis server, described Executive Module, for according to described supervisory instruction, configuring described NameSpace, described supervisory instruction is generated according to configuration information by described management platform, described configuration information is for configuring described NameSpace, comprise the port numbers in idle condition that described management platform filters out according to pre-defined rule and the configuration parameter of inputting in the configuration page of showing, described configuration parameter comprises the memory value of described NameSpace, the Redis instance number that burst number and burst comprise, described Redis example is main frame Master and slave Slave.
20. Redis equipment according to claim 19, is characterized in that, described equipment also comprises:
The 3rd sending module, start successful feedback information for by other message queues, to described management platform, sending the described Redis example of indicating described NameSpace to comprise, described feedback information is used to indicate the message queue that described management platform determines that other Redis equipment are monitored, the message queue of monitoring by described other Redis equipment sends and revises configuration-direct and instruction of restarting to described other Redis equipment, described modification configuration-direct and instruction of restarting are used to indicate described other Redis equipment and configure described NameSpace, described other Redis equipment are the Redis acting server.
21. Redis equipment according to claim 17, is characterized in that, if described supervisory instruction is monitoring Redis device directive, described Executive Module comprises:
Acquiring unit, for obtaining the monitor data that described Redis equipment is monitored;
Feedback unit, feed back to described management platform for the described monitor data described acquiring unit got by other message queues, and described monitor data exists when abnormal for described Redis equipment, indicates described management platform to trigger the abnormality processing flow process.
22. according to claim 17 to 21 arbitrary described Redis equipment, it is characterized in that, described monitoring module, monitor described message queue for control agent equipment, and described message queue is the effective message queue that described agent equipment is selected in having the message queue of identical message.
23. an equipment management system, described system comprises: described management platform as arbitrary as claim 12 to 16, described Redis equipment as arbitrary as claim 17 to 22 and Message Queuing server;
Wherein, described Message Queuing server is for the generating messages queue.
CN201310394676.9A 2013-09-03 2013-09-03 Device management method, management platform, equipment and system Active CN103501237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310394676.9A CN103501237B (en) 2013-09-03 2013-09-03 Device management method, management platform, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310394676.9A CN103501237B (en) 2013-09-03 2013-09-03 Device management method, management platform, equipment and system

Publications (2)

Publication Number Publication Date
CN103501237A true CN103501237A (en) 2014-01-08
CN103501237B CN103501237B (en) 2017-03-15

Family

ID=49866412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310394676.9A Active CN103501237B (en) 2013-09-03 2013-09-03 Device management method, management platform, equipment and system

Country Status (1)

Country Link
CN (1) CN103501237B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199957A (en) * 2014-09-17 2014-12-10 合一网络技术(北京)有限公司 Redis universal agent implementation method
CN105005469A (en) * 2015-06-03 2015-10-28 浙江大学 Non-blocking calling method based on Zookeeper and RabbitMQ
CN105589791A (en) * 2015-12-28 2016-05-18 江苏省电力公司信息通信分公司 Method for application system log monitoring management in cloud computing environment
CN106330994A (en) * 2015-06-18 2017-01-11 天脉聚源(北京)科技有限公司 User message publishing method and system
CN107357853A (en) * 2017-06-28 2017-11-17 广州华多网络科技有限公司 A kind of operating method, device and the computer system of REDIS consoles
CN107483653A (en) * 2017-08-24 2017-12-15 郑州云海信息技术有限公司 The acquisition methods and device of host information in computer room
CN107688611A (en) * 2017-08-03 2018-02-13 杭州铭师堂教育科技发展有限公司 A kind of Redis key assignments management system and method based on saltstack
CN111031094A (en) * 2019-11-06 2020-04-17 远景智能国际私人投资有限公司 Data transmission method, device, equipment and storage medium in IoT system
CN112468549A (en) * 2020-11-13 2021-03-09 浪潮云信息技术股份公司 Method, equipment and storage medium for reverse communication and management of server
CN113626211A (en) * 2021-06-29 2021-11-09 欧电云信息科技(江苏)有限公司 Switching method and switching system of message queue, electronic equipment and storage medium
CN117991741A (en) * 2024-04-07 2024-05-07 深圳和润达科技有限公司 Redis-based process flow control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047375A (en) * 2007-03-13 2007-10-03 廖钦平 Coding decoding method
CN102236340A (en) * 2010-04-26 2011-11-09 北大方正集团有限公司 Multi-equipment management method and device
CN102571933A (en) * 2011-12-22 2012-07-11 中国电子科技集团公司第十五研究所 Reliable message transmission method
CN102801561A (en) * 2012-08-09 2012-11-28 深圳市双赢伟业科技股份有限公司 Method for managing network equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047375A (en) * 2007-03-13 2007-10-03 廖钦平 Coding decoding method
CN102236340A (en) * 2010-04-26 2011-11-09 北大方正集团有限公司 Multi-equipment management method and device
CN102571933A (en) * 2011-12-22 2012-07-11 中国电子科技集团公司第十五研究所 Reliable message transmission method
CN102801561A (en) * 2012-08-09 2012-11-28 深圳市双赢伟业科技股份有限公司 Method for managing network equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨西贝: "Java消息服务机制的研究与应用", 《中国优秀硕士论文电子期刊》 *
黄允庆: "JMS在设备管理系统中的应用", 《大连理工大学硕士学位论文》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199957B (en) * 2014-09-17 2018-03-02 合一网络技术(北京)有限公司 A kind of implementation method of Redis general-purpose proxies
CN104199957A (en) * 2014-09-17 2014-12-10 合一网络技术(北京)有限公司 Redis universal agent implementation method
CN105005469A (en) * 2015-06-03 2015-10-28 浙江大学 Non-blocking calling method based on Zookeeper and RabbitMQ
CN105005469B (en) * 2015-06-03 2018-04-13 浙江大学 A kind of Non-blocking call method based on Zookeeper and RabbitMQ
CN106330994A (en) * 2015-06-18 2017-01-11 天脉聚源(北京)科技有限公司 User message publishing method and system
CN105589791A (en) * 2015-12-28 2016-05-18 江苏省电力公司信息通信分公司 Method for application system log monitoring management in cloud computing environment
CN107357853A (en) * 2017-06-28 2017-11-17 广州华多网络科技有限公司 A kind of operating method, device and the computer system of REDIS consoles
CN107357853B (en) * 2017-06-28 2020-12-08 广州华多网络科技有限公司 Method and device for operating REDIS console and computer system
CN107688611A (en) * 2017-08-03 2018-02-13 杭州铭师堂教育科技发展有限公司 A kind of Redis key assignments management system and method based on saltstack
CN107483653A (en) * 2017-08-24 2017-12-15 郑州云海信息技术有限公司 The acquisition methods and device of host information in computer room
CN111031094A (en) * 2019-11-06 2020-04-17 远景智能国际私人投资有限公司 Data transmission method, device, equipment and storage medium in IoT system
CN111031094B (en) * 2019-11-06 2022-07-12 远景智能国际私人投资有限公司 Data transmission method, device, equipment and storage medium in IoT system
CN112468549A (en) * 2020-11-13 2021-03-09 浪潮云信息技术股份公司 Method, equipment and storage medium for reverse communication and management of server
CN112468549B (en) * 2020-11-13 2022-11-25 浪潮云信息技术股份公司 Method, equipment and storage medium for reverse communication and management of server
CN113626211A (en) * 2021-06-29 2021-11-09 欧电云信息科技(江苏)有限公司 Switching method and switching system of message queue, electronic equipment and storage medium
CN117991741A (en) * 2024-04-07 2024-05-07 深圳和润达科技有限公司 Redis-based process flow control method and device
CN117991741B (en) * 2024-04-07 2024-06-07 深圳和润达科技有限公司 Redis-based process flow control method and device

Also Published As

Publication number Publication date
CN103501237B (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN103501237A (en) Device management method, management platform, device and system
CN112511339B (en) Container monitoring alarm method, system, equipment and storage medium based on multiple clusters
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN111614490B (en) Management system and method for managed container cluster based on top-level container cluster
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
US10540223B1 (en) System for determining error data
CN112511580B (en) Message pushing method, device, storage medium and equipment
US20130227568A1 (en) Systems and methods involving virtual machine host isolation over a network
CN111680328A (en) Data processing method and device, server and computer readable storage medium
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN117608825A (en) Resource management method based on multi-cloud management platform and related equipment
CN102970207B (en) A kind of instant communicating method, client terminal device and instantaneous communication system
CN111510480A (en) Request sending method and device and first server
WO2022021850A1 (en) Service instance deployment method and apparatus, electronic device, and storage medium
US9577967B2 (en) Method and system for managing an informational site using a social networking application
CN110620798A (en) Control method, system, equipment and storage medium for FTP connection
CN111262731B (en) Alarm method, alarm device, server equipment and storage medium
CN111865935B (en) Data transmission system
CN110673793B (en) Storage device node event management method and system, electronic device and storage medium
JP2015114952A (en) Network system, monitoring control unit, and software verification method
CN112488462A (en) Unified pushing method, device and medium for workflow data
CN112395567A (en) User authority management method, device, equipment and medium
CN112463514A (en) Monitoring method and device for distributed cache cluster
CN117056174B (en) Notification information processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant