CN102984012B - Management method and system for service resources - Google Patents

Management method and system for service resources Download PDF

Info

Publication number
CN102984012B
CN102984012B CN201210529408.9A CN201210529408A CN102984012B CN 102984012 B CN102984012 B CN 102984012B CN 201210529408 A CN201210529408 A CN 201210529408A CN 102984012 B CN102984012 B CN 102984012B
Authority
CN
China
Prior art keywords
node
service
server
resource information
resource
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
CN201210529408.9A
Other languages
Chinese (zh)
Other versions
CN102984012A (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.)
Poly Polytron Technologies Inc
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201210529408.9A priority Critical patent/CN102984012B/en
Publication of CN102984012A publication Critical patent/CN102984012A/en
Application granted granted Critical
Publication of CN102984012B publication Critical patent/CN102984012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a management method and a system for service resources. The method comprises the steps that a node server is pre-registered; tree nodes for storing server node resource information are created under a preset system tree root node; child nodes for storing business node resource information are created under the created tree nodes according to the node server which a business service belongs to; the resource information is received; the matched tree nodes or the child nodes are inquired; change of the received resource information when compared with the stored resource information is confirmed; a management controller is informed; the management controller dispatches the service resources based on load balancing according to the pre-required server node resource information and the business node resource information to generate node configuring resource information; and the node server operates the business carried in the node resource information according to the configuring resources carried in the node configuring resource information. With the application of the management method and the system, the management efficiency of the service resources can be improved.

Description

Method for managing service resources and service resource management system
Technical Field
The present invention relates to resource management technologies, and in particular, to a method for managing service resources and a service resource management system.
Background
With the development of information technology, a business service system is constructed through a network system and a business provider, and various business services can be quickly and conveniently provided for users, so that diversified and personalized business requirements of the users are met.
In the business service system, a plurality of servers are required to cooperate with each other to provide continuous and guaranteed services, so as to ensure high availability of the services.
In the prior art, generally, a service resource of each server is managed by a service manager, a service resource management system is constructed by each server and the service manager, the service resource of each server in the service resource management system is managed by using a resource pool management method, and by monitoring the change of the service resource of each server in the service resource management system (server cluster) in real time, for example, the service resource occupied by server online, server offline, service allocation, and the service resource released after service completion, the corresponding service resource in the resource pool of the service resource management system is updated when the change of the service resource is monitored. Therefore, a resource pool is established through resource management of distributed cloud computing, service resources are managed on the basis of the resource pool, and automatic updating and allocation of large-scale service resources are achieved.
It can be seen from the above that, the existing method for managing service resources adopts a distributed service resource management method, and management is mainly focused on service resource allocation and release for a server, while in practical applications, a plurality of services are generally run on the server, that is, service resources have multiple hierarchies (server service resources and service resources), and because the prior art does not relate to the aspects of organization hierarchy, resource discovery, location, transfer management, and the like of the service resources, the availability of service services is not high, and the management efficiency of the service resources is low.
Disclosure of Invention
The embodiment of the invention provides a method for managing service resources, which improves the management efficiency of the service resources.
The embodiment of the invention also provides a service resource management system, which improves the service resource management efficiency.
In order to achieve the above object, an embodiment of the present invention provides a service resource management system, including: a management controller, a resource tree server, and a node server, wherein,
the node server is used for sending a node registration request to the resource tree server after starting, performing server node registration, and sending server node resource information to the resource tree server according to a preset node time period when no service starting is monitored;
after the service is started, a service registration request is sent to the resource tree server, service node registration is carried out, and service node resource information is sent to the resource tree server according to a preset service time period;
receiving node configuration resource information sent by a management controller, and operating a service carried in the service node resource information according to the configuration resource carried in the service node resource information;
the resource tree server is used for registering server nodes for the node servers according to the node registration requests and creating tree nodes for storing the server node resource information under the preset tree root nodes of the service resource management system;
according to the service registration request, performing service node registration, according to the node server to which the service belongs, inquiring and acquiring the tree node to which the node server belongs, and under the acquired tree node, creating a child node for storing service node resource information;
receiving server node resource information or service node resource information, inquiring matched tree nodes or child nodes, and outputting the received resource information to a management controller if the received resource information is determined to be changed compared with the stored resource information;
and the management controller is used for receiving the resource information output by the resource tree server, dynamically scheduling the service resources based on load balance according to the pre-acquired node resource information of each server and the service node resource information in the system, generating node configuration resource information and outputting the node configuration resource information to the node server.
Preferably, the node server includes: a monitoring module, a node proxy module and a business service module, wherein,
the monitoring module is used for sending node registration triggering information to the node proxy module after monitoring that the node server is started, and sending server node resource triggering information to the node proxy module according to a preset node time period when no service is monitored to be started; after monitoring that the service of the node server is started, sending service registration triggering information to a node agent module, and sending service node resource triggering information to the node agent module according to a preset service time period;
the node agent module is used for receiving the node registration trigger information, generating a node registration request and sending the node registration request to the resource tree server; receiving node resource trigger information, inquiring and acquiring resource information of a node server, and sending server node resource information to a resource tree server; receiving service registration triggering information, generating a service registration request and sending the service registration request to a resource tree server; receiving service node resource triggering information, inquiring and acquiring the resource information of the service, and sending the service node resource information to a resource tree server;
and the service module is used for receiving the node configuration resource information sent by the management controller and operating the service carried in the service node resource information according to the configuration resource carried in the service node resource information.
Preferably, after registering the node server and the service, the resource tree server is further configured to output server node resource information or service node resource information carried in the registration request to the management controller.
Preferably, the node agent modules and the node servers are in a one-to-one correspondence relationship; the business service module and the node server are in a many-to-one relationship; the business service modules and the business services are in one-to-one correspondence.
A method of managing service resources, the method comprising:
the resource tree server registers server nodes for the node servers in advance, and creates tree nodes for storing server node resource information under the preset tree root nodes of the service resource management system;
according to the node server to which the service belongs, creating a child node for storing the service node resource information under the created tree node;
receiving server node resource information or service node resource information, inquiring matched tree nodes or child nodes, determining that the received resource information is changed compared with the stored resource information, and informing a management controller;
the management controller dynamically schedules service resources based on load balancing according to the pre-acquired node resource information of each server and the service node resource information in the system, generates node configuration resource information and outputs the node configuration resource information to the node server;
and the node server operates the service carried in the service node resource information according to the configuration resource carried in the node configuration resource information.
Wherein, the creating a child node storing the service node resource information under the created tree node according to the node server to which the service belongs comprises:
after the node server starts the service, a service registration request is sent to the resource tree server to register a service node, the resource tree server receives the service registration request to register the service node, the tree node to which the node server belongs is inquired and obtained according to the node server to which the service belongs, and a child node for storing the service node resource information is created under the obtained tree node.
After the resource tree server creates a child node storing the service node resource information, the method further includes:
and outputting the server node resource information carried in the node registration request and the service node resource information carried in the service registration request to the management controller.
Wherein the receiving server node resource information or service node resource information includes:
when the node server monitors that no business service is started, the node server sends server node resource information to the resource tree server according to a preset node time period;
and after the service is started, sending service node resource information to the resource tree server according to a preset service time period.
Wherein the server node resource information includes: CPU information, disk information, and network information;
the node registration request comprises initial server node resource information;
the service registration request comprises initial service node resource information;
and sending the server node resource information through a node heartbeat message, and sending the service node resource information through a child node heartbeat message.
Wherein after determining that the received resource information is changed from the stored resource information, and before notifying the management controller, the method further comprises:
presetting a resource information change threshold;
and if the changed resource information exceeds a preset resource information change threshold value, executing the step of informing the management controller, otherwise, not processing. As can be seen from the foregoing technical solutions, in the method for managing service resources and the service resource management system provided in the embodiments of the present invention, a resource tree server performs server node registration for a node server in advance, and creates a tree node for storing server node resource information under a preset tree root node of the service resource management system; according to the node server to which the service belongs, creating a child node for storing the service node resource information under the created tree node; receiving server node resource information or service node resource information, inquiring matched tree nodes or child nodes, determining that the received resource information is changed compared with the stored resource information, and informing a management controller; the management controller dynamically schedules service resources based on load balancing according to the pre-acquired node resource information of each server and the service node resource information in the system, generates node configuration resource information and outputs the node configuration resource information to the node server; and the node server operates the service carried in the service node resource information according to the configuration resource carried in the node configuration resource information. Therefore, the service resources are dynamically adjusted according to the node change of the resource tree, so that the node server resources are optimized, the service resource transfer and the service switching are performed, the availability of the service is improved, and the service resource management efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is to be understood that the drawings in the following description are merely exemplary of the invention and that other embodiments and drawings may be devised by those skilled in the art based on the exemplary embodiments shown in the drawings.
Fig. 1 is a schematic structural diagram of a service resource management system according to an embodiment of the present invention.
Fig. 2 is another structural diagram of a service resource management system according to an embodiment of the invention.
Fig. 3 is a flowchart illustrating a method for managing service resources according to an embodiment of the present invention.
FIG. 4 is a flowchart illustrating a method for managing service resources according to a first embodiment of the present invention.
FIG. 5 is a flowchart illustrating a method for managing service resources according to a second embodiment of the present invention.
FIG. 6 is a flowchart illustrating a method for managing service resources according to a third embodiment of the present invention.
Detailed Description
The technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The existing method for managing service resources does not comprehensively consider the management of the aspects of organization level, resource discovery, positioning, transfer and the like of the service resources, and when the service resources fail, automatic switching and transfer cannot be carried out, so that the service availability is not high, and the service resource management efficiency is low.
The service resources in the service resource management system are effectively managed, and the nodes in the system, namely the server and each service operated on the nodes, are required to be effectively managed, so that when some service operated in the nodes has problems, the service resource management system can find the problems in time and can restart the service on the nodes, or transfer the service on the nodes to other nodes, thereby ensuring the high availability of the service.
In the embodiment of the present invention, based on the above analysis and consideration, a method for managing service resources in a distributed manner is provided, where service resources in a system are organized and managed in a hierarchy similar to a file system tree, and the states of each node and each service under each node are maintained and monitored, and when a node or a service is abnormal, a management controller registered in the node is notified, so as to find out problems occurring in the service in time, and adopt corresponding operations, thereby facilitating dynamic adjustment of the service resources, and thus ensuring high availability of the service. The method can be used for coordinating storage, network and computing service resources of the nodes in the distributed service resource management system, and is convenient for realizing effective discovery, notification and transfer of the service resources, thereby realizing effective organization of the service resources. The service resource management system of the embodiment of the invention realizes resource management and switching of the streaming media module, the storage module, the downloading module and the like in the Next Generation Broadcasting Network (NGB) of the maritime letter and the operation platform of the intelligent television, thereby ensuring effective organization and management of business services.
Fig. 1 is a schematic structural diagram of a service resource management system according to an embodiment of the present invention. Referring to fig. 1, the service resource management system includes: a management controller, a resource tree server, and a node server, wherein,
the node server is used for sending a node registration request to the resource tree server after starting, performing server node registration, and sending server node resource information to the resource tree server according to a preset node time period when no service starting is monitored;
after the service is started, a service registration request is sent to the resource tree server, service node registration is carried out, and service node resource information is sent to the resource tree server according to a preset service time period;
receiving node configuration resource information sent by a management controller, and operating a service carried in the service node resource information according to the configuration resource carried in the service node resource information;
in the embodiment of the present invention, one or more service services may be run in one node server, and the service may be run only after the node server is started.
And if the node server runs the service, the node server sends the service node resource information to the resource tree server, and only when the node server does not run the service, the node server sends the server node resource information to the resource tree server.
The server node resource information includes: CPU information, disk information, network information, and the like.
The node registration request includes initial server node resource information.
In practical applications, when a node server starts a service, service resources corresponding to each service may be emphasized, for example, for an algorithm service, CPU information is concerned, for a data storage service, disk information is concerned, and for data transmission, network information is concerned. Therefore, each service corresponds to a service node resource information, which includes: one or any combination of CPU information, disk information, and network information.
The service registration request includes initial service node resource information.
The resource tree server is used for registering server nodes for the node servers according to the node registration requests and creating tree nodes for storing the server node resource information under the preset tree root nodes of the service resource management system;
according to the service registration request, performing service node registration, according to the node server to which the service belongs, inquiring and acquiring the tree node to which the node server belongs, and under the acquired tree node, creating a child node for storing service node resource information;
receiving server node resource information or service node resource information, inquiring matched tree nodes or child nodes, and outputting the received resource information to a management controller if the received resource information is determined to be changed compared with the stored resource information;
in the embodiment of the invention, the resource tree server is used for maintaining the hierarchy of the node server and the service and the resource information, and establishing a resource tree, wherein the resource tree comprises: root nodes, tree nodes, and child nodes, forming three levels.
The resource tree server sets a root node directory (folder) for the service resource management system, and creates corresponding tree node directories for the node servers respectively according to received node registration requests sent by the node servers under the root node directory, wherein each tree node directory corresponds to one node server; then, according to the received service registration request, a node server sending the service registration request is obtained, a tree node directory is inquired, the tree node directory mapped by the node server is obtained, and a sub-node directory storing service node resource information is created under the tree node directory.
Preferably, after registering the node server and the service, the resource tree server outputs the server node resource information or the service node resource information carried in the registration request to the management controller.
And the management controller is used for receiving the resource information output by the resource tree server, dynamically scheduling the service resources based on load balance according to the pre-acquired node resource information of each server and the service node resource information in the system, generating node configuration resource information and outputting the node configuration resource information to the node server.
In the embodiment of the invention, the management controller monitors the state change of the resource tree and carries out corresponding processing according to the state change.
Wherein,
the node server includes: a monitoring module, a node proxy module, and a traffic service module (not shown), wherein,
the monitoring module is used for sending node registration triggering information to the node proxy module after monitoring that the node server is started, and sending server node resource triggering information to the node proxy module according to a preset node time period when no service is monitored to be started; after monitoring that the service of the node server is started, sending service registration triggering information to a node agent module, and sending service node resource triggering information to the node agent module according to a preset service time period;
the node agent module is used for receiving the node registration trigger information, generating a node registration request and sending the node registration request to the resource tree server; receiving node resource trigger information, inquiring and acquiring resource information of a node server, and sending server node resource information to a resource tree server; receiving service registration triggering information, generating a service registration request and sending the service registration request to a resource tree server; receiving service node resource triggering information, inquiring and acquiring the resource information of the service, and sending the service node resource information to a resource tree server;
in the embodiment of the invention, the node agent module is used for registering the node server and the service information with the resource tree server, and reporting the resource condition of the node server and the resource condition of each service running in the node server periodically. Preferably, each node server comprises a node agent module.
And the service module is used for receiving the service node resource information sent by the management controller and operating the service carried in the service node resource information according to the configuration resource carried in the service node resource information.
In the embodiment of the present invention, preferably, the service module and the node server are in a many-to-one relationship, and the service module are in a one-to-one correspondence relationship, that is, in the node server, each running service corresponds to one service module.
Fig. 2 is another structural diagram of a service resource management system according to an embodiment of the invention. Referring to fig. 2, the service resource management system includes: the management controller is used for monitoring the service resource change condition of the node servers, the resource tree servers inform the management controller of the service resource change condition, and all the node servers belong to the same root node.
As can be seen from the above description, the service resource management system according to the embodiment of the present invention organizes the service resources including the node server resources and the service resources into a resource tree hierarchy, so as to facilitate management of the node server resources in the system and the service resources running on the node server, and monitors the status of each service resource in the resource tree through the management controller, finds a change in the service resources, and performs dynamic scheduling, thereby facilitating management of the cluster service resources. That is, each node server is used to simulate the correspondence between the node server and the tree node in the distributed resource by registering with the resource tree server and by the hierarchy of the directory tree like the file system. The control manager is beneficial to managing service resources; by setting the observer identifier, the change of the resource tree node is acquired, and the change condition of the service resource is timely and effectively found, so that the control manager can quickly find a proper node server according to the change condition of the service resource reported by the resource tree server, service resource transfer and service switching are performed, the availability of service is improved, and the service resource management efficiency is improved.
Fig. 3 is a flowchart illustrating a method for managing service resources according to an embodiment of the present invention. Referring to fig. 3, the process includes:
step 301, a resource tree server registers server nodes for a node server in advance, and creates tree nodes for storing server node resource information under a preset tree root node of a service resource management system;
in the step, after the node server is started, a node registration request is sent to the resource tree server to register the server node; and the resource tree server registers the node for the node server according to the received node registration request.
Step 302, according to the node server to which the service belongs, creating a child node for storing the service node resource information under the created tree node;
in this step, after the node server starts the service, it sends a service registration request to the resource tree server to perform service node registration, the resource tree server receives the service registration request to perform service node registration, queries and acquires the tree node to which the node server belongs according to the node server to which the service belongs, and creates a child node for storing the service node resource information under the acquired tree node.
Preferably, after the resource tree server creates the child node storing the service node resource information, the method further includes:
and outputting the server node resource information carried in the node registration request and the service node resource information carried in the service registration request to the management controller.
Step 303, receiving server node resource information or service node resource information, querying a matched tree node or child node, determining that the received resource information changes compared with stored resource information, and notifying a management controller;
in this step, receiving server node resource information or service node resource information includes:
when the node server monitors that no business service is started, the node server sends server node resource information to the resource tree server according to a preset node time period;
and after the service is started, sending service node resource information to the resource tree server according to a preset service time period.
In the embodiment of the present invention, the server node resource information includes: CPU information, disk information, network information, and the like.
The node registration request includes initial server node resource information.
The service registration request includes initial service node resource information.
Preferably, the server node resource information is sent through a node heartbeat message, and the service node resource information is sent through a child node heartbeat message.
In practical applications, after determining that the received resource information is changed from the stored resource information, and before notifying the management controller, the method may further include:
presetting a resource information change threshold;
and if the changed resource information exceeds a preset resource information change threshold value, executing the step of informing the management controller, otherwise, not processing.
304, the management controller dynamically schedules service resources based on load balancing according to the pre-acquired node resource information of each server and the service node resource information in the system, generates node configuration resource information and outputs the node configuration resource information to the node server;
in this step, the service resources include: traffic service resources and node service resources.
And 305, the node server operates the service carried in the service node resource information according to the configuration resource carried in the node configuration resource information.
Three specific embodiments are described in detail below with reference to fig. 1 to 3.
FIG. 4 is a flowchart illustrating a method for managing service resources according to a first embodiment of the present invention. Referring to fig. 4, the process includes:
step 401, a node server registers service resources with a resource tree server and a management controller through a node agent module;
in this step, each node server registers to a directory specified by the resource tree server through a corresponding node agent module to become a service resource node, the resource tree server sequentially creates tree nodes corresponding to the node servers from the constructed resource tree directory according to the registration sequence of the node servers, and returns a registration result, for example, registration success information or registration failure information, to the corresponding node server, thereby completing the registration of the node servers.
Step 402, a node server writes server node resource information of the node server into a node attribute corresponding to the node server in a resource tree according to a preset node time period through a node heartbeat message;
in this step, each node server periodically writes the server node resource information of the node itself into the node attribute corresponding to the node server in the resource tree through the node heartbeat message.
The resource information includes: CPU information, disk information, network information, etc.
Step 403, a service module in the node server registers a service sub-node to a node to which the service belongs in the resource tree;
in this step, after the operation service is started, each service module in the node server registers a service sub-node to a tree node to which the service belongs in the resource tree, and the resource tree sequentially creates sub-nodes corresponding to the service modules under the created tree nodes according to the registration sequence of each service module, and returns the registration result of the sub-nodes to the corresponding service modules.
Step 404, the service module writes the service node resource information of the service module into the corresponding child node attribute in the resource tree according to the preset service time period through the child node heartbeat message;
in this step, each service running in the node server carries the service node resource information of the real-time running of the service module in the child node heartbeat message according to the preset service time period, and writes the child node resource information in the corresponding child node attribute in the resource tree through the child node heartbeat message.
Step 405, the management controller sets an observer identifier on each node server, and monitors service resource information of the node servers;
in this step, the set observer identifier is used to dynamically monitor the service resource information of the node server, for example, when no service is running, the service resource information of the node server is dynamically reported in real time according to a preset node time period.
Step 406, when monitoring that the resource information of the node server changes and exceeds a set threshold value, or after the node fails, notifying a management controller;
in this step, when the resource information of the node server, for example, one or more of the CPU information, the disk information, and the network information changes and exceeds a set threshold, or the resource information of the node server changes and the node server fails, the management controller is notified.
Step 407, the management controller takes the operation of transferring the service or restarting the service according to the state change of the tree node.
In this step, for the case that the node server fails, the management controller may send the node configuration resource information to the node server, so that the node server restarts the service, and after the preset number of times of restarting is exceeded, if the service is not restarted yet, the interrupted or terminated service of the node server is transferred to another node server.
FIG. 5 is a flowchart illustrating a method for managing service resources according to a second embodiment of the present invention. Referring to fig. 5, the process includes:
step 501, a node agent module registers nodes to a resource tree server;
in this step, when the node server is started, the node agent module performs node registration through the resource tree server, the resource tree server creates a tree node corresponding to the node server, and writes server node resource information carried in the registration request, such as CPU core number, frequency, memory size, disk space size, and the like, into the node attribute.
Step 502, the resource tree server returns the registration result to the node agent module;
step 503, the resource tree server requests the management controller to monitor tree nodes;
step 504, the node agent module sends a node heartbeat message to the resource tree;
in this step, the node agent module updates the occupation situation of the physical resources of the node server in real time through the heartbeat message according to the preset node time period, thereby providing data support for the dynamic adjustment of the resources.
Step 505, the resource tree server returns a node heartbeat response message to the node proxy module;
step 506, the service module registers child nodes to the resource tree server;
in this step, when a service module of a node server is started, a tree node directory corresponding to the node server is obtained by query in a resource tree server, a service sub-node directory is sequentially created under the tree node directory through sub-node registration, and resource service information or configuration information of a service, for example, information such as parameters required by operation of the service module, CPU occupancy parameters, and the like, is written into sub-node attributes of the service sub-node directory.
Step 507, the resource tree server returns the sub-node registration result to the service module;
step 508, the resource tree server requests the management controller to monitor the child nodes and notifies;
step 509, the service module sends a child node heartbeat message to the resource tree server;
step 510, the resource tree server returns a child node heartbeat response message to the service module.
In this step, the tree node and the service child node are both temporary nodes, that is, depending on the heartbeat condition of the node server and the service module, if the node server does not report the node heartbeat message within the preset time, the resource tree server manages the authority of the node server, for example, deletes the tree node directory corresponding to the node server, and notifies the management controller.
The management controller registers with the resource tree server to monitor nodes of each layer under the root node, such as tree nodes and child nodes, so that when the resource tree server adds or deletes the node server, the resource tree server can inform the management controller of the change condition of the node server; when the resource tree server adds or deletes the service sub-nodes belonging to the node server, the management controller can timely know the service node resource information change of the sub-nodes (service modules).
FIG. 6 is a flowchart illustrating a method for managing service resources according to a third embodiment of the present invention. Taking the management controller as an example to perform the service transfer, referring to fig. 6, the process includes:
step 601, in a preset service time period, the resource tree server does not receive a child node heartbeat message sent by a service module (node 1 service module) of a first node server;
in this step, the resource tree server does not receive the child node heartbeat message within the preset service time period, which indicates that the service is not started in the first node service, or the started service is terminated due to other reasons, such as a network, a load, and the like, that is, the child node fails.
In the embodiment of the present invention, a dotted line indicates that the resource tree server does not receive the child node heartbeat message.
Step 602, the resource tree server sends child node failure information to the management controller;
step 603, in a preset node time period, the resource tree server does not receive the node heartbeat message sent by the first node agent module;
in this step, the resource tree server does not receive the node heartbeat message within the preset node time period, which indicates that the service of the first node to which the first node proxy module belongs is invalid, for example, shutdown or due to a network failure.
Step 604, the resource tree server sends the first node failure information to the management controller;
step 605, the second node agent module sends node heartbeat message to the resource tree server;
in this step, the resource tree server receives the node heartbeat message, and obtains server node resource information of the second node server.
Step 606, the management controller processes based on load balancing principle;
in this step, the management controller switches the service terminated in the first node server to another operating node server according to the obtained server node resource information of each node server and according to the load balancing principle.
In the embodiment of the invention, the management controller determines to switch the service terminated in the first node server to the second node server for operation.
For a detailed description of the load balancing principle, reference may be made to related technical documents, which are not described herein again.
Step 607, the management controller sends service operation information to the second node agent module;
in this step, the service operation information, that is, the node configuration resource information, is used to configure corresponding service resource information for the service terminated in the first node server.
Step 608, the second node agent module sends service operation information to the second node service module to execute service pull-up;
step 609, the second node service module runs the service and sends a child node heartbeat message to the resource tree server.
In this step, the second node service module in the second node server operates the service carried in the service node resource information according to the configuration resource carried in the node configuration resource information.
Therefore, when the service capability of the service needs to be improved, the requirement of service capacity expansion can be met by increasing service resources. When a node server is added, a node agent module in the node server registers to a resource tree server, so that the resource tree server notifies a management controller of server node resource information corresponding to the added node server, the management controller can acquire resource occupation of each node in a current resource tree directory in real time by traversing service resource information of each tree node, and in combination with service resources of each node, based on a load balancing principle, firstly, a node (node server) with tense resource occupation is selected, then, business services running on the node are acquired by reading child nodes of the node, the node agent module of the node is notified to stop the selected business services, and the node agent module of a newly added node is notified to run the business stopped on the node with tense resource occupation, so that the business on the node with tense resource occupation is switched to the node with less resource occupation or the newly added node, and the service resource adjustment of the newly added node is completed, and the availability of the service is improved, so that the service resource management efficiency is improved.
When the service needs to be reduced due to service adjustment, thereby saving server resources, or when the node server fails to work normally due to a fault of the node server, the node agent module in the node server cannot continuously send node heartbeat messages or child node heartbeat messages to the resource tree server, so that the resource tree server takes over corresponding tree nodes and service child nodes, the resource tree server notifies the management controller of the change information of the tree nodes and the service child nodes, the management controller learns the physical resources and the actual occupation situation of the node server by reading the tree node attribute information corresponding to the node server, and learns the stopped service distribution situation on the node server by traversing the service child nodes under the tree node, and selects the nodes with lighter resource occupation in the system based on a load balancing principle, and running the stopped business service on the node proxy module of the node so as to continue the business service.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention also encompasses these modifications and variations.

Claims (10)

1. A service resource management system, comprising: a management controller, a resource tree server, and a node server, wherein,
the node server is used for sending a node registration request to the resource tree server after starting, performing server node registration, and sending server node resource information to the resource tree server according to a preset node time period when no service starting is monitored;
after the service is started, a service registration request is sent to the resource tree server, service node registration is carried out, and service node resource information is sent to the resource tree server according to a preset service time period;
receiving node configuration resource information sent by a management controller, and operating a service carried in the service node resource information according to the configuration resource carried in the service node resource information;
the resource tree server is used for registering server nodes for the node servers according to the node registration requests and creating tree nodes for storing the server node resource information under the preset tree root nodes of the service resource management system;
according to the service registration request, performing service node registration, according to the node server to which the service belongs, inquiring and acquiring the tree node to which the node server belongs, and under the acquired tree node, creating a child node for storing service node resource information;
receiving server node resource information or service node resource information, inquiring matched tree nodes or child nodes, and outputting the received resource information to a management controller if the received resource information is determined to be changed compared with the stored resource information;
and the management controller is used for receiving the resource information output by the resource tree server, dynamically scheduling the service resources based on load balance according to the pre-acquired node resource information of each server and the service node resource information in the system, generating node configuration resource information and outputting the node configuration resource information to the node server.
2. The system of claim 1, wherein the node server comprises: a monitoring module, a node proxy module and a business service module, wherein,
the monitoring module is used for sending node registration triggering information to the node proxy module after monitoring that the node server is started, and sending server node resource triggering information to the node proxy module according to a preset node time period when no service is monitored to be started; after monitoring that the service of the node server is started, sending service registration triggering information to a node agent module, and sending service node resource triggering information to the node agent module according to a preset service time period;
the node agent module is used for receiving the node registration trigger information, generating a node registration request and sending the node registration request to the resource tree server; receiving node resource trigger information, inquiring and acquiring resource information of a node server, and sending server node resource information to a resource tree server; receiving service registration triggering information, generating a service registration request and sending the service registration request to a resource tree server; receiving service node resource triggering information, inquiring and acquiring the resource information of the service, and sending the service node resource information to a resource tree server;
and the service module is used for receiving the node configuration resource information sent by the management controller and operating the service carried in the service node resource information according to the configuration resource carried in the service node resource information.
3. The system according to claim 1 or 2, wherein the resource tree server is further configured to output server node resource information or service node resource information carried in the registration request to the management controller after registering the node server and the service.
4. The system of claim 2,
the resource tree server is further used for outputting server node resource information or service node resource information carried in the registration request to the management controller after registering the node server and the service;
the node agent modules and the node servers are in one-to-one correspondence; the business service module and the node server are in a many-to-one relationship; the business service modules and the business services are in one-to-one correspondence.
5. A method of managing service resources, the method comprising:
the resource tree server receives a node registration request sent by the node server, performs server node registration for the node server in advance, and creates tree nodes for storing server node resource information under the preset tree root nodes of the service resource management system;
according to the node server to which the service belongs, creating a child node for storing the service node resource information under the created tree node;
receiving server node resource information or service node resource information, inquiring matched tree nodes or child nodes, determining that the received resource information is changed compared with the stored resource information, and informing a management controller;
the management controller dynamically schedules service resources based on load balancing according to the pre-acquired node resource information of each server and the service node resource information in the system, generates node configuration resource information and outputs the node configuration resource information to the node server;
and the node server operates the service carried in the service node resource information according to the configuration resource carried in the node configuration resource information.
6. The method of claim 5, wherein the creating, under the created tree node, a child node storing service node resource information according to the node server to which the service belongs comprises:
after the node server starts the service, a service registration request is sent to the resource tree server to register a service node, the resource tree server receives the service registration request to register the service node, the tree node to which the node server belongs is inquired and obtained according to the node server to which the service belongs, and a child node for storing the service node resource information is created under the obtained tree node.
7. The method of claim 6, wherein the resource tree server, after creating the child node storing the service node resource information, further comprises:
and outputting the server node resource information carried in the node registration request and the service node resource information carried in the service registration request to the management controller.
8. The method of claim 7, wherein the receiving server node resource information or service node resource information comprises:
when the node server monitors that no business service is started, the node server sends server node resource information to the resource tree server according to a preset node time period;
and after the service is started, sending service node resource information to the resource tree server according to a preset service time period.
9. The method of any of claims 6 to 8, wherein the server node resource information comprises: CPU information, disk information, and network information;
the node registration request comprises initial server node resource information;
the service registration request comprises initial service node resource information;
and sending the server node resource information through a node heartbeat message, and sending the service node resource information through a child node heartbeat message.
10. The method of claim 9, wherein after determining that the received resource information has changed from the stored resource information and before notifying the management controller, the method further comprises:
presetting a resource information change threshold;
and if the changed resource information exceeds a preset resource information change threshold value, executing the step of informing the management controller, otherwise, not processing.
CN201210529408.9A 2012-12-10 2012-12-10 Management method and system for service resources Active CN102984012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210529408.9A CN102984012B (en) 2012-12-10 2012-12-10 Management method and system for service resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210529408.9A CN102984012B (en) 2012-12-10 2012-12-10 Management method and system for service resources

Publications (2)

Publication Number Publication Date
CN102984012A CN102984012A (en) 2013-03-20
CN102984012B true CN102984012B (en) 2015-05-20

Family

ID=47857773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210529408.9A Active CN102984012B (en) 2012-12-10 2012-12-10 Management method and system for service resources

Country Status (1)

Country Link
CN (1) CN102984012B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735097A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Information collecting method and system
CN105991478B (en) * 2015-02-05 2019-08-30 阿里巴巴集团控股有限公司 Server resource distribution method and its system
CN107105003A (en) * 2017-02-14 2017-08-29 广州云晫信息科技有限公司 Cloud system is melted automatically in the super fusion thin cloud data center of one kind
CN108038215A (en) * 2017-12-22 2018-05-15 上海达梦数据库有限公司 Data processing method and system
CN109086296B (en) * 2018-06-13 2021-12-07 广州市信景技术有限公司 Electronic commerce system based on browser and server structure
CN109286826B (en) * 2018-08-31 2020-12-29 视联动力信息技术股份有限公司 Information display method and device
CN110020764A (en) * 2018-10-25 2019-07-16 阿里巴巴集团控股有限公司 Method for managing resource, device, equipment and computer readable storage medium
CN110083504B (en) * 2019-03-29 2024-04-26 奇安信科技集团股份有限公司 Running state monitoring method and device for distributed tasks
CN111010421A (en) * 2019-11-14 2020-04-14 珠海许继芝电网自动化有限公司 Ubiquitous power Internet of things distributed service state detection method and device
CN111522999A (en) * 2020-04-22 2020-08-11 北京思特奇信息技术股份有限公司 Method and device for managing service operation tree
CN112039709B (en) * 2020-09-02 2022-01-25 北京首都在线科技股份有限公司 Resource scheduling method, device, equipment and computer readable storage medium
CN112181501B (en) * 2020-09-02 2024-02-23 中国银联股份有限公司 Service framework of application, service control method, device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794735A (en) * 2005-12-31 2006-06-28 武汉市中光通信公司 Flexible exchange application server system based on distribution architecture
CN101309302A (en) * 2008-06-30 2008-11-19 华为技术有限公司 Signaling distributing method and apparatus based on application server
CN102739771A (en) * 2012-04-18 2012-10-17 上海和辰信息技术有限公司 Cloud application integrated management platform and method supporting service fusion

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8495192B2 (en) * 2007-02-28 2013-07-23 Sony Corporation Distributed processing method, distributed processing system, server, program for the same, computer, and program for the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794735A (en) * 2005-12-31 2006-06-28 武汉市中光通信公司 Flexible exchange application server system based on distribution architecture
CN101309302A (en) * 2008-06-30 2008-11-19 华为技术有限公司 Signaling distributing method and apparatus based on application server
CN102739771A (en) * 2012-04-18 2012-10-17 上海和辰信息技术有限公司 Cloud application integrated management platform and method supporting service fusion

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王嫚.网格环境下资源管理关键技术的研究.《中国博士学位论文全文数据库(电子期刊)》.2006,(第11期),I139-23. *

Also Published As

Publication number Publication date
CN102984012A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102984012B (en) Management method and system for service resources
JP6026705B2 (en) Update management system and update management method
CN105357296A (en) Elastic caching system based on Docker cloud platform
US20150236902A1 (en) System, method and apparatus to manage services in a network
CN104065517A (en) Distributed-system software configuration management method and system
US20160344582A1 (en) Call home cluster
CN113742031A (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN107454171B (en) Message service system and implementation method thereof
CN112416969B (en) Parallel task scheduling system in distributed database
CN112217847A (en) Micro service platform, implementation method thereof, electronic device and storage medium
CN103164262B (en) A kind of task management method and device
CN102984174B (en) Reliability guarantee method and system in a kind of distribution subscription system
CN108540367A (en) A kind of message treatment method and system
CN202870563U (en) Distributed comprehensive monitoring system
CN114553900B (en) Distributed block storage management system, method and electronic equipment
CN114338670B (en) Edge cloud platform and network-connected traffic three-level cloud control platform with same
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
CN106790354B (en) Communication method and device for preventing data congestion
CN115225645B (en) Service updating method, device, system and storage medium
CN109587062B (en) Load balancing information synchronization method, device and processing equipment
US11381642B2 (en) Distributed storage system suitable for sensor data
CN116346834A (en) Session synchronization method, device, computing equipment and computer storage medium
CN111475333A (en) Openstack-based database backup method and device
CN114615268B (en) Service network, monitoring node, container node and equipment based on Kubernetes cluster
CN104052723A (en) Information processing method and server

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170111

Address after: 266100 Shandong Province, Qingdao city Laoshan District Songling Road No. 399

Patentee after: Poly Polytron Technologies Inc

Address before: 266061 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131

Patentee before: Hisense Media Networks Co., Ltd.