CN107426274B - Method and system for service application and monitoring, analyzing and scheduling based on time sequence - Google Patents

Method and system for service application and monitoring, analyzing and scheduling based on time sequence Download PDF

Info

Publication number
CN107426274B
CN107426274B CN201710221376.9A CN201710221376A CN107426274B CN 107426274 B CN107426274 B CN 107426274B CN 201710221376 A CN201710221376 A CN 201710221376A CN 107426274 B CN107426274 B CN 107426274B
Authority
CN
China
Prior art keywords
target
container
time
gateway
monitoring
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
CN201710221376.9A
Other languages
Chinese (zh)
Other versions
CN107426274A (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.)
Yunan Eaglet Technology Co ltd
Original Assignee
Yunan Eaglet 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 Yunan Eaglet Technology Co ltd filed Critical Yunan Eaglet Technology Co ltd
Priority to CN201710221376.9A priority Critical patent/CN107426274B/en
Publication of CN107426274A publication Critical patent/CN107426274A/en
Application granted granted Critical
Publication of CN107426274B publication Critical patent/CN107426274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the technical field of internet, and provides a method and a system for service application and monitoring, analyzing and scheduling based on time sequence. The method comprises the steps of receiving an application creation instruction, distributing a corresponding network address for each container in a container cluster, obtaining load information of each gateway, determining a target gateway, mapping each container in the container cluster to the target gateway, calling a target application corresponding to a service request according to the service request, analyzing a domain name in the service request, scheduling the target container corresponding to the target network address, recording starting time of the target container, updating the access times of the target container in real time, and releasing resources occupied by the target container or the application according to the starting time, a time threshold and the access times. The method and the system for the service application, the monitoring, the analysis and the scheduling based on the time sequence can fully utilize the hardware resources of the prior information system, distribute the concurrent requests and reduce the time delay and the equipment cost.

Description

Method and system for service application and monitoring, analyzing and scheduling based on time sequence
Technical Field
The invention relates to the technical field of internet, in particular to a method and a system for service application, monitoring, analysis and scheduling based on time sequence.
Background
With the rapid development of the internet technology, the service requirements are rapidly on line, the occupation of information resources is in a straight-line rising trend, when the access volume of a certain service system is high, the existing hardware equipment cannot meet the requirements of users, and the user experience is poor. In order to meet the actual requirements of users, hardware devices are additionally arranged, and more hardware resources are occupied, so that application calling is realized, and the service requirements are met.
For example, the access peaks of the enterprise to the external business system are concentrated in certain non-working periods, and the access peaks of the internal operation system of the enterprise are concentrated in certain working periods. For the above two types of systems, there is a difference in access peaks. According to the traditional mode, two sets of different systems need to be built for an information system to support different business systems, and the configuration of resources is necessarily larger than the resources required by the maximum access of a single system, and a margin is reserved. For example, the access peak value of the A system is centralized at 12 points-14 points and 19 points-22 points, the resource required by the peak value is 4 CPUs and 32G memory, and the resource utilization rate is kept at 2 CPUs and 16G memory at ordinary times. The access peak values of the system B are concentrated at 9-11 points and 14-17 points, the resources required by the peak values are 4 CPUs and 32G memories, and the resource utilization rate is kept at 1CPU and 8G memories at ordinary times.
Conventionally, the information system must configure 6CPU × 2 and 48G × 2 memories, and the total resources are 12CPU and 96G memories, which results in high cost of hardware devices. Moreover, when the access amount of a certain service system is low, the hardware equipment is in an idle state, and the resource waste is large.
In the prior art, although some hardware devices can distribute request instructions sent by users according to the load conditions of gateways, the load monitoring of each gateway is poor, the response time of the obtained request distribution result is long, and the time delay is long.
How to fully utilize hardware resources of the existing information system, allocate concurrent requests, and reduce time delay and equipment cost is a problem that needs to be solved urgently by technical personnel in the field.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method and a system for service application, monitoring, analysis and scheduling based on time sequence, which can make full use of the hardware resources of the existing information system, allocate concurrent requests and reduce time delay and equipment cost.
In a first aspect, the present invention provides a method for service application and monitoring, analyzing and scheduling based on a time sequence, the method comprising:
acquiring a service request and receiving time of the service request;
and distributing the service request to the corresponding gateway according to the receiving time and the load capacity of different gateways.
The invention provides another time sequence-based service application and monitoring analysis scheduling method, which comprises the following steps:
a container cluster creating step: receiving a creation instruction of an application;
according to the creation request, a container cluster is established, and a corresponding network address is distributed to each container in the container cluster;
and a state monitoring step: monitoring the load state of each gateway and acquiring the load information of each gateway;
determining a target gateway according to the load information of each gateway;
mapping each container in the container cluster to a target gateway;
and a service request processing step: receiving a service request;
calling a target application corresponding to the service request according to the service request;
resolving the domain name in the service request to obtain a target network address;
according to the target network address, scheduling a target container corresponding to the target network address, and recording the starting time of the target container;
updating the access times of the target container in real time;
resource releasing step: and releasing the resources occupied by the target container or the target application according to the starting time, the time threshold and the access times.
Further, after allocating a corresponding network address to each container in the container cluster, before scheduling a target container corresponding to the target network address according to the target network address, the method further includes: and establishing communication transmission channels among the containers.
Based on the foregoing method embodiment of any time sequence-based service application and monitoring, analyzing and scheduling, further releasing resources occupied by the container and the application according to the start time, the time threshold, and the number of accesses, specifically including:
stopping running the target application according to the starting time, the first time threshold and the access times;
or deleting the target application according to the starting time, the second time threshold and the access times;
or deleting the target container according to the starting time, the third time threshold and the access times, wherein the time threshold comprises the first time threshold, the second time threshold and the third time threshold.
Based on any of the above embodiments of the method for applying, monitoring, analyzing, and scheduling a service based on a time sequence, further, after obtaining load information of each gateway, the method further includes:
and integrating the load information of each gateway to obtain the time sequence resource utilization rate and the characteristic value.
Based on any of the above embodiments of the method for applying, monitoring, analyzing, and scheduling a service based on a time sequence, further monitoring a load state of each gateway, and acquiring load information of each gateway, specifically including: and monitoring the load state of each gateway, and acquiring the load information of each gateway in a polling mode.
In a second aspect, the present invention provides a system for service application and monitoring, analyzing and scheduling based on time sequence, the system includes a container cluster creation module, a state monitoring module, a service request processing module and a resource release module, the container cluster creation module is configured to receive a creation instruction of an application; according to the creation request, a container cluster is established, and a corresponding network address is distributed to each container in the container cluster; the state monitoring module is used for monitoring the load state of each gateway and acquiring the load information of each gateway; determining a target gateway according to the load information of each gateway; mapping each container in the container cluster to a target gateway; the service request processing module is used for receiving a service request; calling a target application corresponding to the service request according to the service request; resolving the domain name in the service request to obtain a target network address; according to the target network address, scheduling a target container corresponding to the target network address, and recording the starting time of the target container; updating the access times of the target container in real time; and the resource releasing module is used for releasing the resources occupied by the target container or the target application according to the starting time, the time threshold and the access times.
Further, the system also comprises a communication transmission channel establishing module: for establishing communication transmission channels between the containers.
Further, the resource release module comprises a target application stop submodule, a target application deletion submodule and a target container deletion submodule, wherein the target application stop submodule is used for stopping running the target application according to the starting time, the first time threshold and the access times; the target application deleting submodule is used for deleting the target application according to the starting time, the second time threshold and the access times; and the target container deleting submodule is used for deleting the target container according to the starting time, the third time threshold and the access times, wherein the time threshold comprises a first time threshold, a second time threshold and a third time threshold.
Based on any of the above embodiments of the system for applying, monitoring, analyzing and scheduling a service based on a time sequence, the system further includes a load information integration module: and the method is used for integrating the load information of each gateway and acquiring the utilization rate and the characteristic value of the time sequence resources.
According to the technical scheme, the method and the system for service application and monitoring, analyzing and scheduling based on the time sequence determine the target gateway with the minimum load capacity according to the specific service condition of the service system resource by monitoring the load state of the gateway in real time, call the target application according to the actual service request, analyze the corresponding network address, start the target container, meet the high concurrency request, improve the resource utilization efficiency of the information system, avoid the information system paralysis phenomenon and reduce the time delay. And the high-efficiency utilization of the information system resources by different service systems is realized. Meanwhile, the method can also determine whether to release the resources occupied by the target container or the target application according to the access times within the preset time, so that the resources can be released quickly after the resource demand is reduced, the dynamic allocation of the information system resources is realized, the normal access of a service system is ensured, and one third of the investment cost of enterprise information resource hardware can be reduced.
Therefore, the method and the system for service application and monitoring, analyzing and scheduling based on the time sequence can change a hardware stacking mode, make full use of hardware resources of the existing information system, allocate concurrent requests, reduce time delay and equipment cost, and improve customer experience.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
Fig. 1 is a flowchart illustrating a method for scheduling a service application and monitoring analysis based on a time sequence according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram illustrating a system for applying, monitoring, analyzing and scheduling a service based on a time sequence according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
In a first aspect, a method for service application and monitoring, analyzing and scheduling based on a time sequence provided in an embodiment of the present invention includes:
and acquiring the service request and the receiving time of the service request.
And distributing the service request to the corresponding gateway according to the receiving time and the load capacity of different gateways.
Another method for service application and monitoring, analyzing and scheduling based on time sequence provided by the embodiment of the present invention is combined with fig. 1, and the method includes:
container cluster creating step S1: a creation instruction of an application is received.
According to the creation request, a container cluster is established, each container in the container cluster is allocated with a corresponding network address, each container can be a docker container, and after the container is established, each container is in an unused state. Generally, in a container cluster, each container carries one application service, and application services carried by different containers may be the same or different.
State monitoring step S2: and monitoring the load state of each gateway and acquiring the load information of each gateway. For example, information resource monitoring software is used to monitor the load status of each gateway in real time, and also to obtain the status information of the server, such as the basic information and operating parameters of the CPU and the memory. In the actual application process, an agent can be deployed at the end of the target server to complete the collection of server information. And deploying a server at the server end, monitoring the service state of the remote server independently, and in cooperation with the agent, polling the agent to actively receive monitoring data, and meanwhile, passively receiving data sent by the agent.
And determining a target gateway according to the load information of each gateway. Here, the gateway with the smallest load amount is set as the target gateway.
Each container in the container cluster is mapped to a target gateway.
Service request processing step S3: a service request is received, which may be a service request from a different service system.
And calling the target application corresponding to the service request according to the service request. For example, calling the Rancher API starts the target application.
And resolving the domain name in the service request to acquire a target network address, namely an IP address.
And scheduling a target container corresponding to the target network address according to the target network address, and recording the starting time of the target container, wherein Redis records the starting time of the target container.
And updating the access times of the target container in real time.
Resource release step S4: and releasing the resources occupied by the target container or the target application according to the starting time, the time threshold and the access times.
In the practical application process, the access peak values of the system A are concentrated at 12-14 points and 19-22 points, the resources required by the peak values are 4 CPUs and 32G memories, and the resource utilization rate is kept at 2 CPUs and 16G memories at ordinary times. The access peak values of the system B are concentrated at 9-11 points and 14-17 points, the resources required by the peak values are 4 CPUs and 32G memories, and the resource utilization rate is kept at 1CPU and 8G memories at ordinary times. According to the traditional mode, the information system must configure 6CPU × 2, 48G × 2 memories, and the total resources are 12CPU, 96G memories, but by adopting the method of the time sequence-based service application and monitoring analysis scheduling of the embodiment, only 8CPU, 64G memories need to be purchased, and through resource configuration, the resource utilization rate of each system is ensured, and a margin is left. Therefore, the system A and the system B can make full use of the existing information resources, improve the utilization rate of the resources and reduce the investment cost of enterprises.
According to the technical scheme, the method for service application and monitoring, analyzing and scheduling based on the time sequence determines the target gateway with the minimum load capacity according to the specific service condition of the service system resource by monitoring the load state of the gateway in real time, calls the target application according to the actual service request, analyzes the corresponding network address, starts the target container, meets the high concurrency request, improves the resource utilization efficiency of the information system, avoids the information system paralysis phenomenon and reduces the time delay. And the high-efficiency utilization of the information system resources by different service systems is realized. Meanwhile, the method can also determine whether to release the resources occupied by the target container or the target application according to the access times within the preset time, so that the resources can be released quickly after the resource demand is reduced, the dynamic allocation of the information system resources is realized, the normal access of a service system is ensured, and one third of the investment cost of enterprise information resource hardware can be reduced.
Therefore, the method for service application and monitoring, analyzing and scheduling based on the time sequence can change a hardware stacking mode, make full use of hardware resources of the existing information system, allocate concurrent requests, reduce time delay and equipment cost, and improve customer experience.
In order to further ensure that the target gateway can rapidly and accurately schedule the target container, the method adapts to the dynamically changed container cluster. When each container in the container cluster is mapped to a target gateway, the specific implementation process of the method is as follows:
the target gateway receives communication connection initiated by the newly added container, receives a registration request sent by the newly added container through the communication connection, wherein the registration request carries an application identification identifier of an application provided by the newly added container, creates a node corresponding to the application provided by the newly added container, and mounts the newly created node into a queue corresponding to the application identification identifier of the application provided by the newly added container.
When a service request is obtained, a target application is called, and a target container is started, the specific implementation process of the method is as follows:
and calling the target application corresponding to the service request according to the service request. For example, calling the Rancher API starts the target application. Analyzing the service type of the service request, determining a target service type, and determining a target application corresponding to the target service type according to the analyzed target service type. Analyzing the domain name in the service request, acquiring a queue corresponding to the target service type, sequencing the nodes in the same queue according to the load size, taking the node with the minimum load in the determined queue as a target network address, and scheduling a target container corresponding to the target network address according to the target network address. In the process, a balancing configuration file is not required to be configured in advance, and load balancing is automatically realized, so that a high-concurrency service request is adapted to a back-end service container cluster which is dynamically changed, and a target container is rapidly and accurately scheduled.
In order to further improve the stability of the method for applying, monitoring, analyzing and scheduling a time-series-based service in this embodiment, specifically, after allocating a corresponding network address to each container in a container cluster, before scheduling a target container corresponding to a target network address according to the target network address, the method further includes: and establishing communication transmission channels among the containers. The method realizes the mutual communication among the containers through GRE TUNNLE or VXLAN of OVS among the containers, improves the safety and the accuracy of information transmission among different containers, responds to different types of service requests quickly and accurately and is beneficial to comprehensively collecting and utilizing information resources.
Specifically, in the aspect of resource utilization of the information system, the method for applying, monitoring, analyzing and scheduling the service based on the time sequence can quickly release system resources, and improve the resource utilization rate of the information system, and the specific implementation manner is as follows: according to the starting time, the first time threshold and the access times, stopping running the target application, for example, calling a Rancher API to stop the target application; or deleting the target application according to the starting time, the second time threshold and the access times; or deleting the target container according to the starting time, the third time threshold and the access times, wherein the time threshold comprises the first time threshold, the second time threshold and the third time threshold. In the actual application process, when the starting time reaches a first time threshold value, the target container is still not accessed, the Rancher API is called to stop the target application, and when the starting time reaches a second time threshold value, the second time threshold value can be the maximum retention time, the target application is directly deleted. According to the last access time recorded in Redis, ZABBIX monitors the resource condition of each physical machine, when the index of a certain physical resource reaches a preset threshold value, an event is triggered to call RancherAPI, the containers are calculated to be not accessed for a long time, and when the index reaches a third time threshold value, the containers are stopped and recovered, and system resources are released. The method can control the state of the target application or the target container according to the access times of the actual target container or the calling condition of the target application, dynamically adjust the system resources of the information system and improve the utilization rate of the service system resources.
Meanwhile, the method for applying, monitoring, analyzing and scheduling the service based on the time sequence can also increase the number of containers according to the access amount, because the utilization rate of a CPU and the use frequency of a memory are increased when the access times are increased, the access amount can be monitored according to the running state of the containers, and the specific implementation process is as follows:
and creating a container cluster, and setting the threshold values of elastic expansion, namely the CPU utilization rate and the maximum memory use frequency. And monitoring the running state of the containers in the container cluster in real time to obtain the container running indexes. And when the container operation index of the container cluster reaches a set elastic expansion threshold value, calculating and increasing the number of the containers to be increased. The containers are added according to the number of containers to be added. In this case, the method can create more containers in conjunction with the change of access situation, i.e. when the access increases, so as to balance the load of each container and make each container smoothly provide services for users. Some containers are destroyed when access is reduced to save computing resources for use by other containers.
In order to further improve the accuracy of the method for applying, monitoring, analyzing and scheduling a service based on a time sequence in this embodiment, specifically, after obtaining the load information of each gateway, the method can also integrate the load information of each gateway to obtain a time sequence resource utilization rate and a characteristic value, where the characteristic value may be a peak value, a valley value, an average value, or the like. Here, the method for applying, monitoring, analyzing and scheduling a service based on a time sequence in this embodiment can form and display a time sequence resource utilization rate of an information system, so as to facilitate system resource analysis by engineering personnel and system maintenance by system maintenance personnel.
Specifically, when the load information of each gateway is obtained, the method may obtain the load information of each gateway in a polling manner, or may obtain the load information of each gateway in a passive receiving manner, for example, in a tracing manner, which is helpful to determine the target gateway quickly and accurately.
In a second aspect, a system for service application and monitoring, analyzing and scheduling based on time sequence provided in an embodiment of the present invention is combined with fig. 2, and the system includes a container cluster creating module 1, a state monitoring module, a service request processing module 3, and a resource releasing module 4, where the container cluster creating module 1 is configured to receive an application creating instruction; according to the creation request, a container cluster is established, and a corresponding network address is distributed to each container in the container cluster; the state monitoring module 2 is used for monitoring the load state of each gateway and acquiring the load information of each gateway; determining a target gateway according to the load information of each gateway; mapping each container in the container cluster to a target gateway; the service request processing module 3 is used for receiving a service request; calling a target application corresponding to the service request according to the service request; resolving the domain name in the service request to obtain a target network address; according to the target network address, scheduling a target container corresponding to the target network address, and recording the starting time of the target container; updating the access times of the target container in real time; the resource releasing module 4 is configured to release the resource occupied by the target container or the target application according to the starting time, the time threshold, and the number of accesses.
According to the technical scheme, the time sequence-based service application and monitoring, analyzing and scheduling system provided by the embodiment determines the target gateway with the minimum load capacity according to the specific service condition of the service system resource by monitoring the load state of the gateway in real time, calls the target application according to the actual service request, analyzes the corresponding network address, starts the target container, meets the high concurrency request, improves the resource utilization efficiency of the information system, avoids the information system paralysis phenomenon, and reduces the time delay. The utilization efficiency of different service systems to the information system resources is realized. Meanwhile, the system can also determine whether to release the resources occupied by the target container or the target application according to the access times within the preset time, so that the resources can be released quickly after the resource demand is reduced, the dynamic allocation of the information system resources is realized, the normal access of a service system is ensured, and one third of the investment cost of enterprise information resource hardware can be reduced.
Therefore, the service application and monitoring, analyzing and scheduling system based on the time sequence can change a hardware stacking mode, make full use of hardware resources of the existing information system, allocate concurrent requests, reduce time delay and equipment cost, and improve customer experience.
In order to further improve the stability of the system for applying, monitoring, analyzing and scheduling the time sequence-based service, specifically, the system further includes a communication transmission channel establishing module: for establishing communication transmission channels between the containers. The communication transmission channel establishing module realizes the mutual communication between the containers through GRE TUNNLE or VXLAN of OVS between the containers, improves the safety and accuracy of information transmission between different containers, so as to quickly and accurately respond to different types of service requests and be beneficial to comprehensively collecting and utilizing information resources.
Specifically, in the aspect of resource utilization of the information system, the system for service application and monitoring, analyzing and scheduling based on the time sequence can quickly release system resources and improve the resource utilization rate of the information system, wherein the resource release module 4 includes a target application stop sub-module, a target application delete sub-module and a target container delete sub-module, and the target application stop sub-module is configured to stop running the target application according to the start time, the first time threshold and the access times; the target application deleting submodule is used for deleting the target application according to the starting time, the second time threshold and the access times; and the target container deleting submodule is used for deleting the target container according to the starting time, the third time threshold and the access times, wherein the time threshold comprises a first time threshold, a second time threshold and a third time threshold. Here, the resource release module 4 can control the state of the target application or the target container according to the number of times of access to the actual target container or the calling status of the target application, dynamically adjust the system resources of the information system, and improve the utilization rate of the service system resources.
In order to further improve the accuracy of the system for applying, monitoring, analyzing and scheduling the time sequence-based service, specifically, the system further includes a load information integration module: the method is used for integrating the load information of each gateway and acquiring the time sequence resource utilization rate and the characteristic value, wherein the characteristic value can be a peak value, a valley value or an average value and the like. Here, the system for applying, monitoring, analyzing and scheduling a service based on a time sequence in this embodiment can form a time sequence resource utilization rate of an information system, and display the time sequence resource utilization rate, so that engineering personnel can analyze the system resource conveniently, and system maintenance personnel can maintain the system conveniently.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (9)

1. A method for service application and monitoring analysis scheduling based on time sequence is characterized by comprising the following steps:
a container cluster creating step: receiving a creation instruction of an application;
establishing a container cluster according to the establishment request, and distributing a corresponding network address for each container in the container cluster;
and a state monitoring step: monitoring the load state of each gateway and acquiring the load information of each gateway;
determining a target gateway according to the load information of each gateway;
mapping each container in the container cluster to the target gateway;
and a service request processing step: receiving a service request;
calling a target application corresponding to the service request according to the service request;
resolving the domain name in the service request to obtain a target network address;
scheduling a target container corresponding to the target network address according to the target network address, and recording the starting time of the target container;
updating the access times of the target container in real time;
resource releasing step: and releasing the resources occupied by the target container or the target application according to the starting time, the time threshold and the access times.
2. The method for time-series-based service application and monitoring analysis scheduling according to claim 1, wherein after allocating a corresponding network address to each container in the container cluster, before scheduling a target container corresponding to the target network address according to the target network address, the method further comprises: and establishing communication transmission channels among the containers.
3. The method for timing-based service application and monitoring, analyzing and scheduling according to claim 1, wherein the releasing resources occupied by the target container or the target application according to the start time, the time threshold and the number of accesses specifically comprises:
stopping running the target application according to the starting time, the first time threshold and the access times;
or deleting the target application according to the starting time, a second time threshold and the access times;
or deleting the target container according to the starting time, a third time threshold and the access times, wherein the time thresholds comprise the first time threshold, the second time threshold and the third time threshold.
4. The method for time-sequenced based service application and monitoring analysis scheduling as claimed in claim 1, wherein after obtaining the load information of each gateway, the method further comprises:
and integrating the load information of each gateway to obtain the time sequence resource utilization rate and a characteristic value, wherein the characteristic value can be a peak value, a valley value or an average value.
5. The method for time-series-based service application and monitoring, analyzing and scheduling according to claim 1, wherein the monitoring a load status of each gateway and obtaining load information of each gateway specifically comprises: and monitoring the load state of each gateway, and acquiring the load information of each gateway in a polling mode.
6. A system for service application and monitoring analysis scheduling based on time sequence is characterized by comprising:
a container cluster creation module: receiving a creation instruction of an application; establishing a container cluster according to the establishment request, and distributing a corresponding network address for each container in the container cluster;
a state monitoring module: the gateway load monitoring system is used for monitoring the load state of each gateway and acquiring the load information of each gateway; determining a target gateway according to the load information of each gateway; mapping each container in the container cluster to the target gateway;
a service request processing module: for receiving a service request; calling a target application corresponding to the service request according to the service request; resolving the domain name in the service request to obtain a target network address; scheduling a target container corresponding to the target network address according to the target network address, and recording the starting time of the target container; updating the access times of the target container in real time;
a resource release module: and the resource occupied by the target container or the target application is released according to the starting time, the time threshold and the access times.
7. The system for time-sequenced based service application and monitoring analysis and scheduling as claimed in claim 6, wherein said system further comprises a communication transmission channel establishing module: for establishing communication transmission channels between the containers.
8. The system for applying, monitoring, analyzing and scheduling services according to claim 6, wherein the resource releasing module specifically comprises:
the target application stopping submodule is used for stopping running the target application according to the starting time, the first time threshold and the access times;
the target application deleting submodule is used for deleting the target application according to the starting time, a second time threshold and the access times;
and the target container deleting submodule is used for deleting the target container according to the starting time, a third time threshold and the access times, wherein the time threshold comprises the first time threshold, the second time threshold and the third time threshold.
9. The system for time-sequenced based service application and monitoring analysis scheduling as claimed in claim 6, wherein said system further comprises a load information integration module: the method is used for integrating the load information of each gateway and acquiring the time sequence resource utilization rate and the characteristic value, wherein the characteristic value can be a peak value, a valley value or an average value.
CN201710221376.9A 2017-04-06 2017-04-06 Method and system for service application and monitoring, analyzing and scheduling based on time sequence Active CN107426274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710221376.9A CN107426274B (en) 2017-04-06 2017-04-06 Method and system for service application and monitoring, analyzing and scheduling based on time sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710221376.9A CN107426274B (en) 2017-04-06 2017-04-06 Method and system for service application and monitoring, analyzing and scheduling based on time sequence

Publications (2)

Publication Number Publication Date
CN107426274A CN107426274A (en) 2017-12-01
CN107426274B true CN107426274B (en) 2020-05-19

Family

ID=60423472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710221376.9A Active CN107426274B (en) 2017-04-06 2017-04-06 Method and system for service application and monitoring, analyzing and scheduling based on time sequence

Country Status (1)

Country Link
CN (1) CN107426274B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958882A (en) * 2018-06-06 2018-12-07 麒麟合盛网络技术股份有限公司 A kind of container method of adjustment, device and system
CN109117149A (en) * 2018-07-13 2019-01-01 下代互联网重大应用技术(北京)工程研究中心有限公司 A kind of behavior analysis system dispositions method and electronic equipment
CN110908774B (en) * 2018-09-14 2023-04-14 阿里巴巴集团控股有限公司 Resource scheduling method, equipment, system and storage medium
CN109298913A (en) * 2018-09-26 2019-02-01 武芮 The method and device of schedules system resources between a kind of multi-vessel system
CN109302483B (en) * 2018-10-17 2021-02-02 网宿科技股份有限公司 Application program management method and system
CN112130984A (en) * 2019-06-25 2020-12-25 中国电信股份有限公司 Resource processing method, device and computer readable storage medium
CN110868361A (en) * 2019-11-01 2020-03-06 云深互联(北京)科技有限公司 Gateway load balancing method, device and equipment
CN111064781A (en) * 2019-12-10 2020-04-24 北京金山云网络技术有限公司 Multi-container cluster monitoring data acquisition method and device and electronic equipment
CN111083240A (en) * 2019-12-31 2020-04-28 江苏徐工信息技术股份有限公司 Intelligent front-end drainage system realized by combining container technology
CN113783712A (en) * 2020-06-09 2021-12-10 中兴通讯股份有限公司 Default gateway management method, gateway manager, server and storage medium
CN112202895B (en) * 2020-09-30 2022-07-08 北京达佳互联信息技术有限公司 Method and system for collecting monitoring index data, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376303A (en) * 2015-10-23 2016-03-02 深圳前海达闼云端智能科技有限公司 Docker implementation system and communication method thereof
CN105491150A (en) * 2015-12-28 2016-04-13 中国民航信息网络股份有限公司 Load balance processing method based on time sequence and system
CN106533929A (en) * 2016-12-30 2017-03-22 北京中电普华信息技术有限公司 Micro-service development platform, generation method, deployment method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376303A (en) * 2015-10-23 2016-03-02 深圳前海达闼云端智能科技有限公司 Docker implementation system and communication method thereof
CN105491150A (en) * 2015-12-28 2016-04-13 中国民航信息网络股份有限公司 Load balance processing method based on time sequence and system
CN106533929A (en) * 2016-12-30 2017-03-22 北京中电普华信息技术有限公司 Micro-service development platform, generation method, deployment method and device

Also Published As

Publication number Publication date
CN107426274A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN107426274B (en) Method and system for service application and monitoring, analyzing and scheduling based on time sequence
CN107241281B (en) Data processing method and device
CN108667748B (en) Method, device, equipment and storage medium for controlling bandwidth
CN107066319B (en) Multi-dimensional scheduling system for heterogeneous resources
CN108829352B (en) User quota method and system for distributed storage system
CN106452818B (en) Resource scheduling method and system
CN110597858A (en) Task data processing method and device, computer equipment and storage medium
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
CN105049268A (en) Distributed computing resource allocation system and task processing method
CN108984125B (en) Resource allocation method, device and storage medium
US9535749B2 (en) Methods for managing work load bursts and devices thereof
CN109257399B (en) Cloud platform application program management method, management platform and storage medium
CN111459641B (en) Method and device for task scheduling and task processing across machine room
CN110599148B (en) Cluster data processing method and device, computer cluster and readable storage medium
WO2016095524A1 (en) Resource allocation method and apparatus
CN107665143B (en) Resource management method, device and system
CN109800261B (en) Dynamic control method and device for double-database connection pool and related equipment
CN116662020B (en) Dynamic management method and system for application service, electronic equipment and storage medium
CN111464331A (en) Control method and system for thread creation and terminal equipment
CN114116173A (en) Method, device and system for dynamically adjusting task allocation
CN113079062B (en) Resource adjusting method and device, computer equipment and storage medium
CN111093099A (en) Streaming media service scheduling method, device and system
CN115941622A (en) Bandwidth adjusting method, system, equipment and storage medium
US20220114188A1 (en) Efficient Database Loading

Legal Events

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