CN103051697B - A kind of method and system that cloud service control is realized based on cloud node - Google Patents

A kind of method and system that cloud service control is realized based on cloud node Download PDF

Info

Publication number
CN103051697B
CN103051697B CN201210545152.0A CN201210545152A CN103051697B CN 103051697 B CN103051697 B CN 103051697B CN 201210545152 A CN201210545152 A CN 201210545152A CN 103051697 B CN103051697 B CN 103051697B
Authority
CN
China
Prior art keywords
cloud node
instruction
cloud
control
server
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.)
Active
Application number
CN201210545152.0A
Other languages
Chinese (zh)
Other versions
CN103051697A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201210545152.0A priority Critical patent/CN103051697B/en
Publication of CN103051697A publication Critical patent/CN103051697A/en
Application granted granted Critical
Publication of CN103051697B publication Critical patent/CN103051697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Abstract

The present invention relates to a kind of method that cloud service control is realized based on cloud node, including:Step 1, it is unified that control instruction is configured and distributed, make the control instruction of each cloud node unique in cloud service;Step 2, cloud node is started, and each cloud node carries out instruction registration to cloud node control server, specifies the instruction that each cloud node can be performed;Step 3, front-end server sends control instruction and gives cloud node control server, and control instruction is sent to corresponding cloud node by cloud node control server according to instruction registering result;Step 4, cloud node is handled control instruction, and result is returned into front-end server by cloud node control server.The present invention gives corresponding system.The present invention provides control and maintenance scheme efficiently, inexpensive for cloud service system.

Description

A kind of method and system that cloud service control is realized based on cloud node
Technical field
The present invention relates to the control technology field of extensive node serve, more particularly to one kind realizes cloud based on cloud node The method and system of Service controll.
Background technology
With the arrival of cloud computing era, large-scale or even very-large-scale system will continuously emerge.How effectively quick control unit The calculate node of administration, the problems such as coordinating the significantly more efficient work of each node and reduction maintenance cost is large scale system by face One of subject matter faced, technical scheme is to efficiently solve this problem.
The content of the invention
The technical problems to be solved by the invention be to provide it is a kind of based on cloud node realize cloud service control method and be System, for solving the calculate node of how effective quickly control deployment, coordinating the significantly more efficient work of each node, reduction maintenance The problems such as cost
The technical scheme that the present invention solves above-mentioned technical problem is as follows:A kind of side that cloud service control is realized based on cloud node Method, including:
Step 1, it is unified that control instruction is configured and distributed, make the control instruction of each cloud node in cloud service only One;
Step 2, cloud node is started, and each cloud node carries out instruction registration to cloud node control server, specifies each cloud section The instruction that point can be performed;
Step 3, front-end server sends control instruction and gives cloud node control server, and cloud node control server is according to finger Make registering result that control instruction is sent into corresponding cloud node;
Step 4, cloud node is handled control instruction, and result is returned to by cloud node control server Front-end server.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, the control instruction in step 1 is configured using Json data formats.Json data formats (JavaScript Object Notation) is a kind of data interchange format of lightweight, and it is to be based on JavaScript (Standard ECMA-262 3rd Edition-December 1999)A subset.
Further, the step 2 also includes:Cloud node control server will carry out instruction registration to the instruction of itself.
Further, communicated between front-end server and cloud node control server using http protocol.
Further, between cloud node control server and each cloud node using socket communication modes and/or with message team Row communication mode.
Further, if cloud node control server and cloud node deployment are on same machine, led to using message queue Letter mode;If cloud node control server and cloud node deployment are on different machines, using socket communication modes, communication side Formula can configure.
Further, methods described also includes:The timing of cloud node sends heartbeat instruction to cloud node control server.
Corresponding to the above method, technical scheme also includes:A kind of system controlled based on cloud node serve, bag Include a front-end server, a cloud node control server and at least one cloud node:
The front-end server, itself and the cloud node control server communication are matched somebody with somebody for unified to control instruction Put and distribute, and control instruction is sent to the cloud node control server;
The cloud node control server, it is communicated with each cloud node, and the instruction for carrying out each cloud node is registered, also For the control instruction that front-end server is sent to be sent into corresponding cloud node according to instruction registering result;
The cloud node, itself and the cloud node control server communication, for carrying out processing control instruction, and will processing As a result front-end server is returned to by cloud node control server.
Further, front-end server configures control instruction using Json data formats.
Further, communicated between front-end server and cloud node control server using http protocol, cloud node control Socket communication modes and/or message queue communication mode are used between control server and each cloud node.
The beneficial effects of the invention are as follows:The present invention effectively and rapidly controls the calculate node of deployment, coordinates each node more Plus be effectively operated, reduce maintenance cost.Framework of the present invention is simple, it is adaptable to the control of extensive node serve, such as Cloud storage service center control node, cloud service instruction control node are built.The method and system of the present invention are simple to operate, for For O&M person, it is only necessary to which what proposition will do, and need not be paid close attention to then that node to do, directly sent out in front-end server Send instruction.Synthetically say, the present invention provides control and maintenance scheme efficiently, inexpensive for cloud service system.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the present invention that the method that cloud service is controlled is realized based on cloud node;
Fig. 2 is the structural representation of the present invention that the system that cloud service is controlled is realized based on cloud node.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
As shown in figure 1, embodiment one is a kind of method that cloud service control is realized based on cloud node, including:
Step 1, it is unified that control instruction is configured and distributed, make the control instruction of each cloud node in cloud service only One.The Json data formats that instruction format is used, specific form is:Mode+content of parameter of instruction+resource.
Step 2, cloud node is started, and each cloud node carries out instruction registration to cloud node control server, specifies each cloud section The instruction that point can be performed, to show what action the node can do.In addition, cloud node control server will also be seen as one Special cloud node, it is also desirable to register the instruction of itself.
Step 3, front-end server sends control instruction and gives cloud node control server, and cloud node control server is according to finger Make registering result that control instruction is sent into corresponding cloud node.Cloud node needs timing to send heartbeat instruction to server, with table It is to be active to show the node, the heartbeat that cloud node server is sended over according to cloud node come judge the node whether also It is active state, if it find that the node is inactive, the instruction tested is deleted.
Step 4, cloud node is handled control instruction, and result is returned to by cloud node control server Front-end server.
For such scheme, communicated between front-end server and cloud node control server using http protocol, and The communication mode coexisted between cloud node control server and each cloud node using socket with message queue, if control service Device on same machine, is then communicated with cloud node deployment using message queue;If control server exists with cloud node deployment On different machines, then using socket communication, communication modes can configure.
As shown in Fig. 2 correspondence such scheme, embodiment one additionally provides a kind of system controlled based on cloud node serve, It includes a front-end server, a cloud node control server and at least one cloud node(Cloud node 1 as depicted, Cloud node 2, cloud node 3, cloud node m, cloud node n-2, cloud node n-1, cloud node n):
The front-end server, itself and the cloud node control server communication are matched somebody with somebody for unified to control instruction Put and distribute, and control instruction is sent to the cloud node control server;
The cloud node control server, it is communicated with each cloud node, and the instruction for carrying out each cloud node is registered, also For the control instruction that front-end server is sent to be sent into corresponding cloud node according to instruction registering result;
The cloud node, itself and the cloud node control server communication, for carrying out processing control instruction, and will processing As a result front-end server is returned to by cloud node control server.
Control instruction is configured and distributed for unified in embodiment one, by taking following program segment as an example, is specially: It configures to ensure uniqueness of the instruction with resource by front-end server unified planning.Instruction format is using instruction+resource Mode+content of parameter(Transmitted using Json data formats).
The function parameter type of transmission is as follows:
Method defines four kinds of operating methods, and for convenience of with computing is located at, 1,2,4,8 are defined as respectively.
Call function statement is as follows:
std::auto_ptr<Json::Value>sendCommand(const char* resource,Method method,const Json::Value* root);
Input:Instruction+resource+content of parameter.
Output:Returning result.
For example:Assuming that getmachineinfo_1, getmachineinfo_2, getmachineinfo_3 distinguish table Show node 1, node 2, three resources of node 3.
May be just like giving an order in instruction unified distribution service:
getmachineinfo_1#8#cpu
getmachineinfo_1#8#mem
getmachineinfo_2#8#cpu
getmachineinfo_2#8#mem
getmachineinfo_3#8#cpu
getmachineinfo_3#8#mem
Resource is unified distribution with instruction in these orders, and each node will not be repeated, and last parameter is according to tool Body demand has different inputs.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (9)

1. a kind of method that cloud service control is realized based on cloud node, it is characterised in that including:
Step 1, it is unified that control instruction is configured and distributed, make the control instruction of each cloud node unique in cloud service, tool Body:
Instruction format is made up of instruction, the mode of resource, content of parameter;
Resource is unified distribution with instruction, and each node will not be repeated;
Step 2, cloud node is started, and each cloud node carries out instruction registration to cloud node control server, specifies each cloud node energy The instruction of execution;
Step 3, front-end server sends control instruction and gives cloud node control server, and cloud node control server is noted according to instruction Control instruction is sent to corresponding cloud node by volume result;The timing of cloud node sends heartbeat instruction to cloud node control server;
Step 4, cloud node is handled control instruction, and result is returned into front end by cloud node control server Server.
2. according to the method described in claim 1, it is characterised in that the control instruction in step 1 is entered using Json data formats Row configuration.
3. according to the method described in claim 1, it is characterised in that the step 2 also includes:Cloud node control server is right The instruction of itself carries out instruction registration.
4. according to the method described in claim 1, it is characterised in that used between front-end server and cloud node control server Http protocol is communicated.
5. according to the method described in claim 1, it is characterised in that used between cloud node control server and each cloud node Socket communication modes and/or message queue communication mode.
6. method according to claim 5, it is characterised in that if cloud node control server with cloud node deployment same On platform machine, then using message queue communication mode;If cloud node control server and cloud node deployment are on different machines, Using socket modes.
7. a kind of system controlled based on cloud node serve, it is characterised in that including a front-end server, a cloud node control Control server and at least one cloud node:
The front-end server, itself and the cloud node control server communication, for it is unified control instruction is carried out configuration and Distribution, and control instruction is sent to the cloud node control server, instruction format is in instruction, the mode of resource, parameter Hold composition, resource is unified distribution with instruction, and each node will not be repeated;
The cloud node control server, it is communicated with each cloud node, and the instruction for carrying out each cloud node is registered, and is additionally operable to The control instruction that front-end server is sent is sent to by corresponding cloud node according to instruction registering result;Cloud node is regularly to cloud section Point control server sends heartbeat instruction;
The cloud node, itself and the cloud node control server communication, for carrying out processing control instruction, and by result Front-end server is returned to by cloud node control server.
8. system according to claim 7, it is characterised in that front-end server is referred to using the configuration control of Json data formats Order.
9. system according to claim 7, it is characterised in that used between front-end server and cloud node control server Http protocol is communicated, and socket communication modes and/or message team are used between cloud node control server and each cloud node Row communication mode.
CN201210545152.0A 2012-12-14 2012-12-14 A kind of method and system that cloud service control is realized based on cloud node Active CN103051697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210545152.0A CN103051697B (en) 2012-12-14 2012-12-14 A kind of method and system that cloud service control is realized based on cloud node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210545152.0A CN103051697B (en) 2012-12-14 2012-12-14 A kind of method and system that cloud service control is realized based on cloud node

Publications (2)

Publication Number Publication Date
CN103051697A CN103051697A (en) 2013-04-17
CN103051697B true CN103051697B (en) 2017-07-28

Family

ID=48064191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210545152.0A Active CN103051697B (en) 2012-12-14 2012-12-14 A kind of method and system that cloud service control is realized based on cloud node

Country Status (1)

Country Link
CN (1) CN103051697B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375373A (en) * 2016-08-24 2017-02-01 广西小草信息产业有限责任公司 Task decomposition method and system based on dynamic cloud nodes

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790438A (en) * 2004-12-14 2006-06-21 乐金电子(中国)研究开发中心有限公司 Method and system for meter transmitting information
CN101237327A (en) * 2007-02-01 2008-08-06 ***助在线信息技术有限公司 An online help platform system and its realization method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790438A (en) * 2004-12-14 2006-06-21 乐金电子(中国)研究开发中心有限公司 Method and system for meter transmitting information
CN101237327A (en) * 2007-02-01 2008-08-06 ***助在线信息技术有限公司 An online help platform system and its realization method

Also Published As

Publication number Publication date
CN103051697A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
Deri nCap: Wire-speed packet capture and transmission
CN103345461B (en) Based on the polycaryon processor network-on-a-chip with accelerator of FPGA
CN102521012B (en) Virtual machine-based general processing unit (GPU) cluster management system
GB2533256A (en) Data processing systems
CN107087019A (en) A kind of end cloud cooperated computing framework and task scheduling apparatus and method
US10171294B2 (en) Information processing device and system design support method
CN106681793A (en) KVM-based accelerator virtualization data processing system and method
CN110399221A (en) Data processing method, system and terminal device
CN105045566B (en) A kind of embedded type parallel computation system and the parallel calculating method using it
CN104219226A (en) Method for determining number of optimal communication agent nodes in cloud platform
CN103051697B (en) A kind of method and system that cloud service control is realized based on cloud node
CN109032982A (en) A kind of data processing method, device, equipment, system, FPGA board and combinations thereof
CN106375373A (en) Task decomposition method and system based on dynamic cloud nodes
CN110532060A (en) A kind of hybrid network environmental data collecting method and system
CN107291638A (en) Parallel processing apparatus and the method for control communication
CN104598428B (en) Data handling system
CN108334550A (en) A kind of data processing system based on Human Resource Management System
CN206021155U (en) A kind of fusion architecture server
CN201230328Y (en) Network system based on three layer architecture
CN104156332A (en) High-performance parallel computing method based on external PCI-E connection
EP2860643A3 (en) Collective communications apparatus and method for parallel systems
CN104699520B (en) A kind of power-economizing method based on virtual machine (vm) migration scheduling
CN202906949U (en) RS485 double host machine communication passthrough module
CN102685001B (en) Efficient processing method and efficient processing system of tasks of network devices
CN205750754U (en) A kind of touch screen controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant