CN115292048A - Server capacity expansion and reduction method, device, equipment and storage medium - Google Patents
Server capacity expansion and reduction method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115292048A CN115292048A CN202210993475.XA CN202210993475A CN115292048A CN 115292048 A CN115292048 A CN 115292048A CN 202210993475 A CN202210993475 A CN 202210993475A CN 115292048 A CN115292048 A CN 115292048A
- Authority
- CN
- China
- Prior art keywords
- server
- users
- server cluster
- target
- target service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5044—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering hardware capabilities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5055—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本公开涉及一种服务器扩缩容方法、装置、设备和存储介质,该方法包括:获取当前正在访问服务器集群的第一用户数量;将所述第一用户数量与预设数量阈值进行比较,得到比较结果;根据所述比较结果,更新所述服务器集群中响应目标服务的服务器的数量。本公开实施例通过获取正在访问服务器集群的用户数量,将用户数量与预设数量阈值值比较,即可实现服务器的扩缩容,无需获取服务器的性能参数,也不需要人工操作,简单快速,易于实现。
The present disclosure relates to a method, device, device and storage medium for expanding or shrinking server capacity. The method includes: acquiring the number of first users currently accessing a server cluster; and comparing the number of first users with a preset number threshold to obtain Comparison result; according to the comparison result, update the number of servers in the server cluster that respond to the target service. In the embodiment of the present disclosure, by acquiring the number of users accessing the server cluster and comparing the number of users with a preset number threshold, the expansion and contraction of the server can be realized, without acquiring the performance parameters of the server, and without manual operation, which is simple and fast. Easy to implement.
Description
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种服务器扩缩容方法、装置、设备和存储介质。The present disclosure relates to the field of computer technology, and in particular to a server scaling method, device, equipment and storage medium.
背景技术Background technique
在分布式服务器集群服务中,随着集群访问压力越来越大,需要对服务器集群进行扩容;当访问压力减少时,又需要对服务器集群进行缩容。In the distributed server cluster service, as the cluster access pressure increases, the server cluster needs to be expanded; when the access pressure decreases, the server cluster needs to be reduced.
目前常用的服务器扩缩容方法通常是:获取各个服务器的性能参数,例如:CPU的使用率,磁盘利用率等,根据各个服务器的性能参数以及该服务器的参数阈值进行扩缩容。在服务器的使用过程中,由于权限设置等各方面原因,用户未能读取到服务器的各种性能参数。此时,只能通过人工操作,实现服务器的扩缩容。The currently commonly used server expansion and contraction method is usually: obtain the performance parameters of each server, such as: CPU usage rate, disk utilization rate, etc., and perform expansion and contraction according to the performance parameters of each server and the parameter threshold of the server. During the use of the server, due to various reasons such as permission settings, the user failed to read various performance parameters of the server. At this time, the expansion and contraction of the server can only be realized through manual operation.
但是,由于人工操作的方式时间延迟较大,更难做到实时、快速地扩容与缩容。However, due to the large time delay of manual operation, it is more difficult to achieve real-time and rapid expansion and contraction.
发明内容Contents of the invention
为了解决上述技术问题,本公开实施例提供了一种服务器扩缩容方法、装置、设备和存储介质,在无法读取到服务器的各种性能参数的情况下,仍然能够实现实时、快速地扩容与缩容。In order to solve the above-mentioned technical problems, the embodiments of the present disclosure provide a method, device, device, and storage medium for server expansion and contraction, which can still achieve real-time and rapid capacity expansion when various performance parameters of the server cannot be read with shrinkage.
第一方面,本公开实施例提供一种服务器扩缩容方法,包括:In a first aspect, an embodiment of the present disclosure provides a method for scaling a server, including:
获取当前正在访问服务器集群的第一用户数量;Obtain the number of first users who are currently accessing the server cluster;
将所述第一用户数量与预设数量阈值进行比较,得到比较结果;Comparing the first number of users with a preset number threshold to obtain a comparison result;
根据所述比较结果,更新所述服务器集群中响应目标服务的服务器。Updating the server responding to the target service in the server cluster according to the comparison result.
第二方面,本公开实施例提供一种服务器扩缩容装置,包括:In a second aspect, an embodiment of the present disclosure provides a server expansion and contraction device, including:
第一用户数量获取模块,用于获取当前正在访问服务器集群的第一用户数量;The first user number acquisition module is used to acquire the first number of users who are currently accessing the server cluster;
用户数量比较模块,用于将所述第一用户数量与预设数量阈值进行比较,得到比较结果;A user number comparison module, configured to compare the first number of users with a preset number threshold to obtain a comparison result;
服务器更新模块,用于根据所述比较结果,更新所述服务器集群中响应目标服务的服务器。The server update module is configured to update the server in the server cluster that responds to the target service according to the comparison result.
第三方面,本公开实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序;storage means for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述第一方面中任一项所述的服务器扩缩容方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the server scaling method according to any one of the first aspect above.
第四方面,本公开实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述第一方面中任一项所述的服务器扩缩容方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the server expansion and contraction method described in any one of the above-mentioned first aspects is implemented.
第五方面,本公开实施例提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,该计算机程序或指令被处理器执行时实现如上述第一方面中任一项所述的服务器扩缩容方法。In a fifth aspect, an embodiment of the present disclosure provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is executed by a processor, the server extension described in any one of the above first aspects is implemented. shrink method.
本公开实施例提供的服务器扩缩容方法、装置、设备、存储介质和程序产品,通过获取正在访问服务器集群的用户数量,将用户数量与预设数量阈值比较,即可实现服务器的扩缩容,无需获取服务器的性能参数,也不需要人工操作,简单快速,易于实现。The server expansion and contraction method, device, equipment, storage medium and program product provided by the embodiments of the present disclosure can realize the expansion and contraction of the server by obtaining the number of users who are accessing the server cluster and comparing the number of users with the preset number threshold , there is no need to obtain the performance parameters of the server, and no manual operation is required, which is simple, fast, and easy to implement.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1为本公开实施例中的一种服务器扩缩容方法的流程示意图;FIG. 1 is a schematic flowchart of a method for expanding and contracting a server in an embodiment of the present disclosure;
图2为本公开实施例中的一种服务器扩缩容方法的流程示意图;FIG. 2 is a schematic flowchart of a method for expanding and contracting a server in an embodiment of the present disclosure;
图3为本公开实施例中的一种服务器扩容的示意图;FIG. 3 is a schematic diagram of server expansion in an embodiment of the present disclosure;
图4为本公开实施例中的一种利用容器启动应用程序的示意图;FIG. 4 is a schematic diagram of using a container to start an application in an embodiment of the present disclosure;
图5为本公开实施例中的一种服务器扩缩容装置的结构示意图;FIG. 5 is a schematic structural diagram of a server expansion and contraction device in an embodiment of the present disclosure;
图6为本公开实施例中的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and/or executed in parallel. Additionally, method embodiments may include additional steps and/or omit performing illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment"; the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are used for illustrative purposes only, and are not used to limit the scope of these messages or information.
目前常用的服务器扩缩容方法,通常是获取各个服务器的性能参数,例如:CPU的使用率,磁盘利用率等,根据各个服务器的性能参数以及该服务器的参数阈值进行扩缩容。在服务器的使用过程中,由于权限设置等各方面原因,用户可能无法读取到服务器的各种性能参数。此时,只能通过人工操作,实现服务器的扩缩容。但是,由于人工操作的方式时间延迟较大,更难做到实时、快速地扩容与缩容。Currently, the commonly used server expansion and contraction methods are usually to obtain the performance parameters of each server, such as: CPU usage rate, disk utilization rate, etc., and perform expansion and contraction according to the performance parameters of each server and the parameter threshold of the server. During the use of the server, due to various reasons such as permission settings, users may not be able to read various performance parameters of the server. At this time, the expansion and contraction of the server can only be realized through manual operation. However, due to the large time delay of manual operation, it is more difficult to achieve real-time and rapid expansion and contraction.
本公开实施例中提供的服务器扩缩容方法、装置、设备和存储介质,通过获取正在访问服务器集群的用户数量,将用户数量与设定阈值比较,即可实现服务器的扩缩容,无需获取服务器的性能参数,也不需要人工操作,简单快速,易于实现。本公开实施例提供的服务器扩缩容方法可以应用于全真在线课堂服务器扩缩容等用户数量不固定,无法进行提前扩容的场景。The server expansion and contraction method, device, equipment and storage medium provided in the embodiments of the present disclosure can realize the expansion and contraction of the server by obtaining the number of users who are accessing the server cluster and comparing the number of users with the set threshold without obtaining The performance parameters of the server do not require manual operation, are simple, fast, and easy to implement. The server expansion and contraction method provided by the embodiments of the present disclosure can be applied to scenarios where the number of users is not fixed and cannot be expanded in advance, such as the expansion and contraction of the Quanzhen Online Classroom server.
下面对本公开实施例中可能涉及到的概念进行简单介绍。The concepts that may be involved in the embodiments of the present disclosure are briefly introduced below.
服务器集群(Cluster)是由两台或多台节服务器构成的一种松散耦合的计算节点集合,为用户提供网络服务或应用程序(包括数据库、Web服务和文件服务等)的单一客户视图,同时提供接近容错机的故障恢复能力。A server cluster (Cluster) is a loosely coupled collection of computing nodes composed of two or more node servers, providing users with a single customer view of network services or applications (including databases, Web services, and file services, etc.), while Provides fault recovery capabilities close to fault-tolerant machines.
服务器集群系统一般通过两台或多台节点服务器通过相应的硬件及软件互连,每个集群节点都是运行其自己进程的独立服务器。这些进程可以彼此通信,对网络客户机来说就像是形成了一个单一系统,协同起来向用户提供应用程序、系统资源和数据。除了作为单一系统提供服务,服务器集群系统还具有恢复服务器级故障的能力。服务器集群系统还可通过在集群中继续增加服务器的方式,从内部增加服务器的处理能力,并通过系统级的冗余提供固有的可靠性和可用性。A server cluster system generally interconnects two or more node servers through corresponding hardware and software, and each cluster node is an independent server running its own process. These processes can communicate with each other and appear to network clients as a single system, working together to provide applications, system resources, and data to users. In addition to serving as a single system, server cluster systems also have the ability to recover from server-level failures. The server cluster system can also increase the processing capacity of the server internally by continuing to add servers in the cluster, and provide inherent reliability and availability through system-level redundancy.
容器(Docker)是一种实现容器镜像构建、分发以及运行的引擎,开擎发人员和管理员基于Docker,可以使用容器来开发、部署并运行应用程序。Docker一般包含Docker客户端(Docker Client)以及Docker引擎(Docke Engine),Docker是在主机运行的管理镜像和容器的守护进程。Container (Docker) is an engine for building, distributing, and running container images. Based on Docker, developers and administrators can use containers to develop, deploy, and run applications. Docker generally includes a Docker client (Docker Client) and a Docker engine (Docke Engine). Docker is a daemon process that manages images and containers running on the host.
容器镜像是一个可执行的程序包,其包含运行应用程序所需的所有内容,如:程序的代码、库、环境变量和配置文件。容器镜像可在任意一个装有Docker引擎的环境中运行,当容器镜像运行后,会被创建为Docker容器。A container image is an executable package that contains everything needed to run an application, such as: the program's code, libraries, environment variables, and configuration files. The container image can run in any environment with the Docker engine installed. When the container image is running, it will be created as a Docker container.
具体地,容器镜像的内容通常包括元数据文件、配置文件以及至少一个镜像层文件,元数据文件可以是manifest.json文件,记录所有镜像层文件的元数据;配置文件用于记录镜像占用的内存大小、镜像包含的指令类型等;镜像层文件则可以是layer文件。Specifically, the content of a container image usually includes a metadata file, a configuration file, and at least one image layer file. The metadata file can be a manifest.json file, which records the metadata of all image layer files; the configuration file is used to record the memory occupied by the image. The size, the type of instructions contained in the image, etc.; the image layer file can be a layer file.
下面将结合附图,对本申请实施例提出的服务器扩缩容方法进行详细介绍。The server expansion and contraction method proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
图1为本公开实施例中的一种服务器扩缩容方法的流程图,本实施例可适用于对服务器进行扩容或者缩容的情况,该方法可以由服务器扩缩容装置执行,该服务器扩缩容装置可以采用软件和/或硬件的方式实现,该服务器扩缩容装置可配置于电子设备中。FIG. 1 is a flow chart of a method for expanding or shrinking a server in an embodiment of the present disclosure. This embodiment is applicable to the situation of expanding or shrinking a server. The method can be executed by a server expanding and shrinking device. The capacity shrinking device can be realized by means of software and/or hardware, and the server scaling device can be configured in electronic equipment.
如图1所示,本公开实施例提供的服务器扩缩容方法主要包括步骤S101-S103。As shown in FIG. 1 , the server expansion and contraction method provided by the embodiment of the present disclosure mainly includes steps S101-S103.
S101、获取当前正在访问服务器集群的第一用户数量。S101. Obtain the number of first users who are currently accessing the server cluster.
其中,第一用户数量可以理解为当前正在访问服务器集群的全部用户数量,也可以称为所述服务器集群的用户访问量。Wherein, the first number of users may be understood as the number of all users currently accessing the server cluster, and may also be referred to as the user access volume of the server cluster.
在本公开的一个实施方式中,获取当前正在访问服务器集群的第一用户数量,包括:实时获取服务器集群接收到的客户端发送的访问请求,如果服务器响应该访问请求后,客户端成功接入到该服务器集群中,将第一用户数量加一,作为新的第一用户数量。In an embodiment of the present disclosure, acquiring the number of first users who are currently accessing the server cluster includes: acquiring in real time the access request sent by the client received by the server cluster, and if the server responds to the access request, the client successfully accesses the server cluster In the server cluster, add one to the number of first users as the new number of first users.
在本公开的一个实施方式中,获取当前正在访问服务器集群的第一用户数量,还可以包括:实时监测上述客户端和服务器之间的连接关系,在监测到客户端与服务器之间的连接断开之后,将第一用户数量减一,作为新的第一用户数量。In an embodiment of the present disclosure, obtaining the first number of users who are currently accessing the server cluster may also include: monitoring the connection relationship between the client and the server in real time, and detecting that the connection between the client and the server is broken After opening, subtract one from the number of first users as the new number of first users.
其中,客户端与服务器之间的连接断开,可以包括:服务器集群接收到客户端发送的连接断开请求,则断开与该客户端之间的连接。还可以包括:客户端周期性地向服务器集群发送心跳消息,如果服务器集群在一个周期内未接收到该心跳消息,则确定客户端与服务器之间的连接断开。Wherein, disconnecting the connection between the client and the server may include: disconnecting the connection with the client when the server cluster receives a connection disconnection request sent by the client. It may also include: the client periodically sends a heartbeat message to the server cluster, and if the server cluster does not receive the heartbeat message within a cycle, it is determined that the connection between the client and the server is disconnected.
在本公开的一个实施方式中,获取当前正在访问服务器集群的第一用户数量,可以包括:如果服务器集群中包括统计用户访问量的功能,可以向所述服务器集群发送用户访问量获取请求,服务器响应该用户访问量获取请求后,返回正在访问服务器集群的第一用户数量。In one embodiment of the present disclosure, obtaining the first number of users who are currently accessing the server cluster may include: if the server cluster includes a function of counting user visits, a user visits acquisition request may be sent to the server cluster, and the server After responding to the request for obtaining user visits, return the number of first users who are accessing the server cluster.
需要说明的是,本公开实施例中,仅对正在访问服务器集群的第一用户数量的获取方式进行简单说明,而非限定,其他所有获取服务器集群用户访问量的方法,均在本公开的保护范围内。It should be noted that, in the embodiment of the present disclosure, only a brief description of the method of obtaining the number of first users who are accessing the server cluster is given without limitation. within range.
S102、将所述第一用户数量与预设数量阈值进行比较,得到比较结果。S102. Compare the first number of users with a preset number threshold to obtain a comparison result.
其中,预设数量阈值可以理解为用于表征服务器访问压力大小的一个数值。预设数量阈值可以是一个数值,也可以是多个数值,本公开的实施例不进行具体限定。Wherein, the preset quantity threshold can be understood as a numerical value used to characterize the magnitude of server access pressure. The preset quantity threshold may be a numerical value, or may be multiple numerical values, which are not specifically limited in this embodiment of the present disclosure.
在本公开的一个实施方式中,所述预设数量阈值包括第一数量阈值和第二数量阈值,其中,第一数量阈值大于第二数量阈值。第一数量阈值可以理解为用于表征服务器访问压力过大的数值,第二数量阈值可以理解为用于表征服务器访问压力过小的数值。此时,比较结果可以包括:第一用户数量大于或等于第一数量阈值,或,第一用户数量小于或等于第二数量阈值,或,第一用户数量大于第二数量阈值且小于第一数量阈值。In one embodiment of the present disclosure, the preset quantity threshold includes a first quantity threshold and a second quantity threshold, wherein the first quantity threshold is greater than the second quantity threshold. The first number threshold can be understood as a value used to represent excessive server access pressure, and the second number threshold can be understood as a value used to represent too low server access pressure. At this time, the comparison result may include: the first number of users is greater than or equal to the first number threshold, or, the first number of users is less than or equal to the second number threshold, or, the first number of users is greater than the second number threshold and smaller than the first number threshold.
在本公开的一个实施方式中,上述预设数量阈值可以根据实际情况,或者历史经验进行动态设定。例如:对于一个为中小学学生提供在线学习服务的服务器集群,由于中小学生在白天上网学习的人数较多,则可以将第一数量阈值设置小一些,这样,可以使得提前增加服务器集群中响应目标服务的服务器,避免短时间内涌入大量用户,导致的服务器集群瘫痪。由于中小学生在晚上,尤其是深夜,上网学习的人数较少,可以将第一数量阈值设置大一些,这样,可以避免提前增加更多的服务器,导致的资源浪费。In an embodiment of the present disclosure, the above preset quantity threshold may be dynamically set according to actual conditions or historical experience. For example: for a server cluster that provides online learning services for primary and secondary school students, since the number of primary and secondary school students studying online during the day is large, the first number threshold can be set smaller, so that the response target in the server cluster can be increased in advance The server of the service can avoid the influx of a large number of users in a short period of time, resulting in the paralysis of the server cluster. Since there are fewer primary and middle school students studying online at night, especially in the middle of the night, the first number threshold can be set larger. In this way, resource waste caused by adding more servers in advance can be avoided.
进一步的,可以获取各个课程对应的历史访问用户数量,各个课程对应的历史访问用户数量设置所述第一数量阈值。例如:数学课程时历史访问用户数量10万,生物课程时历史访问用户数量1万。可以在数学课程开始前一段时间,或者数学课程开始之后,将第一数量阈值设置小一些,这样,可以提前增加服务器集群中响应目标服务的服务器。在生物课程开始前一段时间,或者生物课程开始之后,将第一数量阈值设置大一些,这样,可以避免提前增加更多的服务器,导致的资源浪费。此外,还可以根据学生对授课老师的评价以及授课老师的受欢迎程度来设置预设数量阈值。例如:对于受欢迎程度较高的授课老师对应的课程时间段内,可以将第一数量阈值设置小一些,对于受欢迎程度较低的授课老师对应的课程时间段内,可以将第一数量阈值设置大一些。Further, the number of historical visiting users corresponding to each course may be obtained, and the first number threshold is set for the number of historical visiting users corresponding to each course. For example: 100,000 historically visited users for mathematics courses, and 10,000 historically visited users for biology courses. Some time before the start of the mathematics course, or after the start of the mathematics course, the first quantity threshold can be set smaller, so that the servers in the server cluster that respond to the target service can be increased in advance. Some time before the start of the biology course, or after the start of the biology course, set the first quantity threshold to be larger, so that the waste of resources caused by adding more servers in advance can be avoided. In addition, the preset quantity threshold can also be set according to the students' evaluation of the lecturer and the popularity of the lecturer. For example: for the course time period corresponding to the teacher with high popularity, the first quantity threshold can be set smaller; for the course time period corresponding to the teacher with low popularity, the first quantity threshold can be set Set larger.
在本公开的一个实施方式中,第一数量阈值可以根据服务器集群所提供服务的客户群体的使用习惯以及历史经验进行设定,具体设定方式,本公开实施例中不再具体赘述。In an embodiment of the present disclosure, the first quantity threshold may be set according to the usage habits and historical experience of the customer group provided by the server cluster. The specific setting method will not be described in detail in the embodiments of the present disclosure.
S103、根据所述比较结果,更新所述服务器集群中响应目标服务的服务器的数量。S103. According to the comparison result, update the number of servers in the server cluster that respond to the target service.
在本公开的一个实施方式中,在比较结果是第一用户数量大于或等于第一数量阈值时,增加所述服务器集群中响应目标服务的服务器的数量。在比较结果是第一用户数量小于或等于第二数量阈值时,减少所述服务器集群中响应目标服务的服务器的数量,其中,第二数量小于第一数量阈值。In one embodiment of the present disclosure, when the comparison result is that the number of first users is greater than or equal to a first number threshold, the number of servers responding to the target service in the server cluster is increased. When the comparison result is that the number of first users is less than or equal to a second number threshold, reduce the number of servers in the server cluster that respond to the target service, where the second number is smaller than the first number threshold.
在本公开的一个实施方式中,在比较结果是第一用户数量大于或等于第一数量阈值时,增加所述服务器集群中响应目标服务的服务器的数量,以使得提前增加服务器集群中响应目标服务的服务器的数量,避免短时间内涌入大量用户,导致的服务器集群瘫痪。In one embodiment of the present disclosure, when the comparison result is that the number of first users is greater than or equal to the first number threshold, the number of servers responding to the target service in the server cluster is increased, so that the number of servers responding to the target service in the server cluster is increased in advance. The number of servers can avoid the influx of a large number of users in a short period of time, causing the server cluster to be paralyzed.
在本公开的一个实施方式中,在比较结果是第一用户数量小于第二数量阈值时,减少所述服务器集群中响应目标服务的服务器的数量,以避免过多的服务器为少量的客户端提供服务,造成资源浪费。在比较结果是第一用户数量大于第二数量阈值且小于第一数量阈值时,保持服务器集群中响应目标服务的服务器的数量不变。In one embodiment of the present disclosure, when the comparison result is that the first number of users is less than the second number threshold, reduce the number of servers in the server cluster that respond to the target service, so as to prevent too many servers from providing services for a small number of clients. services, resulting in waste of resources. When the comparison result is that the first number of users is greater than the second number threshold and smaller than the first number threshold, keep the number of servers in the server cluster that respond to the target service unchanged.
现有技术中游戏类服务器集群或者购物类服务器集群大部分采用的是提前扩容方案,提前扩容方案是在服务器集群提供目标服务之前进行扩容方案。例如:在一个游戏竞赛的前一段时间,对游戏类服务器集群进行提前扩容,或者在一个购物促销的前一段时间提前对购物类服务器集群进行扩容。In the prior art, most of the game server clusters or shopping server clusters adopt the advance expansion scheme, which is to expand the capacity before the server cluster provides the target service. For example: a period of time before a game competition, the game server cluster is expanded in advance, or a shopping server cluster is expanded in advance of a shopping promotion.
上述提前扩容方案在扩容完成之后提供服务,但是在服务器集群提供服务的过程中,将无法进行服务器的扩容,一旦用户数量过大,将会直接导致客户端访问过慢,甚至服务器集群瘫痪。本公开实施例中提供的服务器扩缩容方法,可以在服务器集群提供目标服务期间,根据访问服务器集群的用户数量,实时调整提供目标服务的服务器数量,可实现服务器的扩缩容,避免用户数量过多导致的服务器集群瘫痪。The above-mentioned pre-expansion scheme provides services after the expansion is completed, but in the process of server clusters providing services, server expansion will not be possible. Once the number of users is too large, it will directly lead to slow client access and even server cluster paralysis. The server expansion and contraction method provided in the embodiment of the present disclosure can adjust the number of servers providing the target service in real time according to the number of users accessing the server cluster during the period when the server cluster provides the target service, so as to realize the expansion and contraction of the server and avoid the number of users The server cluster caused by too many is paralyzed.
在本公开的一个实施方式中,对上述服务器扩缩容方法进行了进一步的优化,如图2所示,优化后的服务器扩缩容方法主要包括步骤S201-S208。In an embodiment of the present disclosure, the above-mentioned server expansion and contraction method is further optimized. As shown in FIG. 2 , the optimized server expansion and contraction method mainly includes steps S201-S208.
S201、获取当前正在访问服务器集群的第一用户数量。S201. Obtain the number of first users who are currently accessing the server cluster.
本公开实施例中的步骤S201与上述实施例中的步骤S101执行流程相同,具体描述可参照上述实施例中的描述,本公开实施例中不再赘述。The execution process of step S201 in the embodiment of the present disclosure is the same as that of step S101 in the above-mentioned embodiment. For specific description, refer to the description in the above-mentioned embodiment, and details will not be repeated in the embodiment of the present disclosure.
S202、将所述第一用户数量与第一数量阈值进行比较。S202. Compare the first number of users with a first number threshold.
在本公开实施例中,将第一用户数量与所述第一数量阈值进行比较,比较两个数值的大小。数值比较的方法本公开实施例中不再进行具体限定。In the embodiment of the present disclosure, the first number of users is compared with the first number threshold, and the magnitudes of the two numbers are compared. The method of numerical comparison is not specifically limited in the embodiments of the present disclosure.
S203、响应所述第一用户数量大于或等于所述第一数量阈值,增加所述服务器集群中响应目标服务的服务器的数量并利用更新后的服务器集群执行目标服务。S203. In response to the first number of users being greater than or equal to the first number threshold, increase the number of servers in the server cluster that respond to the target service and use the updated server cluster to execute the target service.
其中,第一数量阈值为表征服务器集群的访问压力过大的数值。其中,第一数量阈值可以根据实际情况进行设置。换句话说,如果第一用户数量大于第一数量阈值,即当前正在访问服务器集群的用户数量大于第一数量阈值,则表明当前访问服务器集群的用户数量过多,服务器集群的访问压力过大,此时需要增加响应目标服务的服务器的数量。Wherein, the first quantity threshold is a numerical value representing excessive access pressure of the server cluster. Wherein, the first quantity threshold may be set according to actual conditions. In other words, if the first number of users is greater than the first number threshold, that is, the number of users currently accessing the server cluster is greater than the first number threshold, it indicates that the number of users currently accessing the server cluster is too large, and the access pressure of the server cluster is too high. At this time, it is necessary to increase the number of servers responding to the target service.
进一步的,所述第一数量阈值由服务器集群满载时总的用户访问量确定。例如:服务器集群满载时,可接收的用户数量是100个,设定实际用户数量达到满载的70%时,表明服务器集群的访问压力过大,此时,第一数量阈值是70。Further, the first quantity threshold is determined by the total user visits when the server cluster is fully loaded. For example: when the server cluster is fully loaded, the number of users that can be received is 100. When the actual number of users reaches 70% of the full load, it indicates that the access pressure of the server cluster is too high. At this time, the first number threshold is 70.
其中,响应目标服务,可以理解为服务器集群提供的目标服务。增加所述服务器集群中响应目标服务的服务器的数量,可以是指当服务器集群接收到新的用户访问请求时,将该用户对应的客户端接入新增服务器,以使得新增服务器为客户端提供目标服务。Wherein, responding to the target service may be understood as the target service provided by the server cluster. Increasing the number of servers responding to the target service in the server cluster may refer to that when the server cluster receives a new user access request, the client corresponding to the user is connected to the newly added server, so that the newly added server is a client Provide targeted services.
如图3所示,在服务器集群31中原先有两个服务器(服务器A和服务器B)用于响应目标服务,在第一用户数量增加大于所述第一数量阈值,未避免访问量增加导致服务器崩溃,在服务器集群31中增加一个新增服务器(服务器C),该新增服务器(服务器C)和服务器集群中原先有的两个服务器(服务器A和服务器B),共同响应于目标服务。As shown in Figure 3, originally there are two servers (server A and server B) in the
在本公开的一个实施方式中,所述增加所述服务器集群中响应目标服务的服务器的数量并利用更新后的服务器集群执行目标服务,包括:将所述服务器集群中处于空闲状态的服务器确定为新增服务器;生成服务器开启指令;基于所述服务器开启指令开启所述新增服务器;利用容器技术在所述新增服务器中启动目标应用程序;利用包括新增服务器的所述服务器集群执行所述目标服务。In one embodiment of the present disclosure, the increasing the number of servers in the server cluster that respond to the target service and using the updated server cluster to execute the target service includes: determining the idle server in the server cluster as Adding a new server; generating a server start command; starting the new server based on the server start command; using container technology to start a target application in the new server; using the server cluster including the new server to execute the target service.
在本公开实施例中,空闲状态的服务器是指服务器集群中未响应目标服务的任意一个服务器,该服务器可以是处于关闭状态,不响应任何服务,也可以是正在响应其他优先级低于目标服务优先级的服务,例如:正在响应文件管理,或者程序管理的服务器。其中,新增服务器是指即将要开启并安装目标应用程序,以响应目标服务的服务器。服务器开启指令是指用来控制新增服务器开启的指令。In the embodiments of the present disclosure, an idle server refers to any server in the server cluster that does not respond to the target service. The server may be in a closed state and not respond to any service, or it may be responding to other services with a lower priority than the target service. Priority services, for example: servers that are responding to file management, or program management. Wherein, the newly added server refers to a server that is about to start and install the target application program to respond to the target service. The server start command refers to a command used to control the start of the newly added server.
在本公开的一个实施方式中,响应于将处于空闲状态的服务器确定为新增服务器,生成服务器开启指令。In one embodiment of the present disclosure, in response to determining that the server in the idle state is a newly added server, a server start instruction is generated.
在本公开的一个实施方式中,所述新增服务器响应于该服务器开启指令,自动开启。其中,开启所述新增服务器至少包括:接通电源,加载所述新增服务器的输入输出系统、读取新增服务器的主引导记录(MBR,Master Boot Record),加载新增服务器的内核等。In an embodiment of the present disclosure, the newly added server is automatically started in response to the server start instruction. Wherein, opening the newly added server at least includes: turning on the power, loading the input and output system of the newly added server, reading the master boot record (MBR, Master Boot Record) of the newly added server, loading the kernel of the newly added server, etc. .
其中,容器技术是一种轻量级的虚拟化技术,是一种轻量级、可移植、自包含的软件打包技术,使应用程序可以在几乎任何地方以相同的方式运行。利用容器技术启动目标应用程序,可以理解为利用容器技术将目标应用程序在新增服务器中启动并运行。Among them, container technology is a lightweight virtualization technology, a lightweight, portable, and self-contained software packaging technology that enables applications to run in the same way almost anywhere. Using container technology to start a target application program can be understood as using container technology to start and run the target application program on a newly added server.
其中,利用容器技术在所述新增服务器中启动目标应用程序,服务器上需要预先安装有容器集群管理工具和Docker工具。需要部署服务器代码时,首先启动所述容器集群管理工具,比如Kubernetes,服务器接收用于管理Docker容器的容器集群管理工具的启动指令,所述启动指令由响应到开启所述新增服务器的操纵后获取。Wherein, using the container technology to start the target application program in the added server, the server needs to be pre-installed with a container cluster management tool and a Docker tool. When the server code needs to be deployed, first start the container cluster management tool, such as Kubernetes, and the server receives the start command of the container cluster management tool used to manage the Docker container, and the start command responds to the operation of starting the new server Obtain.
其中,Docker是一个应用容器引擎,通过Docker可以将应用程序以及应用程序运行的依赖包集合到一个可移植的容器中,Docker由镜像(英文为Image)、容器(英文为Container)、仓库(英文为Repository)三大核心组成。Among them, Docker is an application container engine. Through Docker, the application program and the dependent packages of the application program can be assembled into a portable container. Docker consists of a mirror (Image in English), a container (Container in English), and a warehouse (Container in English). It is composed of three cores of Repository).
其中,目标服务是指服务器集群当前正在提供的服务,例如:线上课堂等等。Wherein, the target service refers to the service currently being provided by the server cluster, such as online classroom and so on.
在本公开实施例中,利用容器化技术实在服务器扩容,可以实现自动服务器集群自动扩容,避免人工扩容,提高扩容效率。In the embodiment of the present disclosure, the containerization technology is used to expand the server capacity, which can realize the automatic expansion of the server cluster, avoid manual expansion, and improve the expansion efficiency.
在本公开的一个实施方式中,所述利用容器技术在所述新增服务器中启动目标应用程序,包括:在所述新增服务器中创建第一容器和第二容器;利用所述第一容器下载所述目标应用程序所需的模组文件,并将所述模组文件存储在本地磁盘;利用所述第二容器下载所述目标应用程序所需的主程序文件;通过数据卷同步方式从本地磁盘中获取所述模组文件;基于主程序文件和所述模组文件启动目标应用程序。In an embodiment of the present disclosure, using container technology to start the target application program in the added server includes: creating a first container and a second container in the added server; using the first container downloading the module file required by the target application program, and storing the module file in a local disk; using the second container to download the main program file required by the target application program; The module file is obtained from the local disk; and the target application program is started based on the main program file and the module file.
其中,所述模组文件可以是指目标应用程序中的mod文件,以全真课程模组为例,全真课程模组就是将全真课程中可能存在的虚拟教具、虚拟桌椅以及虚拟角色,例如:虚拟老师,虚拟学生等等。的。Wherein, the module file may refer to the mod file in the target application program. Taking the Quanzhen course module as an example, the Quanzhen course module is to combine the virtual teaching aids, virtual tables and chairs, and virtual characters that may exist in the Quanzhen course. , such as: virtual teacher, virtual student, etc. of.
利用所述第二容器下载所述目标应用程序所需的主程序文件,包括:利用第二容器拉取主程序镜像。其中,所述镜像由人工创建,或者从镜像仓库中获取,并将所述主程序镜像创建在所述Dockerfile之上。在一个实施例中,所述拉取主程序镜像的步骤包括:接收创建主程序镜像;或者从镜像仓库中获取主程序镜像。具体地,镜像,英文为Image,是静态的,是容器中被互相分享的文件的映射,但不能被操作。构建Image,也就是构建镜像。主程序镜像是容器运行时的只读模板,每一个镜像由一系列的层(layers)组成。Using the second container to download the main program file required by the target application includes: using the second container to pull the main program image. Wherein, the image is manually created or obtained from a mirror warehouse, and the main program image is created on the Dockerfile. In one embodiment, the step of pulling the main program image includes: receiving and creating the main program image; or obtaining the main program image from a mirror repository. Specifically, the image, which is Image in English, is static and is a mapping of files shared with each other in the container, but it cannot be manipulated. Build an Image, that is, build a mirror image. The main program image is a read-only template for the container runtime, and each image is composed of a series of layers (layers).
其中,数据卷同步方式是指多个容器之间同步数据的一种方式。具体的,将第一容器通过指令volumes-from挂载到第二容器上的某个目录,这个时候就实现了两个容器之间数据同步,第二容器就是数据卷容器。Wherein, the data volume synchronization method refers to a method for synchronizing data among multiple containers. Specifically, the first container is mounted to a certain directory on the second container through the command volumes-from. At this time, the data synchronization between the two containers is realized, and the second container is the data volume container.
基于主程序文件和所述模组文件启动目标应用程序,可以理解为:容器基于主程序文件和所述模组文件运行目标应用程序。Starting the target application program based on the main program file and the module file may be understood as: the container runs the target application program based on the main program file and the module file.
具体的,如图4所示,通过第一容器下载模组文件,通过第二容器拉取主程序的镜像文件,然后第二容器通过数据卷同步的方式获取模组文件,并基于镜像文件和模组文件启动目标应用程序。Specifically, as shown in Figure 4, the module file is downloaded through the first container, the image file of the main program is pulled through the second container, and then the second container obtains the module file through data volume synchronization, and based on the image file and The mod file launches the target application.
现有技术中,模组文件保存在镜像文件中,即镜像文件中既包括主程序文件也包括模组文件,这样会造成镜像文件的大小较大,通过一个容器来拉取镜像文件时,在同样网速下,会降低镜像文件的获取速度,增加拉取镜像文件的时长。在本公开实施例中,通过第一容器下载模组文件,通过第二容器拉取主程序文件,即两个不同的容器分别获取模组文件和主程序文件,可以加快文件的获取速度,减少拉取镜像文件的时长。In the prior art, the module file is stored in the image file, that is, the image file includes both the main program file and the module file, which will cause the size of the image file to be large. When the image file is pulled through a container, the Under the same network speed, the acquisition speed of the image file will be reduced and the time for pulling the image file will be increased. In the embodiment of the present disclosure, the module file is downloaded through the first container, and the main program file is pulled through the second container, that is, two different containers obtain the module file and the main program file respectively, which can speed up the file acquisition speed and reduce The duration of pulling the image file.
S204、将所述第一用户数量与第二数量阈值进行比较。S204. Compare the first number of users with a second number threshold.
在本公开实施例中,第一用户数量与第二数量阈值进行比较的方式,本公开实施例中不再具体限定。In the embodiment of the present disclosure, the manner of comparing the first number of users with the second number threshold is not specifically limited in the embodiment of the present disclosure.
S205、响应所述第一用户数量小于或等于所述第二数量阈值,减少所述服务器集群中响应目标服务的服务器的数量并利用更新后的服务器集群执行目标服务,其中,所述第二数量阈值小于所述第一数量阈值。S205. Responding that the first number of users is less than or equal to the second number threshold, reduce the number of servers in the server cluster that respond to the target service and use the updated server cluster to execute the target service, wherein the second number The threshold is less than the first number threshold.
其中,如果第一用户数量小于第二数量阈值,即当前正在访问服务器集群的用户数量小于第二数量阈值,则表明当前访问服务器集群的用户数量过小,此时需要减少响应目标服务的服务器的数量,避免资源浪费。Wherein, if the first number of users is less than the second number threshold, that is, the number of users currently accessing the server cluster is less than the second number threshold, it indicates that the number of users currently accessing the server cluster is too small, and it is necessary to reduce the number of servers responding to the target service. Quantity, to avoid waste of resources.
需要说明的是,本公开实施例中不限定步骤S202和步骤S204-之间的执行先后顺序。可以先执行S202之后,再执行S204。也可以先执行S204之后,再执行S202,还可以S202和S204同时执行。It should be noted that, in the embodiment of the present disclosure, the order of execution between step S202 and step S204- is not limited. S204 may be executed after S202 is executed first. S202 may also be executed after S204 is executed first, or S202 and S204 may be executed simultaneously.
在本公开的一个实施方式中,响应所述第一用户数量小于所述第二数量阈值,减少所述服务器集群中响应目标服务的服务器的数量包括:针对所述服务器集群中的各个服务器,获取各服务器的当前访问用户量;实时监控当前访问用户量最小的目标服务器对应的目标访问用户数量;响应所述目标访问用户数量低于第三数量阈值时,关闭所述目标服务器。In an embodiment of the present disclosure, in response to the first number of users being less than the second number threshold, reducing the number of servers in the server cluster that respond to the target service includes: for each server in the server cluster, obtaining the number of current visiting users of each server; real-time monitoring of the number of target visiting users corresponding to the target server with the smallest number of current visiting users; and shutting down the target server when the number of target visiting users is lower than the third number threshold.
在本公开实施例中,当前访问用户量的个数与服务器集群中正在响应目标服务的服务器的个数相同,且一一对应。例如:服务器集群中有三个服务器响应目标服务,那么得到三个当前访问用户量。例如:服务器A对应的当前访问用户量m1,服务器B对应的当前访问用户量m2,服务器C对应的当前访问用户量m3。In the embodiment of the present disclosure, the number of current visiting users is the same as the number of servers responding to the target service in the server cluster, and there is a one-to-one correspondence. For example: if there are three servers responding to the target service in the server cluster, then three current visiting users are obtained. For example: the current number of visiting users m1 corresponding to server A, the current number of visiting users m2 corresponding to server B, and the current number of visiting users m3 corresponding to server C.
将三个当前访问用户量m1,m2和m3进行比较,得到数值最小的当前访问用户量。将数值最小的当前访问用户量m3对应的服务器C确定为目标服务器。Compare the three current visiting user quantities m1, m2 and m3 to obtain the current visiting user quantity with the smallest numerical value. The server C corresponding to the current number of visiting users m3 with the smallest numerical value is determined as the target server.
在本公开实施例中,随着老用户与服务器集群之间的断开连接(例如:老用户退出游戏客户端),随着新用户与服务器集群之间的建立连接(例如:新用户登录游戏客户端),访问服务器集群的用户数量不断变化。In the embodiment of the present disclosure, with the disconnection between the old user and the server cluster (for example: the old user exits the game client), as the connection between the new user and the server cluster is established (for example: the new user logs in the game client), the number of users accessing the server cluster is constantly changing.
在本公开实施例中,确定目标服务器之后,如果接收到客户端发送的访问请求,则将该访问请求对应的客户端与非目标服务器建立连接,目标服务器不再接收客户端的访问请求,即不再与新的客户端建立通信连接。随着时间不断增加,访问目标服务器的客户端逐渐离开,访问目标服务器的用户数量逐渐减少。In the embodiment of the present disclosure, after the target server is determined, if an access request sent by the client is received, the client corresponding to the access request will establish a connection with the non-target server, and the target server will no longer receive the client's access request, that is, it will not Then establish a communication connection with the new client. As time continues to increase, clients accessing the target server gradually leave, and the number of users accessing the target server gradually decreases.
其中,设定阈值可以根据实际情况进行设置,可选的,设定阈值为0。Wherein, the set threshold can be set according to the actual situation, and optionally, the set threshold is 0.
在本公开的一个实施方式中,在访问所述目标服务器的目标访问用户数量下降到0时,表明没有客户端正在访问目标服务器,此时关闭目标服务器,目标服务器不再响应目标服务。In one embodiment of the present disclosure, when the number of target accessing users accessing the target server drops to 0, it indicates that no client is accessing the target server. At this time, the target server is shut down, and the target server no longer responds to the target service.
在本公开实施例中,当需要减少响应目标服务的服务器时,根据访问服务器的用户数量,确定需要关闭的服务器,当该服务器中访问的用户数量降低到0后,关闭该服务器,以避免过多服务器响应目标服务,造成资源浪费。In the embodiment of the present disclosure, when it is necessary to reduce the number of servers that respond to the target service, the server that needs to be shut down is determined according to the number of users accessing the server, and when the number of users visiting the server is reduced to 0, the server is shut down to avoid excessive Multiple servers respond to target services, resulting in waste of resources.
图5为本公开实施例中的一种服务器扩缩容装置的结构示意图,本实施例可适用于对服务器进行扩容或者缩容的情况,该服务器扩缩容装置可以采用软件和/或硬件的方式实现,该服务器扩缩容装置可配置于电子设备中。FIG. 5 is a schematic structural diagram of a server expansion and contraction device in an embodiment of the present disclosure. This embodiment is applicable to the situation of expanding or reducing the capacity of a server. The server expansion and contraction device can use software and/or hardware Realized in a manner, the server expansion and contraction device can be configured in electronic equipment.
如图5所示,本公开实施例提供的服务器扩缩容装置主要包括:第一用户数量获取模块51、用户数量比较模块52和服务器更新模块53。As shown in FIG. 5 , the server expansion and contraction device provided by the embodiment of the present disclosure mainly includes: a first user
其中,第一用户数量获取模块51,用于获取当前正在访问服务器集群的第一用户数量;用户数量比较模块52,用于将所述第一用户数量与预设数量阈值进行比较,得到比较结果;服务器数量更新模块53,用于根据所述比较结果,更新所述服务器集群中响应目标服务的服务器。Wherein, the first user
本公开涉及一种服务器扩缩容装置,用于执行如下流程:获取当前正在访问服务器集群的第一用户数量;将所述第一用户数量与预设数量阈值进行比较,得到比较结果;根据所述比较结果,更新所述服务器集群中响应目标服务的服务器。本公开实施例通过获取正在访问服务器集群的用户数量,将用户数量与设定数量阈值比较,即可实现服务器的扩缩容,无需获取服务器的性能参数,也不需要人工操作,简单快速,易于实现。The present disclosure relates to a server expansion and contraction device, which is used to execute the following process: obtain the first number of users who are currently accessing the server cluster; compare the first number of users with a preset number threshold to obtain a comparison result; according to the Based on the comparison result, the server in the server cluster that responds to the target service is updated. In the embodiments of the present disclosure, by obtaining the number of users who are accessing the server cluster, and comparing the number of users with the set number threshold, the expansion and contraction of the server can be realized, without obtaining the performance parameters of the server, and without manual operation, which is simple, fast, and easy. accomplish.
在本公开的一个实施方式中,所述服务器更新模块,包括:第一比较单元,用于将所述第一用户数量与第一数量阈值进行比较;服务器增加单元,用于响应所述第一用户数量大于或等于所述第一数量阈值,增加所述服务器集群中响应目标服务的服务器的数量并利用更新后的服务器集群执行目标服务;和/或,第一比较单元,用于将所述第一用户数量与第二数量阈值进行比较;服务器减少单元,用于响应所述第一用户数量小于或等于所述第二数量阈值,减少所述服务器集群中响应目标服务的服务器的数量并利用更新后的服务器集群执行目标服务,其中,所述第二数量阈值小于所述第一数量阈值。In an embodiment of the present disclosure, the server update module includes: a first comparing unit, configured to compare the first number of users with a first number threshold; a server adding unit, configured to respond to the first The number of users is greater than or equal to the first number threshold, increasing the number of servers responding to the target service in the server cluster and using the updated server cluster to execute the target service; and/or, the first comparison unit is used to compare the The first number of users is compared with the second number threshold; the server reduction unit is configured to reduce the number of servers responding to the target service in the server cluster and use The updated server cluster executes the target service, wherein the second quantity threshold is smaller than the first quantity threshold.
在本公开的一个实施方式中,服务器增加单元,包括:新增服务器确定子单元,用于将所述服务器集群中处于空闲状态的服务器确定为新增服务器;开启指令生成子单元,用于生成服务器开启指令;新增服务器开启子单元,用于基于所述服务器开启指令开启所述新增服务器;应用程序启动子单元,用于利用容器技术在所述新增服务器中启动目标应用程序;目标服务执行子单元,用于利用包括新增服务器的所述服务器集群执行所述目标服务。In one embodiment of the present disclosure, the server adding unit includes: a newly added server determining subunit, configured to determine a server in an idle state in the server cluster as a newly added server; a start command generating subunit, configured to generate A server start instruction; a newly added server start subunit is used to start the new server based on the server start instruction; an application program start subunit is used to use container technology to start a target application in the new server; the target A service executing subunit, configured to execute the target service by using the server cluster including the newly added server.
在本公开的一个实施方式中,应用程序启动子单元,包括:容器创建单元,用于所述在所述新增服务器中创建第一容器和第二容器;模组文件下载单元,用于利用所述第一容器下载所述目标应用程序所需的模组文件,并将所述模组文件存储在本地磁盘;主程序文件下载单元,用于利用所述第二容器下载所述目标应用程序所需的主程序文件;模组文件同步单元,用于通过数据卷同步方式从本地磁盘中获取所述模组文件;应用程序启动单元,用于基于主程序文件和所述模组文件启动目标应用程序。In one embodiment of the present disclosure, the application launching subunit includes: a container creating unit, used for creating the first container and the second container in the newly added server; a module file downloading unit, used for using The first container downloads the module file required by the target application program, and stores the module file in a local disk; the main program file download unit is used to download the target application program using the second container The required main program file; the module file synchronization unit is used to obtain the module file from the local disk through data volume synchronization; the application program startup unit is used to start the target based on the main program file and the module file application.
在本公开的一个实施方式中,服务器减少单元,包括:当前访问用户量获取子单元,用于针对所述服务器集群中的各个服务器,获取各服务器的当前访问用户量;目标访问用户数量监控子单元,用于实时监控当前访问用户量最小的目标服务器对应的目标访问用户数量;目标服务器关闭子单元,用于响应所述目标访问用户数量低于第三数量阈值时,关闭所述目标服务器。In one embodiment of the present disclosure, the server reduction unit includes: a subunit for obtaining the number of current visiting users, for each server in the server cluster, to obtain the current number of visiting users of each server; a subunit for monitoring the number of target visiting users The unit is configured to monitor in real time the number of target access users corresponding to the target server with the smallest number of current access users; the target server shutdown subunit is configured to shut down the target server in response to the number of target access users being lower than a third threshold.
在本公开的一个实施方式中,服务器减少单元,还包括:客户端接入子单元,用于实时监控当前访问用户量最小的目标服务器对应的目标访问用户数量,之前如果接收到客户端发送的访问请求,则将所述访问请求对应的客户端接入非目标服务器,其中,所述非目标服务器是指所述服务器集群中除当前访问用户量最小的目标服务器之外的其他服务器。In an embodiment of the present disclosure, the server reduction unit further includes: a client access subunit, configured to monitor in real time the number of target access users corresponding to the target server with the smallest number of current access users. access request, the client corresponding to the access request is connected to a non-target server, wherein the non-target server refers to other servers in the server cluster except the target server with the smallest number of currently accessing users.
本公开实施例提供的服务器扩缩容装置,可执行本公开方法实施例所提供的服务器扩缩容方法中所执行的步骤,具备执行步骤和有益效果此处不再赘述。The server expansion and contraction device provided by the embodiment of the present disclosure can execute the steps performed in the server expansion and contraction method provided by the method embodiment of the present disclosure, and has the execution steps and beneficial effects and will not be repeated here.
图6为本公开实施例中的一种电子设备的结构示意图。下面具体参考图6,其示出了适于用来实现本公开实施例中的电子设备600的结构示意图。本公开实施例中的电子设备600可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、可穿戴终端设备等等的移动终端以及诸如数字TV、台式计算机、智能家居设备等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring to FIG. 6 in detail below, it shows a schematic structural diagram of an
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理以实现如本公开所述的实施例的服务器扩缩容方法。在RAM 603中,还存储有终端设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, an
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许终端设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的终端设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 605:
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码,从而实现如上所述的服务器扩缩容方法。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program includes program code for executing the method shown in the flow chart, thereby realizing the above The server expansion and contraction method. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 608 , or from
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(Hyper Text TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future network protocols such as HTTP (Hyper Text Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium The communication (eg, communication network) interconnections. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该终端设备执行时,使得该终端设备:获取当前正在访问服务器集群的第一用户数量;将所述第一用户数量与预设数量阈值进行比较,得到比较结果;根据所述比较结果,更新所述服务器集群中响应目标服务的服务器。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the terminal device, the terminal device: obtains the number of first users who are currently accessing the server cluster; The quantity is compared with the preset quantity threshold to obtain a comparison result; according to the comparison result, the server responding to the target service in the server cluster is updated.
可选的,当上述一个或者多个程序被该终端设备执行时,该终端设备还可以执行上述实施例所述的其他步骤。Optionally, when the above one or more programs are executed by the terminal device, the terminal device may also perform other steps described in the foregoing embodiments.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principle. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, while operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or to be performed in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while the above discussion contains several specific implementation details, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210993475.XA CN115292048A (en) | 2022-08-18 | 2022-08-18 | Server capacity expansion and reduction method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210993475.XA CN115292048A (en) | 2022-08-18 | 2022-08-18 | Server capacity expansion and reduction method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115292048A true CN115292048A (en) | 2022-11-04 |
Family
ID=83829213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210993475.XA Pending CN115292048A (en) | 2022-08-18 | 2022-08-18 | Server capacity expansion and reduction method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115292048A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116227448A (en) * | 2022-12-05 | 2023-06-06 | 中国联合网络通信集团有限公司 | A smart form generation method and smart form system |
CN118897717A (en) * | 2024-10-09 | 2024-11-05 | 深圳市智慧城市科技发展集团有限公司 | Containerized data synchronization method, device, equipment, medium and product |
-
2022
- 2022-08-18 CN CN202210993475.XA patent/CN115292048A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116227448A (en) * | 2022-12-05 | 2023-06-06 | 中国联合网络通信集团有限公司 | A smart form generation method and smart form system |
CN118897717A (en) * | 2024-10-09 | 2024-11-05 | 深圳市智慧城市科技发展集团有限公司 | Containerized data synchronization method, device, equipment, medium and product |
CN118897717B (en) * | 2024-10-09 | 2024-12-13 | 深圳市智慧城市科技发展集团有限公司 | Containerized data synchronization method, device, equipment, medium and product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12019652B2 (en) | Method and device for synchronizing node data | |
CN115292048A (en) | Server capacity expansion and reduction method, device, equipment and storage medium | |
CN115344688B (en) | Business data display method and device, electronic equipment and computer readable medium | |
CN107291481A (en) | A kind of component update method, device and system | |
CN111274503B (en) | Data processing methods, devices, electronic equipment and computer-readable media | |
CN111400625A (en) | Page processing method and device, electronic equipment and computer readable storage medium | |
CN119883296A (en) | Acceleration application and sub-package installation | |
US11263297B2 (en) | Dynamic insertion of variablized secrets in a pipeline integration system | |
KR20230079348A (en) | Cloud code development system, method, device, device and storage medium | |
CN112416303B (en) | Software development kit hot repair method and device and electronic equipment | |
EP3756094B1 (en) | Inter device transfer of resources for executing application update cycles | |
CN111857720B (en) | User interface state information generation method and device, electronic equipment and medium | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
WO2022017458A1 (en) | Data synchronization method and apparatus, electronic device, and medium | |
CN112631608B (en) | Compilation method, device, terminal and storage medium | |
CN118132204A (en) | A container management method, device, equipment and medium | |
US11838207B2 (en) | Systems for session-based routing | |
CN112636971B (en) | Service degradation method and device, electronic equipment and storage medium | |
WO2023056841A1 (en) | Data service method and apparatus, and related product | |
CN116383266A (en) | A cloud resource retrieval method, device, equipment and storage medium | |
CN111831655B (en) | Data processing method, device, medium and electronic equipment | |
CN115485677A (en) | Secure data replication in a distributed data storage environment | |
CN111026504A (en) | Processing method and device for configuring instruction for acquiring processor information in virtual machine, CPU chip, system on chip and computer | |
CN118819788B (en) | Cluster scheduling method, device and equipment | |
CN115080143B (en) | Page resource preloading method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |