CN112231168A - Micro server control method, device, equipment and storage medium - Google Patents

Micro server control method, device, equipment and storage medium Download PDF

Info

Publication number
CN112231168A
CN112231168A CN202010920499.3A CN202010920499A CN112231168A CN 112231168 A CN112231168 A CN 112231168A CN 202010920499 A CN202010920499 A CN 202010920499A CN 112231168 A CN112231168 A CN 112231168A
Authority
CN
China
Prior art keywords
information
micro
server
target
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010920499.3A
Other languages
Chinese (zh)
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.)
Ping An Trust Co Ltd
Original Assignee
Ping An Trust 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 Ping An Trust Co Ltd filed Critical Ping An Trust Co Ltd
Priority to CN202010920499.3A priority Critical patent/CN112231168A/en
Publication of CN112231168A publication Critical patent/CN112231168A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The invention relates to the technical field of micro servers, and discloses a micro server control method, a device, equipment and a storage medium, wherein the method comprises the following steps: when a service request of a micro server is received, obtaining corresponding configuration file information according to the service request; adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information; acquiring user access data, and acquiring a corresponding target micro server according to the user access data; dynamically verifying the user access data according to the target configuration information; and when a verification result of successful verification is received, the user access data is sent to the corresponding target micro server, so that the micro server can be flexibly controlled based on the service scene. The present solution also relates to a blockchain technique, wherein the profile information is stored in a blockchain.

Description

Micro server control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of micro servers, in particular to a micro server control method, a micro server control device, micro server control equipment and a storage medium.
Background
The micro-service monitoring management platform is based on basic components such as a SpringBootAccutor and a SpringCloudConsul to expand and provide functions such as service management, service monitoring, problem positioning, configuration management and log management, and can assist in quickly positioning problems or performing service management, control and configuration change and the like when production problems occur.
The SpringBootAdmin provided by the Spring is a visual monitoring component, the running information of each service is collected by depending on the SpringBootAcctuator, the Health information, the memory information, the JVM information, the configuration information, the garbage recovery information and the like of each micro service can be conveniently checked through the SpringBootAccutator, but flexible control can not be performed according to actual service scenes.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for controlling a micro server, and aims to improve the flexibility of the control of the micro server.
In order to achieve the above object, the present invention provides a method for managing and controlling a micro server, comprising the following steps:
when a service request of a micro server is received, obtaining corresponding configuration file information according to the service request;
adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information;
acquiring user access data, and acquiring a corresponding target micro server according to the user access data;
dynamically verifying the user access data according to the target configuration information;
and when a verification result of successful verification is received, sending the user access data to the corresponding target micro server.
Optionally, before the current configuration information of each micro server is adjusted according to the configuration file information to obtain the target configuration information, the method further includes:
acquiring current configuration information of the micro server;
comparing the current configuration information with the configuration file information;
and when the current configuration information is inconsistent with the configuration file information, executing the step of adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information.
Optionally, the profile information includes at least one of traffic configuration information, degradation configuration information, connection configuration information, and timeout configuration information.
Optionally, the obtaining user access data and obtaining a corresponding target micro server according to the user access data includes:
acquiring user access data, and classifying the user access data to obtain a corresponding data type;
obtaining service information according to the data type;
searching corresponding micro server number information in a preset number relation mapping table according to the service information;
and determining a corresponding target micro server according to the micro server number information.
Optionally, before dynamically verifying the user access data according to the target configuration information, the method further includes:
acquiring a configuration file adjusting instruction, and extracting adjusting type information in the configuration file adjusting instruction;
obtaining corresponding adjustment strategy information according to the adjustment type information;
adjusting the target configuration information according to the adjustment strategy information to obtain adjusted target configuration information;
the dynamically verifying the user access data according to the target configuration information includes:
and dynamically verifying the user access data according to the adjusted target configuration information.
Optionally, after the user access data is sent to the corresponding target micro server when the verification result that the verification is successful is received, the method further includes:
acquiring flow interaction data between the target micro server and a request client through a preset link, wherein the flow interaction data comprises response time information of the target micro server and request time consumption information of the request client;
performing flow pressure analysis on the response time information of the target micro server and the request time consumption information of the request client to obtain target flow pressure;
comparing the target flow pressure with a flow pressure threshold value to obtain a target flow pressure grade;
and performing visual display by adopting a corresponding pressure display mode according to the target flow pressure grade.
Optionally, after the user access data is sent to the corresponding target micro server when the verification result that the verification is successful is received, the method further includes:
acquiring server interaction data between the target micro servers and client interaction data between a client and the target micro servers;
obtaining corresponding service interface information and service interaction authority information according to the server interaction data and the client interaction data;
acquiring service interface state information in the service interface information, and generating a global network topology relationship according to the service interface state information;
and acquiring a dynamic control authority instruction, and adjusting the service interaction authority information according to the dynamic control authority instruction.
In addition, to achieve the above object, the present invention further provides a micro server control apparatus, including: a memory, a processor and a micro server management program stored on the memory and executable on the processor, the micro server management program configured to implement the steps of the micro server management method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a micro server management program stored thereon, wherein the micro server management program, when executed by a processor, implements the steps of the micro server management method as described above.
In addition, to achieve the above object, the present invention further provides a micro server management and control apparatus, including:
the acquisition module is used for acquiring corresponding configuration file information according to a service request when the service request of the micro server is received;
the adjusting module is used for adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information;
the acquisition module is also used for acquiring user access data and acquiring a corresponding target micro server according to the user access data;
the verification module is used for dynamically verifying the user access data according to the target configuration information;
and the sending module is used for sending the user access data to the corresponding target micro server when a verification result of successful verification is received.
The method for managing and controlling the micro server obtains corresponding configuration file information according to a service request when the service request of the micro server is received; adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information; acquiring user access data, and acquiring a corresponding target micro server according to the user access data; dynamically verifying the user access data according to the target configuration information; and when a verification result of successful verification is received, the user access data is sent to the corresponding target micro server, so that the configuration information of the micro server can be flexibly adjusted according to the service request, the access data of the user is dynamically verified through the configuration file information, and flexible management and control based on the service scene are realized.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for managing and controlling a micro server according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of an overall process framework of a search phase according to an embodiment of a method for managing and controlling a micro server of the present invention;
FIG. 4 is a flowchart illustrating a micro server management and control method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of a method for managing and controlling a micro server according to the present invention;
fig. 6 is a functional block diagram of a micro server management and control device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), an input unit such as keys, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a micro server hypervisor.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting an external network and performing data communication with other network devices; the user interface 1003 is mainly used for connecting user equipment and performing data communication with the equipment; the device calls the micro server management and control program stored in the memory 1005 through the processor 1001, and executes the implementation method of micro server management and control provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the micro server control method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a micro server management and control method according to a first embodiment of the present invention.
In a first embodiment, the micro server management and control method includes the following steps:
step S10, when receiving the service request of the micro server, obtaining corresponding configuration file information according to the service request.
It should be noted that, the execution main body of this embodiment is a micro service monitoring and management platform, and flexible regulation and control can be performed according to service requirements through the micro service monitoring and management platform, and the monitoring and management platform includes: the configuration center mainly has the functions of acquiring a microservice configuration file in a Network Attached Storage (NAS), and the configuration center comprises web-config, web-activator, web-umpgate, web-umpdac and web-config: monitoring service, responsible for handling operation and maintenance monitoring platform relevant business, web-umpgate: the operation and maintenance monitoring front-end micro-service mainly provides a web client and related access filtering which can be used by a user, and the web-umpdac: and the authority service is mainly responsible for related functions of user login, authority and the like. Wherein the configuration file information includes at least one of traffic configuration information, degradation configuration information, connection configuration information, and timeout configuration information.
In this embodiment, the service request of the micro server may be a service request generated when the micro server is accessed, or may also be a service request generated in another manner, which is not limited in this embodiment, and it should be emphasized that, in order to further ensure the privacy and security of the configuration file information, the configuration file information may also be stored in a node of a block chain.
And step S20, adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information.
In this embodiment, the micro-service monitoring and managing platform is provided with a corresponding visual operation interface, and operation requirements of each service can be performed through the visual operation interface, for example, configuration of the micro-server can be performed through the visual operation interface, where the configuration information includes authority management, and also includes settings of related parameters such as traffic and the like, such as traffic limitation, degradation, connection setting, timeout setting and the like, and also includes other configuration parameter information, which is not limited in this embodiment.
It can be understood that, in order to implement service administration, service administration operation may be performed, wherein the micro-service monitoring management platform further provides configuration management, and a visual interface may be used to perform operations such as query, addition, modification, deletion, and release of application configuration items, and the application is synchronized and validated without being restarted.
In a specific implementation, because the microservice monitoring and managing platform includes the web-activator component, information of each microserver in the current network system can be obtained through the web-activator component monitoring service, and the microserver information is managed in a cluster manner, when a configuration file is obtained and configured through the configuration file, the microserver information can be checked through the microservice monitoring and managing platform, and file configuration is performed by selecting a corresponding microserver, and the microserver information can be managed through names, such as micro 1, micro 2, and the like, and can also be managed through other manners, which is not limited in this embodiment.
As shown in fig. 3, the micro-service monitoring management platform system is schematically shown in the drawing, web-config: the configuration center mainly has the functions of acquiring the micro-service configuration file in the NAS, and the web-activator: and the monitoring service is responsible for processing related services of the operation and maintenance monitoring platform, storing the monitoring data in the database oracle DB for storage, acquiring user data through the web-config, the web-activator, the web-umpgate and the web-umpdac to generate log content, and managing and filtering the generated log content.
And step S30, acquiring user access data, and acquiring a corresponding target micro server according to the user access data.
It should be noted that the access data includes destination address information accessed by the user, and the corresponding service information can be obtained through the destination address information, so as to obtain a corresponding target micro server, for example, the user queries a service in the access database, so as to obtain a corresponding target micro server, that is, a server for managing the database.
And step S40, dynamically verifying the user access data according to the target configuration information.
In this embodiment, since the micro-service monitoring management platform includes the web-umpgate component, the micro-service at the front end is monitored by operation and maintenance of the web-umpgate component, a user can use a web client and relevant access filtering, corresponding micro-service information can be obtained through access data of the user, dynamic filtering is performed on the access data according to the micro-service information, since configuration information of each micro-server is inconsistent, the user can be authenticated through the corresponding configuration information, for example, the user a accesses the micro-server B, an authorized user of the micro-acquisition server B is ID110-120, so as to acquire ID information of the current user, if ID information of the current user is within an ID range of the authorized user, the user a is allowed to access, conversely, if ID information of the current user is not within the ID range of the authorized user, the user a is not allowed to access, therefore, the access data is dynamically verified according to the target configuration information, and dynamic data management and control are achieved.
And step S50, when a verification result of successful verification is received, sending the user access data to the corresponding target micro server.
In a specific implementation, since the micro-service monitoring management platform comprises the web-umpdac component, the web-umpdac component can be used for performing authority service and is responsible for related functions such as user login and authority.
It should be noted that, service monitoring can be performed according to the collected user data, the user data of the client is collected through a gateway arranged between the client and the server, and the access data is analyzed to obtain the health information, the memory information, the JVM information, the configuration information, the garbage collection information, the process information, the call link, the dependency relationship, the flow and the like of each micro-service, problem location can be performed according to the collected user data, specifically, the call link visual interface is used to check all requested parameters, response results, request time consumption, request client addresses, process numbers, thread numbers and the like, the flow monitoring visual interface can be used to see the current application overall flow pressure, so that problem location is performed according to the collected data, service interaction management can be performed according to the collected user data, and the service management interface can be used to issue, distribute, and perform, And the functions of authorization, offline and the like are used for carrying out interaction management and monitoring among services, displaying the global topological relation and dynamically managing and controlling the service interaction authority.
In this embodiment, log management may be further performed on the collected data, specifically, application log query may be performed using a visual interface, a log of a specified time window or level is screened, and the log level output by the application may be dynamically controlled.
According to the scheme, when a service request of the micro server is received, corresponding configuration file information is obtained according to the service request, wherein the configuration file information is stored in a block chain; adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information; acquiring user access data, and acquiring a corresponding target micro server according to the user access data; dynamically verifying the user access data according to the target configuration information; and when a verification result of successful verification is received, the user access data is sent to the corresponding target micro server, so that the configuration information of the micro server can be flexibly adjusted according to the service request, the access data of the user is dynamically verified through the configuration file information, and flexible management and control based on the service scene are realized.
In an embodiment, as shown in fig. 4, a second embodiment of the method for managing and controlling a micro server according to the present invention is provided based on the first embodiment, in this embodiment, before the step S20, the method further includes:
step S201, obtaining the current configuration information of the micro server.
In this embodiment, the current configuration information of the micro server includes at least one of traffic configuration information, degradation configuration information, connection configuration information, and timeout configuration information, and may further include other configuration information, which is not limited in this embodiment.
Step S202, comparing the current configuration information with the configuration file information.
It should be noted that, in order to ensure the configuration efficiency of the micro server, the configuration information of the micro server is not adjusted when the configuration information is obtained, but the current configuration information of the micro server is determined, when the current configuration information of the micro server is consistent with the configuration file information, the micro server does not need to be reconfigured, and when the current configuration information of the micro server is inconsistent with the configuration file information, the configuration information of the micro server is reconfigured, so as to improve the configuration efficiency.
When the current configuration information is not consistent with the profile information, the step S20 is executed.
In one embodiment, the step S30 includes:
the method comprises the steps of obtaining user access data, classifying the user access data to obtain a corresponding data type, obtaining service information according to the data type, searching corresponding micro-server number information in a preset number relation mapping table according to the service information, and determining a corresponding target micro-server according to the micro-server number information.
In this embodiment, the data type may be a data format type, and since the data format corresponding to each different service request is different, the corresponding service type information may be obtained according to the data format, so that the corresponding service data may be sent to the corresponding micro server according to the data type, thereby implementing effective management of the user access data.
It can be understood that, for example, when the data type is health information of the micro server, the corresponding service business information can be obtained according to the health information of the micro server.
It should be noted that the preset number relationship mapping table may be a pre-established mapping table, for example, the micro server code corresponding to the health data service information is ID110, so that the corresponding micro server code information may be determined according to the current service information, and the corresponding target micro server may be determined according to the micro server code information.
According to the scheme provided by the embodiment, the corresponding data type is obtained by acquiring the user access data and classifying the user access data; obtaining service information according to the data type; searching corresponding micro server number information in a preset number relation mapping table according to the service information; and determining the corresponding target micro server according to the micro server number information, thereby determining the corresponding target micro server through the user access data and realizing the accuracy of micro server identification.
In an embodiment, as shown in fig. 5, a third embodiment of the method for managing and controlling a micro server according to the present invention is proposed based on the first embodiment or the second embodiment, and in this embodiment, based on the first embodiment, before the step S40, the method further includes:
step S401, obtaining a configuration file adjusting instruction, and extracting adjusting type information in the configuration file adjusting instruction.
It should be noted that the configuration file adjustment instruction includes operations such as query, addition, modification, deletion, and issue of configuration items, and may further include other operation information, which is not limited in this embodiment, because the configuration file adjustment instruction in this embodiment may be of multiple types, such as query, addition, modification, deletion, and issue of a configuration information adjustment type, and flow limitation, degradation, connection setting, timeout setting, and the like in a function adjustment type, a corresponding adjustment type information may be obtained through the configuration file adjustment instruction, for example, through a query instruction, a current configuration file adjustment instruction may be obtained as a type for adjusting configuration information, thereby implementing effective classification of the configuration file adjustment instruction.
And step S402, obtaining corresponding adjustment strategy information according to the adjustment type information.
In this embodiment, corresponding adjustment policy information is set according to different adjustment types, so that the target configuration information can be adjusted according to the adjustment policy information, for example, when the adjustment type is a configuration information adjustment type, that is, a configuration file addition instruction, new configuration information can be added to the target configuration information according to a configuration file addition instruction by using a new control policy, so that flexible adjustment of the target configuration information is achieved.
Step S403, adjusting the target configuration information according to the adjustment policy information, to obtain adjusted target configuration information.
In a specific implementation, when the adjustment type is a configuration information adjustment type, that is, a configuration file adding instruction, adding new configuration information to the target configuration information, and adding configuration content information in the target configuration information to obtain adjusted target configuration information.
The step S40 includes:
and dynamically verifying the user access data according to the adjusted target configuration information.
In an embodiment, after step S50, the method further includes:
and acquiring flow interaction data between the target micro server and the request client through a preset link, wherein the flow interaction data comprises response time information of the target micro server and request time consumption information of the request client.
It should be noted that, in this embodiment, the target micro server and the request client are managed through a link, and as shown in fig. 3, the Kafka cluster and the operation and maintenance monitoring micro server are connected through a link, so that link data between the Kafka cluster and the operation and maintenance monitoring micro server can be obtained, and log analysis is performed through a logstack, an application log, and a platform for transmission, processing, management, and search of events, so that the data analysis capability of the micro server is improved.
In the specific implementation, because a preset link is established between the target micro server and the request client, the network processing capacity of each micro server is obtained through the response time information of the target micro server and the request time consumption information of the request client, and the fine management of the micro servers is realized.
Performing flow pressure analysis on the response time information of the target micro server and the request time consumption information of the request client to obtain target flow pressure; comparing the target flow pressure with a flow pressure threshold value to obtain a target flow pressure grade; and performing visual display by adopting a corresponding pressure display mode according to the target flow pressure grade.
In this embodiment, the pressure display mode may be a preset color, for example, when the flow processing pressure is high, a dark red visual display appears, so that the micro service with high pressure can be more intuitively positioned, a call link visual interface can be used to view parameters, response results and time consumption of requests of all requests, and problem positioning is performed according to the collected data.
In an embodiment, after step S50, the method further includes:
acquiring server interaction data between the target micro servers and client interaction data between a client and the target micro servers; and obtaining corresponding service interface information and service interaction authority information according to the server interaction data and the client interaction data. Acquiring service interface state information in the service interface information, and generating a global network topology relationship according to the service interface state information; and acquiring a dynamic control authority instruction, and adjusting the service interaction authority information according to the dynamic control authority instruction.
In this embodiment, service interaction management may also be performed according to the collected user data, and a service management interface may be used to perform functions such as service interface publishing, authorization, offline, and the like to perform interaction between services for management and monitoring, and to display a global topology relationship and dynamically manage and control service interaction permissions.
According to the scheme provided by the embodiment, the target flow pressure of each micro server, the server interaction data between the target micro servers and the client interaction data between the client and the target micro servers are obtained, so that the problems are effectively positioned, the global topological relation is displayed, and the flexibility of micro server management and control is improved.
The invention further provides a micro server control device.
Referring to fig. 6, fig. 6 is a functional module schematic diagram of a micro server management and control device according to a first embodiment of the present invention.
In a first embodiment of the present invention, the micro server management and control apparatus includes:
the acquisition module 10 is configured to, when receiving a service request of the micro server, obtain corresponding configuration file information according to the service request.
It should be noted that, the micro-service monitoring management platform can flexibly regulate and control according to the service requirement, and the monitoring management platform services include: the configuration center mainly has the functions of acquiring a microservice configuration file in a Network Attached Storage (NAS), and the configuration center comprises web-config, web-activator, web-umpgate, web-umpdac and web-config: monitoring service, responsible for handling operation and maintenance monitoring platform relevant business, web-umpgate: the operation and maintenance monitoring front-end micro-service mainly provides a web client and related access filtering which can be used by a user, and the web-umpdac: and the authority service is mainly responsible for related functions of user login, authority and the like. Wherein the configuration file information includes at least one of traffic configuration information, degradation configuration information, connection configuration information, and timeout configuration information.
In this embodiment, the service request of the micro server may be a service request generated when the micro server is accessed, or may also be a service request generated in another manner, which is not limited in this embodiment, and it should be emphasized that, in order to further ensure the privacy and security of the configuration file information, the configuration file information may also be stored in a node of a block chain.
And the adjusting module 20 is configured to adjust the current configuration information of each micro server according to the configuration file information to obtain target configuration information.
In this embodiment, the micro-service monitoring and managing platform is provided with a corresponding visual operation interface, and operation requirements of each service can be performed through the visual operation interface, for example, configuration of the micro-server can be performed through the visual operation interface, where the configuration information includes authority management, and also includes settings of related parameters such as traffic and the like, such as traffic limitation, degradation, connection setting, timeout setting and the like, and also includes other configuration parameter information, which is not limited in this embodiment.
It can be understood that, in order to implement service administration, service administration operation may be performed, wherein the micro-service monitoring management platform further provides configuration management, and a visual interface may be used to perform operations such as query, addition, modification, deletion, and release of application configuration items, and the application is synchronized and validated without being restarted.
In a specific implementation, because the microservice monitoring and managing platform includes the web-activator component, information of each microserver in the current network system can be obtained through the web-activator component monitoring service, and the microserver information is managed in a cluster manner, when a configuration file is obtained and configured through the configuration file, the microserver information can be checked through the microservice monitoring and managing platform, and file configuration is performed by selecting a corresponding microserver, and the microserver information can be managed through names, such as micro 1, micro 2, and the like, and can also be managed through other manners, which is not limited in this embodiment.
As shown in fig. 3, the micro-service monitoring management platform system is schematically shown in the drawing, web-config: the configuration center mainly has the functions of acquiring the micro-service configuration file in the NAS, and the web-activator: and the monitoring service is responsible for processing related services of the operation and maintenance monitoring platform, storing the monitoring data in the database oracle DB for storage, acquiring user data through the web-config, the web-activator, the web-umpgate and the web-umpdac to generate log content, and managing and filtering the generated log content.
The obtaining module 10 is further configured to obtain user access data, and obtain a corresponding target micro server according to the user access data.
It should be noted that the access data includes destination address information accessed by the user, and the corresponding service information can be obtained through the destination address information, so as to obtain a corresponding target micro server, for example, the user queries a service in the access database, so as to obtain a corresponding target micro server, that is, a server for managing the database.
And the verification module 30 is configured to perform dynamic verification on the user access data according to the target configuration information.
In this embodiment, since the micro-service monitoring management platform includes the web-umpgate component, the micro-service at the front end is monitored by operation and maintenance of the web-umpgate component, a user can use a web client and relevant access filtering, corresponding micro-service information can be obtained through access data of the user, dynamic filtering is performed on the access data according to the micro-service information, since configuration information of each micro-server is inconsistent, the user can be authenticated through the corresponding configuration information, for example, the user a accesses the micro-server B, an authorized user of the micro-acquisition server B is ID110-120, so as to acquire ID information of the current user, if ID information of the current user is within an ID range of the authorized user, the user a is allowed to access, conversely, if ID information of the current user is not within the ID range of the authorized user, the user a is not allowed to access, therefore, the access data is dynamically verified according to the target configuration information, and dynamic data management and control are achieved.
And the sending module 40 is configured to send the user access data to the corresponding target micro server when receiving a verification result that the verification is successful.
In a specific implementation, since the micro-service monitoring management platform comprises the web-umpdac component, the web-umpdac component can be used for performing authority service and is responsible for related functions such as user login and authority.
It should be noted that, service monitoring can be performed according to the collected user data, the user data of the client is collected through a gateway arranged between the client and the server, and the access data is analyzed to obtain the health information, the memory information, the JVM information, the configuration information, the garbage collection information, the process information, the call link, the dependency relationship, the flow and the like of each micro-service, problem location can be performed according to the collected user data, specifically, the call link visual interface is used to check all requested parameters, response results, request time consumption, request client addresses, process numbers, thread numbers and the like, the flow monitoring visual interface can be used to see the current application overall flow pressure, so that problem location is performed according to the collected data, service interaction management can be performed according to the collected user data, and the service management interface can be used to issue, distribute, and perform, And the functions of authorization, offline and the like are used for carrying out interaction management and monitoring among services, displaying the global topological relation and dynamically managing and controlling the service interaction authority.
In this embodiment, log management may be further performed on the collected data, specifically, application log query may be performed using a visual interface, a log of a specified time window or level is screened, and the log level output by the application may be dynamically controlled.
According to the scheme, when a service request of the micro server is received, corresponding configuration file information is obtained according to the service request, wherein the configuration file information is stored in a block chain; adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information; acquiring user access data, and acquiring a corresponding target micro server according to the user access data; dynamically verifying the user access data according to the target configuration information; and when a verification result of successful verification is received, the user access data is sent to the corresponding target micro server, so that the configuration information of the micro server can be flexibly adjusted according to the service request, the access data of the user is dynamically verified through the configuration file information, and flexible management and control based on the service scene are realized.
In an embodiment, the adjusting module 20 is further configured to obtain current configuration information of the micro server;
comparing the current configuration information with the configuration file information;
and when the current configuration information is inconsistent with the configuration file information, executing the step of adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information.
In an embodiment, the obtaining module 10 is further configured to obtain user access data, and classify the user access data to obtain a corresponding data type;
obtaining service information according to the data type;
searching corresponding micro server number information in a preset number relation mapping table according to the service information;
and determining a corresponding target micro server according to the micro server number information.
In an embodiment, the verification module 30 is further configured to obtain a configuration file adjustment instruction, and extract adjustment type information in the configuration file adjustment instruction;
obtaining corresponding adjustment strategy information according to the adjustment type information;
adjusting the target configuration information according to the adjustment strategy information to obtain adjusted target configuration information;
and dynamically verifying the user access data according to the adjusted target configuration information.
In an embodiment, the micro server management and control apparatus further includes: a display module;
the display module is used for acquiring flow interaction data between the target micro server and the request client through a preset link, wherein the flow interaction data comprises response time information of the target micro server and request time consumption information of the request client;
performing flow pressure analysis on the response time information of the target micro server and the request time consumption information of the request client to obtain target flow pressure;
comparing the target flow pressure with a flow pressure threshold value to obtain a target flow pressure grade;
and performing visual display by adopting a corresponding pressure display mode according to the target flow pressure grade.
In an embodiment, the adjusting module 20 is further configured to obtain server interaction data between the target micro servers, and obtain client interaction data between a client and the target micro servers;
obtaining corresponding service interface information and service interaction authority information according to the server interaction data and the client interaction data;
acquiring service interface state information in the service interface information, and generating a global network topology relationship according to the service interface state information;
and acquiring a dynamic control authority instruction, and adjusting the service interaction authority information according to the dynamic control authority instruction.
The micro server management and control device of the present invention employs all the technical solutions of all the embodiments, so that all the advantages brought by the technical solutions of the embodiments are at least provided, and are not described in detail herein.
In addition, to achieve the above object, the present invention further provides a micro server control apparatus, including: a memory, a processor and a micro server management program stored on the memory and executable on the processor, the micro server management program configured to implement the steps of the micro server management method as described above.
In addition, an embodiment of the present invention further provides a storage medium, where a micro server management and control program is stored on the storage medium, and the micro server management and control program is executed by a processor to perform the steps of the micro server management and control method described above.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling an intelligent terminal (which may be a mobile phone, a computer, a terminal, an air conditioner, or a network terminal) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A micro server control method is characterized by comprising the following steps:
when a service request of a micro server is received, obtaining corresponding configuration file information according to the service request;
adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information;
acquiring user access data, and acquiring a corresponding target micro server according to the user access data;
dynamically verifying the user access data according to the target configuration information;
and when a verification result of successful verification is received, sending the user access data to the corresponding target micro server.
2. The micro-server management and control method according to claim 1, wherein before the configuration information of each current micro-server is adjusted according to the configuration file information to obtain target configuration information, the method further comprises:
acquiring current configuration information of the micro server;
comparing the current configuration information with the configuration file information;
and when the current configuration information is inconsistent with the configuration file information, executing the step of adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information.
3. The micro-server management and control method according to claim 1, wherein the profile information includes at least one of traffic configuration information, degradation configuration information, connection configuration information, and timeout configuration information.
4. The micro-server management and control method according to claim 1, wherein the obtaining user access data and obtaining a corresponding target micro-server according to the user access data includes:
acquiring user access data, and classifying the user access data to obtain a corresponding data type;
obtaining service information according to the data type;
searching corresponding micro server number information in a preset number relation mapping table according to the service information;
and determining a corresponding target micro server according to the micro server number information.
5. The micro-server management and control method according to any one of claims 1 to 4, wherein before the dynamic verification of the user access data according to the target configuration information, the method further comprises:
acquiring a configuration file adjusting instruction, and extracting adjusting type information in the configuration file adjusting instruction;
obtaining corresponding adjustment strategy information according to the adjustment type information;
adjusting the target configuration information according to the adjustment strategy information to obtain adjusted target configuration information;
the dynamically verifying the user access data according to the target configuration information includes:
and dynamically verifying the user access data according to the adjusted target configuration information.
6. The micro-server management and control method according to any one of claims 1 to 4, wherein after sending the user access data to the corresponding target micro-server upon receiving a verification result that the verification is successful, the method further includes:
acquiring flow interaction data between the target micro server and a request client through a preset link, wherein the flow interaction data comprises response time information of the target micro server and request time consumption information of the request client;
performing flow pressure analysis on the response time information of the target micro server and the request time consumption information of the request client to obtain target flow pressure;
comparing the target flow pressure with a flow pressure threshold value to obtain a target flow pressure grade;
and performing visual display by adopting a corresponding pressure display mode according to the target flow pressure grade.
7. The micro-server management and control method according to any one of claims 1 to 4, wherein after sending the user access data to the corresponding target micro-server upon receiving a verification result that the verification is successful, the method further includes:
acquiring server interaction data between the target micro servers and client interaction data between a client and the target micro servers;
obtaining corresponding service interface information and service interaction authority information according to the server interaction data and the client interaction data;
acquiring service interface state information in the service interface information, and generating a global network topology relationship according to the service interface state information;
and acquiring a dynamic control authority instruction, and adjusting the service interaction authority information according to the dynamic control authority instruction.
8. A micro server management and control device, characterized by comprising: memory, a processor and a micro-server management program stored on the memory and executable on the processor, the micro-server management program being configured to implement the steps of the micro-server management method according to any one of claims 1 to 7.
9. A storage medium having stored thereon a micro server management program which, when executed by a processor, implements the steps of the micro server management method according to any one of claims 1 to 7.
10. A micro server management and control device, comprising:
the acquisition module is used for acquiring corresponding configuration file information according to a service request when the service request of the micro server is received;
the adjusting module is used for adjusting the current configuration information of each micro server according to the configuration file information to obtain target configuration information;
the acquisition module is also used for acquiring user access data and acquiring a corresponding target micro server according to the user access data;
the verification module is used for dynamically verifying the user access data according to the target configuration information;
and the sending module is used for sending the user access data to the corresponding target micro server when a verification result of successful verification is received.
CN202010920499.3A 2020-09-03 2020-09-03 Micro server control method, device, equipment and storage medium Pending CN112231168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010920499.3A CN112231168A (en) 2020-09-03 2020-09-03 Micro server control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010920499.3A CN112231168A (en) 2020-09-03 2020-09-03 Micro server control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112231168A true CN112231168A (en) 2021-01-15

Family

ID=74116045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010920499.3A Pending CN112231168A (en) 2020-09-03 2020-09-03 Micro server control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112231168A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860235A (en) * 2021-02-04 2021-05-28 北京百度网讯科技有限公司 Method, device, equipment and storage medium for processing text
CN112925584A (en) * 2021-02-26 2021-06-08 北京百度网讯科技有限公司 Scene-based file configuration method, device, storage medium, and program product
CN113032419A (en) * 2021-04-21 2021-06-25 上海微盟企业发展有限公司 Multi-source data aggregation search method, device, equipment and storage medium
CN113312242A (en) * 2021-06-29 2021-08-27 中国农业银行股份有限公司 Interface information management method, device, equipment and storage medium
CN113672361A (en) * 2021-07-13 2021-11-19 上海携宁计算机科技股份有限公司 Distributed data processing system, method, server and readable storage medium
CN114323023A (en) * 2021-12-29 2022-04-12 国网陕西省电力公司电力科学研究院 Distributed pulse positioning monitoring method and system
CN114489856A (en) * 2022-01-28 2022-05-13 中国农业银行股份有限公司 Application program configuration file acquisition method, device and equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860235A (en) * 2021-02-04 2021-05-28 北京百度网讯科技有限公司 Method, device, equipment and storage medium for processing text
CN112860235B (en) * 2021-02-04 2023-09-05 北京百度网讯科技有限公司 Method, device, equipment and storage medium for processing text
CN112925584A (en) * 2021-02-26 2021-06-08 北京百度网讯科技有限公司 Scene-based file configuration method, device, storage medium, and program product
CN113032419A (en) * 2021-04-21 2021-06-25 上海微盟企业发展有限公司 Multi-source data aggregation search method, device, equipment and storage medium
CN113032419B (en) * 2021-04-21 2022-08-30 上海微盟企业发展有限公司 Multi-source data aggregation search method, device, equipment and storage medium
CN113312242A (en) * 2021-06-29 2021-08-27 中国农业银行股份有限公司 Interface information management method, device, equipment and storage medium
CN113672361A (en) * 2021-07-13 2021-11-19 上海携宁计算机科技股份有限公司 Distributed data processing system, method, server and readable storage medium
CN113672361B (en) * 2021-07-13 2023-06-16 上海携宁计算机科技股份有限公司 Distributed data processing system, method, server, and readable storage medium
CN114323023A (en) * 2021-12-29 2022-04-12 国网陕西省电力公司电力科学研究院 Distributed pulse positioning monitoring method and system
CN114489856A (en) * 2022-01-28 2022-05-13 中国农业银行股份有限公司 Application program configuration file acquisition method, device and equipment

Similar Documents

Publication Publication Date Title
CN112231168A (en) Micro server control method, device, equipment and storage medium
CN112615849B (en) Micro-service access method, device, equipment and storage medium
CN110287709B (en) User operation authority control method, device, equipment and medium
KR102095334B1 (en) Log information generating device and recording medium and log information extraction device and recording medium
CN112104617B (en) Rights management method, device, equipment and storage medium for micro-service
US11696110B2 (en) Distributed, crowdsourced internet of things (IoT) discovery and identification using Block Chain
US20210120100A1 (en) Managing client computing systems using distilled data streams
CN111431740A (en) Data transmission method, device, equipment and computer readable storage medium
CN103152352A (en) Perfect information security and forensics monitoring method and system based on cloud computing environment
US11250147B2 (en) Hybrid approach to data governance
CN106134141A (en) A kind of method and device updating network service describer NSD
CN110990335B (en) Log archiving method, device, equipment and computer readable storage medium
CN112364110A (en) Metadata management method, device and equipment and computer storage medium
CN110765484A (en) Credit investigation data processing method and electronic equipment
WO2021013056A1 (en) Microservice-based data processing method and apparatus, and device and readable storage medium
WO2021169275A1 (en) Sdn network device access method and apparatus, computer device, and storage medium
JP2017220112A (en) Data management system, control method and program
US8073938B2 (en) Information processing apparatus and method of operating the same
CN111371615B (en) Online server, method and system for updating operation and maintenance tool and readable storage medium
US20160269446A1 (en) Template representation of security resources
CN108494749B (en) Method, device and equipment for disabling IP address and computer readable storage medium
CN111935195B (en) Distributed system management method, device, storage medium and distributed management system
CN114138483A (en) Virtualized resource management method, device, server, system and medium
CN113177179A (en) Data request connection management method, device, equipment and storage medium
CN112286911B (en) Database management method and device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination