Unlock instant, AI-driven research and patent intelligence for your innovation.

Service management method and device based on role configuration

A technology of service management and roles, applied in the field of service management based on role configuration, can solve the problems of heavy workload, failure to restore services as soon as possible, failure to detect service stops in time, etc., to achieve the effect of reducing the size

Active Publication Date: 2017-05-10
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] It can be seen from the above description that when configuring the services of multiple servers in the system in related technologies, it is necessary to log in to each server for each configuration change, which is a heavy workload.
[0015] Moreover, the configuration file needs to list the correspondence between all servers and the services that should be started, making the configuration file cumbersome and not simplified enough
For example, although the nginx service and the fcgi service appear in pairs, and the log collection service and log analysis service also appear in pairs, these associated or paired services cannot be simplified in the existing configuration files
[0016] In addition, if a service of a certain server in the system stops due to an abnormality, since the administrator has not logged in to the server to check, there is a problem that the service cannot be found in time to stop or the service cannot be restored as soon as possible.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service management method and device based on role configuration
  • Service management method and device based on role configuration
  • Service management method and device based on role configuration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054]In this embodiment, a service management method based on role configuration is provided, figure 1 is a flowchart of a service management method based on role configuration according to an embodiment of the present invention, such as figure 1 As shown, the process includes the following steps:

[0055] Step S101, the server acquires role configuration information from the coordination service cluster, wherein the role configuration information is used to describe one or more roles owned by the server, and each role of the one or more roles corresponds to one or more services;

[0056] Step S102, the server manages the services running on the server according to the services corresponding to one or more roles.

[0057] Through the above steps, since the role of the server is used to replace the service information of the server, and one role corresponds to one or more services, the associated or paired services can be represented by one role. In the case of many correl...

Embodiment 2

[0069] This embodiment also provides a service management device based on role configuration, which is applied to a server and used to implement the above embodiments and preferred implementation modes, and those that have already been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0070] figure 2 is a structural block diagram of a service management device based on role configuration according to an embodiment of the present invention, such as figure 2 As shown, the device includes: an acquisition module 21 and a management module 22, wherein,

[0071] An acquisition module 21, configured to acquire role configuration information from the coordination service cl...

Embodiment 3

[0078] Embodiments of the present invention also provide software, which is used to implement the technical solutions described in the above embodiments and preferred implementation manners.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a service management method and device based on role configuration. The method comprises the steps that a server obtains role configuration information from a coordination service cluster, wherein the role configuration information is used for describing one or more roles owned by the server, wherein each role in the one or more roles corresponds to one or more services; and the server manages the services operated on the server according to the services corresponding to the one or more roles. Through application of the invention, each role corresponds to the one or more services; when the server is configured, only all role information owned by the server needs to be described in a configuration file; the problem that the configuration file is complex and huge due to the fact that the corresponding relations between the server and the services needing to be started on the server are recorded in the configuration file is solved; the content of the configuration file needing to be described is reduced; and the size of the configuration file is reduced.

Description

technical field [0001] The invention relates to the field of distributed server management, in particular to a method and device for service management based on role configuration. Background technique [0002] With the development of the Internet, Internet applications are becoming more and more complex, and the scale of the system is also increasing. A relatively complex system usually provides many services, which requires a flexible and efficient management method to manage the services provided by the server. [0003] In the prior art, it is assumed that there are 4 servers in a system, and the system needs to provide the 4 services shown in Table 1. [0004] Table 1 [0005] service name Service Description nginx-service Receive user requests fcgi-service Handle user requests Log collection service Collect system access logs Log analysis service analysis, statistics log [0006] First, the administrator writes a configurati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24
CPCH04L41/06H04L41/5096
Inventor 任稚张炎泼
Owner GUIZHOU BAISHANCLOUD TECH CO LTD