CN116599965B - Communication method, communication device, electronic apparatus, and readable storage medium - Google Patents

Communication method, communication device, electronic apparatus, and readable storage medium Download PDF

Info

Publication number
CN116599965B
CN116599965B CN202310878878.4A CN202310878878A CN116599965B CN 116599965 B CN116599965 B CN 116599965B CN 202310878878 A CN202310878878 A CN 202310878878A CN 116599965 B CN116599965 B CN 116599965B
Authority
CN
China
Prior art keywords
proxy
node
cluster
nodes
agent
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
CN202310878878.4A
Other languages
Chinese (zh)
Other versions
CN116599965A (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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310878878.4A priority Critical patent/CN116599965B/en
Publication of CN116599965A publication Critical patent/CN116599965A/en
Application granted granted Critical
Publication of CN116599965B publication Critical patent/CN116599965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/10015Access to distributed or replicated servers, e.g. using brokers
    • 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/1004Server selection for load balancing
    • H04L67/1025Dynamic adaptation of the criteria on which the server selection is based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a communication method, a communication device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: acquiring operation information of an agent cluster, wherein a server comprises the agent cluster and M service nodes, the agent cluster comprises L agent nodes, each agent node corresponds to N service nodes, M, L and N are integers larger than 1, and N is smaller than M; adjusting target parameters of the agent clusters based on the operation information under the condition that the operation information meets preset conditions, wherein the target parameters are parameters for adjusting the operation pressure of the server; and sending a pre-acquired strategy label to the target agent node in the adjusted agent cluster, so that the target agent node controls the corresponding N service nodes to execute strategy information corresponding to the strategy label, wherein the strategy information is used for carrying out flow management on the service nodes.

Description

Communication method, communication device, electronic apparatus, and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a communication method, a communication device, electronic equipment and a readable storage medium.
Background
The service grid is an infrastructure layer for processing communication between services, can perform reliable request transmission under the complex topological structure of services formed by cloud native applications, is essentially a network responsible for communication between micro services, decouples service management and service development, and enables developers to concentrate on service development.
In the existing service grid architecture, each business service node is provided with a corresponding proxy node, and the configuration information in each proxy node is the total information of the whole system, so that a large amount of resources of the system are wasted when the communication method based on the service grid is used for communication.
Disclosure of Invention
An object of the embodiments of the present application is to provide a communication method, a communication device, an electronic apparatus, and a readable storage medium, which can solve the problem that a large amount of resources of a system are wasted when the existing communication method based on a service grid is used for communication.
In a first aspect, an embodiment of the present application provides a communication method, applied to a server, where the method includes:
acquiring operation information of the agent cluster, wherein the operation information comprises at least one of the following: the server comprises the proxy cluster and M service nodes, wherein the proxy cluster comprises L proxy nodes, each proxy node corresponds to N service nodes, M, L and N are integers larger than 1, and N is smaller than M;
adjusting target parameters of the agent clusters based on the operation information under the condition that the operation information meets preset conditions, wherein the target parameters are parameters for adjusting the operation pressure of the server;
and sending a pre-acquired strategy label to the target agent node in the adjusted agent cluster, so that the target agent node controls the corresponding N service nodes to execute strategy information corresponding to the strategy label, wherein the strategy information is used for carrying out flow management on the service nodes.
In a second aspect, an embodiment of the present application provides a communication device, applied to a server, where the device includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring operation information of the agent cluster, and the operation information comprises at least one of the following: the server comprises the proxy cluster and M service nodes, wherein the proxy cluster comprises L proxy nodes, each proxy node corresponds to N service nodes, M, L and N are integers larger than 1, and N is smaller than M;
the adjusting module is used for adjusting target parameters of the agent cluster based on the running information under the condition that the running information meets preset conditions, wherein the target parameters are parameters for adjusting the running pressure of the server;
the sending module is used for sending the pre-acquired strategy labels to the target agent nodes in the adjusted agent clusters, so that the target agent nodes control the corresponding N service nodes to execute the strategy information corresponding to the strategy labels, and the strategy information is used for carrying out flow management on the service nodes.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In the embodiment of the application, each proxy node corresponds to N service nodes, so that the number of the proxy nodes required in the server is reduced, and the resource waste of the system is reduced. In addition, under the condition that the operation information meets the preset condition, the target parameters of the proxy cluster are adjusted based on the operation information, so that the load configuration condition of the proxy nodes in the proxy cluster is changed, the resources of each proxy node are reasonably utilized, the operation pressure of the server is reduced, and the resource waste is further avoided.
Drawings
Fig. 1 is a schematic architecture diagram of a server according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a communication method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The communication method provided by the embodiment of the application can be applied to a server shown in fig. 1, wherein the server is a service grid architecture and comprises a control plane and a data plane, the data plane comprises a data plane coordinator, a proxy cluster and service nodes, the proxy cluster comprises proxy nodes and dynamic telescopic proxy nodes, and each proxy node corresponds to at least two service nodes. The control plane may be configured to receive information generated by the user and other terminals, and send the information to the data plane. The data plane coordinator mainly plays a role of route forwarding, and can be used for forwarding information to the proxy node and the dynamic telescopic proxy node. The service node may be a service instance of a containerized application or a service instance of a non-containerized application, and is configured to receive information sent by a corresponding proxy node and respond to a request of a user.
The configuration information is calculated by the control plane according to the user configuration and is issued to each proxy node and the dynamic telescopic proxy node through the data plane coordinator, and the configuration information in each proxy node and the dynamic telescopic proxy node is consistent. Policy information is stored in the proxy node and the dynamic telescopic proxy node, and the policy information is preset according to the functional requirements of the service requested by the user. The proxy node is used for processing inbound and outbound requests according to configuration information and policy information corresponding to user requests, and the request comprises data forwarding, request authentication, load balancing, flow management and the like. It should be noted that, the functions of the proxy node and the dynamic telescopic proxy node are consistent, the proxy node is a common node and is usually in an operation state, and the dynamic telescopic proxy node is usually in a stop operation state and can be adjusted to the operation state according to the requirement, so that the number of the proxy nodes operated in the proxy cluster is increased.
The execution body of the communication method provided in the embodiment of the present application may be a data plane coordinator in the server shown in fig. 1.
As shown in fig. 2, the communication method provided in the embodiment of the present application includes the following steps:
step S1, acquiring operation information of an agent cluster, wherein the operation information comprises at least one of the following items: resource usage information, request access volume, creation time information, the server comprising the proxy cluster and M service nodes, the proxy cluster comprising L proxy nodes, each proxy node corresponding to N service nodes, M, L and N being integers greater than 1, N being less than M,
the data plane coordinator not only stores the historical operation information of the agent cluster, but also can acquire the current operation information of the agent cluster in real time. The operation information may be at least one or more of resource usage information, request access amount, and creation time information. The resource usage information may be a central processing unit (Central Processing Unit, CPU) usage rate of the proxy node, or a memory usage rate of the proxy node. The request access amount may be the amount of request information received by the proxy node that is sent by the data plane coordinator. The creation time information may be a time period from a time point when the proxy node starts to operate to a current time point, or a time period from a time point when the history request information is received to the current time point.
In the server to which the communication method of this embodiment is applied, the proxy cluster includes L proxy nodes, each proxy corresponds to N service nodes, N is an integer greater than 1, that is, each proxy node corresponds to a plurality of service nodes, and each proxy node may send information to a plurality of corresponding service nodes having a connection relationship.
Step S2, adjusting target parameters of the agent cluster based on the operation information when the operation information meets preset conditions, wherein the target parameters are parameters for adjusting the operation pressure of the server,
and under the condition that the running information meets the preset condition, adjusting the target parameters of the proxy cluster based on the running information, so as to change the load configuration condition of the proxy nodes in the proxy cluster and reduce the running pressure of the server.
Since the operation information may be a plurality of or any one of the resource usage information, the request access amount and the creation time information, the operation information may also be a plurality of cases where the operation information satisfies the preset condition, and there are a plurality of ways to adjust the target parameters of the proxy cluster, and when the resource usage information indicates that the resource usage rate of the proxy cluster is too high, the number of proxy nodes in the proxy cluster may be increased, for example, the number of dynamic telescopic proxy nodes shown in fig. 1 may be increased, so as to increase the number of proxy nodes, and a partial load may be configured to the increased proxy nodes, so as to reduce the resource usage rate of the proxy cluster, thereby reducing the operation pressure of the server. For example, when the creation time information of a certain proxy node indicates that the proxy node does not receive the request information for a long time, the operation of the proxy node can be stopped, the number of proxy nodes operated in the server is reduced, not only is the resource waste reduced, but also the operation pressure of the server is reduced.
And step S3, sending a pre-acquired strategy label to the target agent node in the adjusted agent cluster, so that the target agent node controls the corresponding N service nodes to execute strategy information corresponding to the strategy label, wherein the strategy information is used for carrying out flow management on the service nodes.
After the target parameters of the proxy cluster are regulated according to the real-time running information of the proxy cluster, the proxy cluster is in a load configuration balanced and stable running state. The control plane receives the request information and transmits the request information to the data plane coordinator, the data plane coordinator determines corresponding function requirements according to the request information, and then determines strategy labels according to the function requirements, wherein the strategy labels correspond to preset strategy information one by one. The policy tag is sent to the target agent node, which may be one or more, and is determined by the functional requirement of the request information. And selecting policy information corresponding to the policy tag from a plurality of policy information stored in advance in the target agent node according to the policy tag, sending the policy information to N service nodes corresponding to the target agent node, and executing a flow management policy corresponding to the policy information by the service nodes so as to stably respond to a request corresponding to the request information.
In this embodiment, each proxy node corresponds to N service nodes, which reduces the number of proxy nodes required in the server and reduces the resource waste of the system. In addition, under the condition that the operation information meets the preset condition, the target parameters of the proxy cluster are adjusted based on the operation information, so that the load configuration condition of the proxy nodes in the proxy cluster is changed, the resources of each proxy node are reasonably utilized, the operation pressure of the server is reduced, and the resource waste is further avoided.
In one embodiment, after the data plane coordinator performs steps S1-S3 of the embodiment shown in fig. 2, the communication method further includes:
the service node sends response result information to the corresponding proxy node, wherein the response result information is used for indicating the request completion status of the service node fed back to the proxy node after executing the sent strategy information of the proxy node and responding to the request of the request information. The response result information may be a request corresponding to the smoothly completed request information, a request corresponding to the incompletely completed request information, or an access to the service node by the proxy node, and when the access time is over, the proxy node transmits error information for indicating the access timeout to the service node.
After receiving the response result information sent by the service node, the proxy node sends the response result information to the user terminal or the request information source terminal, so that the user terminal or the request information source terminal knows the request response condition to judge whether to continue sending the request information.
Optionally, the target parameter includes at least one of:
the number of runs of agent nodes;
connection relationship between proxy node and service node.
The adjustment target parameter may be to increase the number of operations of the proxy node or decrease the number of operations of the proxy node, or to change the existing connection relationship between the proxy node and the service node. Based on different preset adjustments, the target parameters of the agent clusters are adaptively adjusted, so that the flexibility of the communication method in the embodiment is improved.
Optionally, step S2, in the case that the operation information meets a preset condition, adjusts a target parameter of the proxy cluster based on the operation information, including:
and under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the central processing unit is larger than or equal to a first preset value, generating the capacity expansion proxy nodes in the proxy cluster so as to increase the running number of the proxy nodes.
And calculating the memory usage rate of the proxy cluster according to the memory usage rate of each proxy node in the proxy cluster. And calculating the CPU utilization rate of the proxy cluster according to the CPU utilization rate of each proxy node in the proxy cluster. In case the memory usage or CPU usage of the proxy cluster is greater than or equal to the first preset value, a capacity expanding proxy node, i.e. a dynamic telescopic proxy node as shown in fig. 1, is produced in the proxy cluster. As the running number of the proxy nodes is increased, the total memory resources and CPU resources in the proxy cluster are increased, so that the memory utilization rate and the CPU utilization rate are reduced, the running pressure of the system is reduced, and the running stability of the system is improved.
Optionally, step S2, in the case that the operation information meets a preset condition, adjusts a target parameter of the agent cluster based on the operation information, and further includes:
and stopping running the first proxy node under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the CPU is smaller than a second preset value so as to reduce the running number of the proxy nodes, wherein the first proxy node is the proxy node with the longest running time.
And calculating the memory usage rate of the proxy cluster according to the memory usage rate of each proxy node in the proxy cluster. And calculating the CPU utilization rate of the proxy cluster according to the CPU utilization rate of each proxy node in the proxy cluster. Under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the central processing unit is smaller than a second preset value, the fact that the proxy cluster has sufficient memory resources or CPU resources to meet the working requirements is indicated, the first proxy node with the longest operation duration is determined in the proxy cluster at the moment, after the first proxy node finishes all request forwarding work, the first proxy node stops operating, the number of proxy nodes is reduced, and the resource waste is reduced.
Optionally, step S2, in the case that the operation information meets a preset condition, adjusts a target parameter of the agent cluster based on the operation information, and further includes:
forwarding the connection between the second proxy node and the corresponding N service nodes to a third generation node for processing under the condition that the proxy cluster meets a first preset condition and a second preset condition;
the first preset condition includes at least one of the following: the request access amount of the second proxy node is larger than a third preset value and the memory utilization rate of the second proxy node is larger than a fourth preset value,
the request access amount of the second proxy node is larger than the third preset value, and the CPU utilization rate of the second proxy node is larger than the fourth preset value;
the second preset condition includes at least one of: the request access amount of the third generation node is smaller than a fifth preset value and the memory usage rate of the third generation node is smaller than a sixth preset value,
the request access amount of the third generation node is smaller than the fifth preset value, and the CPU utilization rate of the third generation node is smaller than the sixth preset value.
Under the condition that the second agent node meets the first preset condition and the third agent node meets the second preset condition, the load of the second agent node is larger, more task requests need to be forwarded, meanwhile, the load of the third agent node is smaller, less task requests need to be forwarded, and enough resources still remain to bear more tasks. Thus, all connections between the second proxy node and the corresponding N service nodes may be forwarded to the third proxy node for processing; and partial connection between the second proxy node and the N corresponding service nodes can be forwarded to the third generation node for processing, so that load balancing is realized, the operation pressure of the second proxy node is reduced, and the operation stability of the proxy cluster and the server is improved.
Optionally, the operation information further includes fault information of the proxy node, and when the operation information meets a preset condition, the operation information is based on the target parameter of the proxy cluster is adjusted, and the method further includes:
and in the proxy cluster, stopping running the fourth proxy node under the condition that the fault information of the fourth proxy node indicates that the fourth proxy node has a fault, so as to reduce the running number of the proxy nodes.
Under the condition that the fault information indicates that the fourth proxy node has a fault, if a disk is damaged, the fourth proxy node has higher error probability in the operation process, and the fourth proxy node stops operating, so that the operation quantity of the proxy nodes can be reduced, and the resource waste is reduced.
Optionally, the policy information includes at least one of: load balancing, timeout mechanism, request forwarding, service fusing, service degradation, fault injection, and gray scale publishing. The service node executes the corresponding strategy according to the strategy information sent by the corresponding proxy node, so that the server can better complete the request task sent by the user terminal or other terminals, and the use flexibility and the use experience of the method of the embodiment are improved.
The implementation body of the communication method provided in the embodiment of the present application may be a communication device, taking the communication device to implement the communication method as an example, and referring to fig. 3, the communication device 300 provided in the embodiment of the present application is described, where the communication device 300 includes:
the obtaining module 301 is configured to obtain operation information of the proxy cluster, where the operation information includes at least one of the following: the server comprises the proxy cluster and M service nodes, wherein the proxy cluster comprises L proxy nodes, each proxy node corresponds to N service nodes, M, L and N are integers larger than 1, and N is smaller than M;
the adjusting module 302 is configured to adjust, based on the operation information, a target parameter of the proxy cluster, where the target parameter is a parameter for adjusting an operation pressure of the server, where the operation information meets a preset condition;
and the sending module 303 is configured to send a policy tag obtained in advance to a target proxy node in the adjusted proxy cluster, so that the target proxy node controls the corresponding N service nodes to execute policy information corresponding to the policy tag, where the policy information is used to perform traffic management on the service nodes.
Optionally, the target parameter includes at least one of:
the number of runs of agent nodes;
connection relationship between proxy node and service node.
Optionally, the adjusting module 302 is further configured to:
and under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the central processing unit is larger than or equal to a first preset value, generating the capacity expansion proxy nodes in the proxy cluster so as to increase the running number of the proxy nodes.
Optionally, the adjusting module 302 is further configured to:
and stopping running the first proxy node under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the CPU is smaller than a second preset value so as to reduce the running number of the proxy nodes, wherein the first proxy node is the proxy node with the longest running time.
Optionally, the adjusting module 302 is further configured to:
forwarding the connection between the second proxy node and the corresponding N service nodes to a third generation node for processing under the condition that the proxy cluster meets a first preset condition and a second preset condition;
the first preset condition includes at least one of the following: the request access amount of the second proxy node is larger than a third preset value and the memory utilization rate of the second proxy node is larger than a fourth preset value,
the request access amount of the second proxy node is larger than the third preset value, and the CPU utilization rate of the second proxy node is larger than the fourth preset value;
the second preset condition includes at least one of: the request access amount of the third generation node is smaller than a fifth preset value and the memory usage rate of the third generation node is smaller than a sixth preset value,
the request access amount of the third generation node is smaller than the fifth preset value, and the CPU utilization rate of the third generation node is smaller than the sixth preset value.
Optionally, the adjusting module 302 is further configured to:
and in the proxy cluster, stopping running the fourth proxy node under the condition that the fault information of the fourth proxy node indicates that the fourth proxy node has a fault, so as to reduce the running number of the proxy nodes.
Optionally, the policy information includes at least one of: load balancing, timeout mechanism, request forwarding, service fusing, service degradation, fault injection, and gray scale publishing.
According to the communication device provided by the embodiment of the invention, the target parameters of the proxy cluster can be adjusted by acquiring the operation information of the proxy cluster, so that the operation pressure of the server is adjusted, and under the condition that the operation pressure of the server is in a reasonable range and the server can stably operate, the pre-acquired strategy labels are sent to the target proxy nodes of the proxy cluster, so that N service nodes corresponding to the target proxy nodes execute strategies corresponding to the strategy labels.
It should be noted that, the communication device 300 provided in the embodiment of the present application can implement all the technical processes of the above-mentioned communication method and achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
The device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile internet appliance (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine or a self-service machine, etc., without being limited thereto.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 401 and a memory 402, where the memory 402 stores a program or an instruction that can be executed on the processor 401, and the program or the instruction implements each step of the embodiment of the method when executed by the processor 401, and the steps can achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implement each process of the embodiment of the method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A communication method applied to a server, the method comprising:
acquiring operation information of the agent cluster, wherein the operation information comprises at least one of the following: the server comprises the proxy cluster and M service nodes, wherein the proxy cluster comprises L proxy nodes, each proxy node corresponds to N service nodes, M, L and N are integers larger than 1, and N is smaller than M;
adjusting target parameters of the agent clusters based on the operation information under the condition that the operation information meets preset conditions, wherein the target parameters are parameters for adjusting the operation pressure of the server;
sending a pre-acquired strategy label to a target agent node in the adjusted agent cluster, so that the target agent node controls the corresponding N service nodes to execute strategy information corresponding to the strategy label, wherein the strategy information is used for carrying out flow management on the service nodes;
the target parameters include at least one of:
the number of runs of agent nodes;
the connection relation between the proxy node and the service node;
and under the condition that the operation information meets the preset condition, adjusting the target parameters of the agent cluster based on the operation information, wherein the method comprises the following steps:
forwarding the connection between the second proxy node and the corresponding N service nodes to a third generation node for processing under the condition that the proxy cluster meets a first preset condition and a second preset condition;
the first preset condition includes at least one of the following: the request access amount of the second proxy node is larger than a third preset value and the memory utilization rate of the second proxy node is larger than a fourth preset value,
the request access amount of the second proxy node is larger than the third preset value, and the CPU utilization rate of the second proxy node is larger than the fourth preset value;
the second preset condition includes at least one of: the request access amount of the third generation node is smaller than a fifth preset value and the memory usage rate of the third generation node is smaller than a sixth preset value,
the request access amount of the third generation node is smaller than the fifth preset value, and the CPU utilization rate of the third generation node is smaller than the sixth preset value.
2. The method of claim 1, wherein the adjusting the target parameters of the proxy cluster based on the operation information if the operation information satisfies a preset condition comprises:
and under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the central processing unit is larger than or equal to a first preset value, generating the capacity expansion proxy nodes in the proxy cluster so as to increase the running number of the proxy nodes.
3. The method of claim 1, wherein the adjusting the target parameters of the proxy cluster based on the operation information if the operation information satisfies a preset condition, further comprises:
and stopping running the first proxy node under the condition that the memory utilization rate of the proxy cluster or the CPU utilization rate of the CPU is smaller than a second preset value so as to reduce the running number of the proxy nodes, wherein the first proxy node is the proxy node with the longest running time.
4. The method of claim 1, wherein the operation information further includes failure information of a proxy node, and wherein adjusting the target parameter of the proxy cluster based on the operation information when the operation information satisfies a preset condition further includes:
and in the proxy cluster, stopping running the fourth proxy node under the condition that the fault information of the fourth proxy node indicates that the fourth proxy node has a fault, so as to reduce the running number of the proxy nodes.
5. The method of any of claims 1 to 4, wherein the policy information comprises at least one of: load balancing, timeout mechanism, request forwarding, service fusing, service degradation, fault injection, and gray scale publishing.
6. A communication device for use with a server, the device comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring operation information of the agent cluster, and the operation information comprises at least one of the following: the server comprises the proxy cluster and M service nodes, wherein the proxy cluster comprises L proxy nodes, each proxy node corresponds to N service nodes, M, L and N are integers larger than 1, and N is smaller than M;
the adjusting module is used for adjusting target parameters of the agent cluster based on the running information under the condition that the running information meets preset conditions, wherein the target parameters are parameters for adjusting the running pressure of the server;
the sending module is used for sending the pre-acquired strategy labels to the target agent nodes in the adjusted agent clusters so that the target agent nodes control the corresponding N service nodes to execute strategy information corresponding to the strategy labels, and the strategy information is used for carrying out flow management on the service nodes;
the target parameters include at least one of:
the number of runs of agent nodes;
the connection relation between the proxy node and the service node;
the adjustment module is also for:
forwarding the connection between the second proxy node and the corresponding N service nodes to a third generation node for processing under the condition that the proxy cluster meets a first preset condition and a second preset condition;
the first preset condition includes at least one of the following: the request access amount of the second proxy node is larger than a third preset value and the memory utilization rate of the second proxy node is larger than a fourth preset value,
the request access amount of the second proxy node is larger than the third preset value, and the CPU utilization rate of the second proxy node is larger than the fourth preset value;
the second preset condition includes at least one of: the request access amount of the third generation node is smaller than a fifth preset value and the memory usage rate of the third generation node is smaller than a sixth preset value,
the request access amount of the third generation node is smaller than the fifth preset value, and the CPU utilization rate of the third generation node is smaller than the sixth preset value.
7. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the communication method of any one of claims 1 to 5.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the communication method according to any of claims 1 to 5.
CN202310878878.4A 2023-07-18 2023-07-18 Communication method, communication device, electronic apparatus, and readable storage medium Active CN116599965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310878878.4A CN116599965B (en) 2023-07-18 2023-07-18 Communication method, communication device, electronic apparatus, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310878878.4A CN116599965B (en) 2023-07-18 2023-07-18 Communication method, communication device, electronic apparatus, and readable storage medium

Publications (2)

Publication Number Publication Date
CN116599965A CN116599965A (en) 2023-08-15
CN116599965B true CN116599965B (en) 2024-01-30

Family

ID=87590356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310878878.4A Active CN116599965B (en) 2023-07-18 2023-07-18 Communication method, communication device, electronic apparatus, and readable storage medium

Country Status (1)

Country Link
CN (1) CN116599965B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047563A (en) * 2007-04-20 2007-10-03 北京航空航天大学 System, method and loading uniform method for implementing network resource adaptive
CN109150616A (en) * 2018-09-03 2019-01-04 成都嗨翻屋科技有限公司 A kind of Intelligent gateway and its working method that can increase https entrance automatically
CN111767157A (en) * 2019-08-07 2020-10-13 北京京东尚科信息技术有限公司 Request processing method and device based on service grid
CN112000365A (en) * 2020-08-24 2020-11-27 百度时代网络技术(北京)有限公司 Service grid configuration method, device, equipment and medium based on micro-service architecture
CN113315719A (en) * 2020-02-27 2021-08-27 阿里巴巴集团控股有限公司 Traffic scheduling method, device, system and storage medium
CN113726843A (en) * 2021-07-13 2021-11-30 阿里巴巴新加坡控股有限公司 Edge cloud system, data transmission method, device and storage medium
CN113746918A (en) * 2021-09-03 2021-12-03 上海幻电信息科技有限公司 Hypertext transfer protocol proxy method and system
CN116232884A (en) * 2022-12-15 2023-06-06 中科驭数(北京)科技有限公司 Proxy instance management method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047563A (en) * 2007-04-20 2007-10-03 北京航空航天大学 System, method and loading uniform method for implementing network resource adaptive
CN109150616A (en) * 2018-09-03 2019-01-04 成都嗨翻屋科技有限公司 A kind of Intelligent gateway and its working method that can increase https entrance automatically
CN111767157A (en) * 2019-08-07 2020-10-13 北京京东尚科信息技术有限公司 Request processing method and device based on service grid
CN113315719A (en) * 2020-02-27 2021-08-27 阿里巴巴集团控股有限公司 Traffic scheduling method, device, system and storage medium
CN112000365A (en) * 2020-08-24 2020-11-27 百度时代网络技术(北京)有限公司 Service grid configuration method, device, equipment and medium based on micro-service architecture
CN113726843A (en) * 2021-07-13 2021-11-30 阿里巴巴新加坡控股有限公司 Edge cloud system, data transmission method, device and storage medium
CN113746918A (en) * 2021-09-03 2021-12-03 上海幻电信息科技有限公司 Hypertext transfer protocol proxy method and system
CN116232884A (en) * 2022-12-15 2023-06-06 中科驭数(北京)科技有限公司 Proxy instance management method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116599965A (en) 2023-08-15

Similar Documents

Publication Publication Date Title
US20240204978A1 (en) Interface for digital operator platform including response caching
CN110138575B (en) Network slice creating method, system, network device and storage medium
CN113709048A (en) Routing information sending and receiving method, network element and node equipment
CN114095577A (en) Resource request method and device, calculation network element node and calculation application equipment
CN101436148B (en) Integrated client end and method for performing interaction of desktop application and network WEB application
US20030126196A1 (en) System for optimizing the invocation of computer-based services deployed in a distributed computing environment
CN102347959B (en) Resource access system and method based on identity and session
EP3703337B1 (en) Mobile edge host-machine service notification method and apparatus
CN111913818A (en) Method for determining dependency relationship between services and related device
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN102077543A (en) Method and apparatus for resource sharing between user devices in computer network
CN101808051A (en) Application integration gateway and control method thereof
CN110234140A (en) A kind of communication means, device, entity and storage medium
CN111770176B (en) Traffic scheduling method and device
CN111510383A (en) Route calculation method and related equipment
CN108495136A (en) A kind of method and system that direct broadcast service is provided
CN105404530B (en) It is a kind of to realize easy deployment and the system and method using private clound
CN110231956A (en) The method, system and device of application version building
CN112202829A (en) Social robot scheduling system and scheduling method based on micro-service
US9009352B1 (en) Transformation of common information model messages
CN115550354A (en) Data processing method and device and computer readable storage medium
CN116599965B (en) Communication method, communication device, electronic apparatus, and readable storage medium
CN113656164A (en) Task execution method, system, electronic device and computer storage medium
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN114900558B (en) Universal equipment management protocol control method and device

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
GR01 Patent grant
GR01 Patent grant