CN111625195A - Method and device for server capacity expansion - Google Patents

Method and device for server capacity expansion Download PDF

Info

Publication number
CN111625195A
CN111625195A CN202010455007.8A CN202010455007A CN111625195A CN 111625195 A CN111625195 A CN 111625195A CN 202010455007 A CN202010455007 A CN 202010455007A CN 111625195 A CN111625195 A CN 111625195A
Authority
CN
China
Prior art keywords
machine
parameters
system environment
expanded
server cluster
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.)
Granted
Application number
CN202010455007.8A
Other languages
Chinese (zh)
Other versions
CN111625195B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010455007.8A priority Critical patent/CN111625195B/en
Publication of CN111625195A publication Critical patent/CN111625195A/en
Application granted granted Critical
Publication of CN111625195B publication Critical patent/CN111625195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Abstract

The application discloses a method and a device for server capacity expansion, and relates to the field of computer vision. The specific implementation scheme is as follows: responding to the capacity expansion requirement of the server cluster, determining the service type corresponding to the server cluster, wherein the service type represents the type of the data service provided by the server cluster for the business party; determining system environment parameters of a machine to be expanded based on the service type; configuring the system environment of the machine to be expanded based on the system environment parameters; and adding the machine to be expanded, which is configured in the system environment, to the server cluster. Based on the service type, the system environment of the machine to be expanded is configured in a targeted manner, the preparation work before the machine to be expanded is online can be completed without reinstalling the system, the time consumption of the server expansion process is reduced, and the efficiency is improved.

Description

Method and device for server capacity expansion
Technical Field
The application discloses a method and a device for server capacity expansion, relates to the technical field of computers, and particularly relates to a cloud computing technology.
Background
Due to low cost and high performance, the Linux server is widely applied in the field of online services. When online resources (e.g., computing power of the server, network bandwidth, disk space of the server, etc.) are insufficient, the server needs to expand the capacity of the server to meet the needs of the service party.
In the related art, in order to ensure a clean machine environment, a common server capacity expansion method usually includes a step of reinstalling a system of a machine to be expanded.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for server capacity expansion.
According to a first aspect, there is provided a method for server capacity expansion, the method comprising: responding to the capacity expansion requirement of the server cluster, determining the service type corresponding to the server cluster, wherein the service type represents the type of the data service provided by the server cluster for the business party; determining system environment parameters of a machine to be expanded based on the service type; configuring the system environment of the machine to be expanded based on the system environment parameters; and adding the machine to be expanded, which is configured in the system environment, to the server cluster.
According to a second aspect, there is provided an apparatus for server capacity expansion, the apparatus comprising: the capacity expansion demand detection module is configured to respond to the capacity expansion demand of the server cluster, determine the service type corresponding to the server cluster, and represent the type of the data service provided by the server cluster for the business party; the system environment determining module is configured to determine system environment parameters of the machine to be expanded based on the service type; the system environment configuration module is configured to configure the system environment of the machine to be expanded based on the system environment parameters; and the capacity expansion machine online module is configured to add the machine to be subjected to capacity expansion after the system environment configuration is completed to the server cluster.
According to a third aspect, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for server capacity expansion.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the above method for server capacity expansion.
According to the technology of the application, the problem that the dependency of server capacity expansion on the step of reinstalling the system of the machine to be expanded in the related technology is too strong is solved, the system environment of the machine to be expanded is configured in a targeted mode based on the service type, the preparation work before the machine to be expanded is online can be completed without reinstalling the system, time consumed in the capacity expansion process of the server is shortened, and efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
FIG. 2 is a schematic diagram of a first embodiment of a method for server capacity expansion according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for server hosting according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a second embodiment of a method for server capacity expansion according to an embodiment of the present application;
FIG. 5 is a block diagram of an electronic device that may be used to implement the method for server capacity expansion of an embodiment of the present application;
fig. 6 is a scene diagram of a computer class storage medium in which an embodiment of the present application can be implemented.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 illustrates an example system architecture 100 for a method for server capacity expansion or an apparatus for server capacity expansion to which embodiments of the present application may be applied.
As shown in fig. 1, system architecture 100 may include terminal devices 101, 102, 103, network 104, and server 105, as shown in fig. 1. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The business party may utilize the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to obtain the data service of the server (for example, may be a data storage service provided by the server, a network parsing service, a network hard disk service, a web service, etc.), the business party may send the data that the business party wants to store to the server 105, store in the disk space of the server 105, and then the business party interacts with the server 105 through the terminal devices to operate on the data stored in the disk space of the server 105, for example, may delete the data, add new data, etc.
In general, the server 105 is a server cluster including a plurality of machines, including a current server cluster 106 that is providing services for a business party and a machine 107 to be expanded that has not joined the current server cluster. The performance of the server 105 corresponds to the sum of the performances of the machines in the current server cluster 106, and as the service time increases, the data volume of the service party also gradually increases, and the requirements for various performances (such as storage capacity and operation capacity) of the server also gradually increase, so that a machine 107 to be expanded is further provided outside the server cluster 106, and when the performance of the current server cluster 106 cannot meet the requirements of the service party, the machine 107 to be expanded is added to the current server cluster to improve the performance of the server 105, which is the expansion of the server.
The main execution body of the method for server capacity expansion is the machine 107 to be expanded, and accordingly, the device for server capacity expansion may be disposed in the machine 107 to be expanded. At this time, the current server cluster 106 in the server 105 is used to provide data service for the business side and interact with the business side. When the machine to be expanded 107 detects that there is an expansion demand on the current server cluster 106, an expansion preparation step is executed to join the current server cluster 106 after the expansion preparation is completed, so as to implement expansion of the server 105.
It is understood that the server 105 may include a plurality of server clusters, each serving a different service party, and in this case, the machine 107 to be expanded may simultaneously serve as a standby machine of the plurality of server clusters.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having data interaction functions with a server and other terminals, including but not limited to smart phones, tablet computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
With continuing reference to fig. 2, fig. 2 shows a flowchart of a first embodiment of a method for server capacity expansion according to the present disclosure, including the steps of:
step S201, in response to determining that the server cluster has an expansion requirement, determining a service type corresponding to the server cluster, where the service type represents a type of data service provided by the server cluster for the service party.
Generally, the types of services that a business obtains from a server include: the data storage type, the network service type (such as DNS resolution service, network game service, etc.), the application type, and the like, and the different service types have different requirements on various performances of the server, for example, the data storage type has a higher requirement on the disk performance of the server, the network service type has a higher requirement on the load performance of the server, and the application type server has a higher requirement on the operational performance. The server may identify the service party based on the service type of the service party to represent the correspondence between the service party and the service type, and thus, the service type of the server cluster may be determined by the service party corresponding to the server cluster.
In this embodiment, when the execution subject determines that the service cluster has a capacity expansion requirement, the service identifier of the service party in the server cluster may be obtained to determine the service type corresponding to the server cluster.
Since the service data and the process information in the servers corresponding to different service types are different, the service type of the server can be determined through the service data and the process information. In some optional implementations of this embodiment, the execution subject may further determine the service type of the server cluster by: acquiring service data or process information of each machine in a server cluster; the service type of the server cluster is determined based on a mapping relationship between service data or process information and the service type, which is generated in advance, wherein the mapping relationship between the service data and the service type can be obtained by technical personnel through data analysis, for example, the mapping relationship can be realized through a clustering algorithm.
As an example, if the business data acquired by the execution subject from the server cluster includes a large amount of mail data, it may be determined that the service type of the service cluster is a data storage class; if the process information acquired by the execution subject from the service cluster includes a large number of DNS resolution processes, it may be determined that the service type of the server cluster is a network service type.
In some optional implementations of this implementation, the executing agent may determine that the server cluster has the capacity expansion requirement by: if the load of the server cluster is detected to exceed a preset load threshold value or the performance parameter of the server cluster is detected to be lower than a preset performance threshold value, sending a capacity expansion request to a service party; and if a confirmation instruction of the service party for the capacity expansion request is received, determining that the server cluster has the capacity expansion requirement.
In this implementation manner, the execution main body may obtain the running state of each machine in the server cluster in real time, and automatically determine whether the server cluster has a demand for capacity expansion according to the running state, which is helpful for finding out the demand for capacity expansion of the server in time, and avoids service quality degradation caused by untimely capacity expansion.
In a specific scenario example of this implementation, the load threshold may be preset to be 80% of disk space occupancy or 70% of Central Processing Unit (CPU) occupancy, and when the execution main body detects that the average disk occupancy of all the machines in the server cluster exceeds 80% or the CPU occupancy exceeds 70%, it is determined that the performance of the server cluster is close to the upper limit of the current service. In another specific example of the scenario, a performance threshold of the server cluster may also be preset, for example, the amount of data processed in the server cluster within a preset time period may be set to 100M, and when the execution subject detects that the amount of data processed in the server cluster within the preset time period is less than 100M, it is determined that the performance of the server cluster approaches the upper limit of the current service. When the performance of the server cluster approaches the upper limit of the service, if the service data continues to increase, the performance of the server may be reduced, and at this time, the execution subject may send a capacity expansion request to the service party. And if a confirmation instruction of the service party for the capacity expansion request is received, the execution main body determines that the server cluster has the capacity expansion requirement.
In other optional implementation manners of this embodiment, if a capacity expansion instruction of the service side is received, it is determined that the server cluster has a capacity expansion requirement. The service party can actively require capacity expansion of the server according to the service requirement of the service party so as to obtain better service.
Step S202, determining system environment parameters of the machine to be expanded based on the service type.
Since different service types have different requirements for server performance, the adaptation degree between the same system environment and different service types is different.
In this embodiment, the execution subject may reflect a degree of a requirement of the service type for each performance of the server based on the system environment parameters (e.g., kernel version, operating system, disk space, etc.) determined by the service type, so that a degree of adaptation between the system environment of the machine to be expanded and the service type may be improved. For example, the executing agent may acquire system environment information of each machine in a server cluster having the same service type, and then determine a system environment parameter based on the acquired system environment information.
In some optional implementations of this embodiment, the system environment parameter may also be determined by: and in response to receiving the system environment parameters provided by the service party, determining the system environment parameters provided by the service party as the system environment parameters corresponding to the service type. Therefore, the right of the personalized configuration server system environment can be transferred to the service party, and the service party sets the system environment parameters of the server according to the requirements of the service party. As an example, if the service acquired by the service provider from the server is a data storage service, a higher value may be set for a parameter related to data storage in the system environment parameter, for example, a disk space parameter may be set to a higher value to obtain a larger storage space. And setting a higher priority for the process related to data storage to obtain a faster read-write speed.
And S203, configuring the system environment of the machine to be expanded based on the system environment parameters.
Based on the system environment parameters obtained in step S202, the execution subject may adjust the system environment of the execution subject to be consistent with the system environment parameters, so as to ensure that the adaptation degree between the to-be-expanded machine and the service type after the system environment configuration is completed is higher.
And step S204, adding the machine to be expanded with the configured system environment to the server cluster.
After the step S201 to the step S203 are executed, the machine to be expanded may be added to the server cluster after the system environment of the machine to be expanded is configured, so as to complete the expansion step for the server.
As an example, the executing entity may perform service deployment on the machine to be expanded after the system environment configuration is completed, for example, install an application program of the service party, and then establish data communication between the machine to be expanded and the server cluster, so that the machine to be expanded participates in the data service to the service party.
With continued reference to fig. 3, fig. 3 illustrates a scenario diagram of a method for server capacity expansion according to the present disclosure. In the application scenario, the execution main body 303 is a machine to be expanded, and the service party 301 interacts with the server cluster 302 through the network to obtain the data service of the service party. When the execution subject detects that the server cluster 302 has capacity expansion requirements, the service type of the server cluster 302 is obtained, the system environment parameters are determined according to the service type, then the system environment of the execution subject is configured based on the system environment parameters, and finally the machine to be subjected to capacity expansion after the configuration is completed is added to the server cluster, so that the performance of the server cluster is improved.
The method for server capacity expansion in the embodiments disclosed in the present application is based on the service type, and the system environment of the machine to be capacity expanded is configured in a targeted manner, and the preparation work before capacity expansion of the machine to be capacity expanded can be completed without reinstalling the system, which is helpful for shortening the time consumption of the capacity expansion process and improving the efficiency
With continuing reference to FIG. 4, FIG. 4 illustrates a flow chart of a second embodiment of a method for server capacity expansion in accordance with the present disclosure, including the steps of:
step S401, in response to determining that the server cluster has an expansion requirement, determining a service type corresponding to the server cluster. This step corresponds to the step S201, and is not described herein again.
And S402, determining system environment parameters of the machine to be expanded based on the service type.
In this embodiment, the system environment parameters include kernel version parameters, operating system parameters, disk parameters, and load parameters.
Step S403, if the kernel version of the machine to be expanded is different from the kernel version parameter, adjusting the kernel version of the machine to be expanded to be consistent with the kernel version parameter.
In this embodiment, the execution main body first detects whether the kernel version is the same as the kernel version parameter obtained in step S402, and if not, performs an upgrade or downgrade operation on the kernel version of the execution main body, so as to make the kernel version adjustment value of the execution main body be the same as the kernel version parameter in step S402.
As an example, the execution agent may adjust its kernel version in a YUM (Yellow dog update) command or RPM (Red-Hat Package Manager) manner.
And S404, generating a parameter configuration script based on the operating system parameters.
In this embodiment, the operating system parameters may include all parameters of the operating system (for example, all parameters of the Linux system), and the execution main body may generate a parameter list based on the acquired operating system parameters, and then construct a parameter configuration script based on the parameter list, so as to implement automatic configuration of the operating system.
And S405, running the parameter configuration script and modifying the operating system parameters of the machine to be expanded.
In this embodiment, the execution subject runs the parameter configuration script constructed in step S404, obtains the ROOT authority of the operating system, and may complete configuration of all parameters of the operating system installed on the execution subject at one time. Therefore, the time consumed by system environment configuration can be reduced, and the capacity expansion efficiency is further improved.
And S406, cleaning the disk space of the machine to be expanded based on the disk parameters.
In this embodiment, the execution subject may delete data (e.g., a residual file of the operating system, a cache file of the application program, etc.) in the disk that is not related to the service of the business side, so as to ensure a clean system environment and storage space. For example, disks other than those on which the operating system is installed may all be formatted.
In some optional implementations of this embodiment, the execution subject may clean the disk space of the machine to be expanded by: the disk parameters may include a cleaning data list; and deleting the data included in the cleaning data list from the disk space of the machine to be expanded based on the cleaning data list. Therefore, the disk space of the machine to be expanded can be cleaned more pertinently, and the cleaning efficiency is improved.
Step S407, based on the load parameter, closing a preset process in the process list of the machine to be expanded.
In this embodiment, in order to avoid that the process unrelated to the service affects the operation performance of the machine to be expanded, some preset processes may be closed from the process list of the machine to be expanded. As an example, the main body is executed to close some automatically-started system processes (for example, security defense processes) in the operating system from the process list, so as to reduce the running load of the machine to be expanded and improve the operation performance of the machine.
In some optional implementations of this embodiment, the execution principal may further manage the processes in the process list by: the load parameters comprise a list of processes to be closed; and closing the process in the process list of the machine to be expanded, which exists in the process list to be closed, based on the process list to be closed. In this way, the invalid process can be shut down more accurately.
Step S408, adding the to-be-expanded machine with the configured system environment to the server cluster, which corresponds to the step S204 and is not described herein again.
As can be seen from fig. 4, compared with the first embodiment shown in fig. 2, the second embodiment embodies the step of configuring the system environment of the to-be-expanded machine based on the kernel version, the operating system, the disk and the load, and can shorten the time consumption of the system environment configuration process on the premise of ensuring the adaptation degree between the system environment of the to-be-expanded machine and the service type, thereby further improving the efficiency of server expansion.
FIG. 5 illustrates a block diagram of an electronic device in accordance with a method for server capacity expansion disclosed herein. The electronic device includes: the capacity expansion requirement detection module 501 is configured to determine a service type corresponding to the server cluster in response to determining that a capacity expansion requirement exists in the server cluster, where the service type represents a type of data service provided by the server cluster for the service party; a system environment determination module 502 configured to determine a system environment parameter of a machine to be expanded based on the service type; a system environment configuration module 503 configured to configure a system environment of the machine to be expanded based on the system environment parameter; and an online expansion machine module 504 configured to add the to-be-expanded machine with the configured system environment to the server cluster.
In this embodiment, the system environment parameters include: kernel version parameters, operating system parameters, disk parameters, and load parameters; and a system environment configuration module 503, including: the kernel version configuration module is configured to adjust the kernel version of the machine to be expanded to be consistent with the kernel version parameter if the kernel version of the machine to be expanded is different from the kernel version parameter; the operating system configuration module is configured to determine operating system parameters of the machine to be expanded based on the operating system parameters; the disk parameter configuration module is configured to clear the disk space of the machine to be expanded based on the disk parameters; and the load parameter configuration module is configured to close a preset process in the process list of the machine to be expanded based on the load parameter.
In this embodiment, the operating system configuration module is further configured to: generating a parameter configuration script based on the operating system parameters; and running the parameter configuration script and modifying the operating system parameters of the machine to be expanded.
In this embodiment, the disk parameters include a cleaning data list; and a disk parameter configuration module further configured to: and based on the cleaning data list, deleting the data included in the cleaning data list from the disk space of the machine to be expanded.
In this embodiment, the load parameter includes a list of processes to be closed; and a load parameter configuration module further configured to: and closing the process in the process list of the machine to be expanded, which exists in the process list to be closed, based on the process list to be closed.
In this embodiment, the capacity expansion requirement detecting module 501 is further configured to determine that the server cluster has a capacity expansion requirement in the following manner: and if the capacity expansion instruction of the service party is received, determining that the server cluster has a capacity expansion requirement.
In this embodiment, the capacity expansion requirement detecting module 501 is further configured to determine that the server cluster has a capacity expansion requirement in the following manner: if the load of the server cluster is detected to exceed a preset load threshold value or the performance parameter of the server cluster is detected to be lower than a preset performance threshold value, sending a capacity expansion request to a service party; and if a confirmation instruction of the service party for the capacity expansion request is received, determining that the server cluster has the capacity expansion requirement.
In this embodiment, the system environment determining module 502 is further configured to determine the system environment parameter corresponding to the service type by: and in response to receiving the system environment parameters provided by the service party, determining the system environment parameters provided by the service party as the system environment parameters corresponding to the service type.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 6, a block diagram of an electronic device is a method of a computer-storable medium according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of the computer-storable medium provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of the computer readable storage medium provided herein.
The memory 602, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the computer readable storage medium in the embodiments of the present application (for example, the capacity requirement detection module 501, the system environment determination module 502, the system environment configuration module 503, and the capacity expansion machine online module 504 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 602, i.e., a method of implementing the computer-storable medium in the above-described method embodiments.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of an electronic device of the computer-storable medium, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, which may be connected to the electronics of the computer-storable medium via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method of the computer-storable medium may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus of the computer-storable medium, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input device. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, based on the service type, the system environment of the machine to be expanded is configured in a targeted manner, the preparation for expansion can be completed without reinstalling the system of the machine to be expanded, the time consumption of the expansion process is reduced, and the efficiency is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (18)

1. A method for server capacity expansion, comprising:
responding to the capacity expansion requirement of a server cluster, and determining a service type corresponding to the server cluster, wherein the service type represents the type of data service provided by the server cluster for a business party;
determining system environment parameters of the machine to be expanded based on the service type;
configuring the system environment of the machine to be expanded based on the system environment parameters;
and adding the machine to be expanded, which is configured in the system environment, to the server cluster.
2. The method of claim 1, wherein the system environment parameters comprise: kernel version parameters, operating system parameters, disk parameters, and load parameters;
and configuring the system environment of the machine to be expanded based on the system environment parameters, including:
if the kernel version of the machine to be expanded is different from the kernel version parameter, adjusting the kernel version of the machine to be expanded to be consistent with the kernel version parameter;
determining operating system parameters of the machine to be expanded based on the operating system parameters;
cleaning the disk space of the machine to be expanded based on the disk parameters;
and closing the preset process in the process list of the machine to be expanded based on the load parameter.
3. The method of claim 2, wherein determining operating system parameters of the machine to be expanded based on the operating system parameters comprises:
generating a parameter configuration script based on the operating system parameters;
and running the parameter configuration script and modifying the operating system parameters of the machine to be expanded.
4. The method of claim 2, wherein the disk parameters include a clean up data list; and the number of the first and second groups,
the clearing the disk space of the machine to be expanded based on the disk parameters comprises:
and deleting the data included in the cleaning data list from the disk space of the machine to be expanded based on the cleaning data list.
5. The method of claim 2, wherein the load parameters include a list of processes to be shut down; and the number of the first and second groups,
the closing the preset process in the process list of the machine to be expanded based on the load parameter includes:
and closing the process in the process list of the machine to be expanded, which exists in the process list to be closed, based on the process list to be closed.
6. The method of claim 1, wherein the determining that there is an expansion demand for the server cluster comprises:
and if a capacity expansion instruction of a service party is received, determining that the server cluster has a capacity expansion requirement.
7. The method of claim 1, wherein the determining that there is an expansion demand for the server cluster comprises:
if the load of the server cluster is detected to exceed a preset load threshold value or the performance parameter of the server cluster is detected to be lower than a preset performance threshold value, sending a capacity expansion request to the service party;
and if a confirmation instruction of the service party for the capacity expansion request is received, determining that the server cluster has a capacity expansion requirement.
8. The method of claim 1, wherein determining, based on the service type, a system environment parameter corresponding to the service type comprises:
and in response to receiving the system environment parameters provided by the service party, determining the system environment parameters provided by the service party as the system environment parameters corresponding to the service type.
9. An apparatus for server capacity expansion, comprising:
the capacity expansion requirement detection module is configured to respond to the capacity expansion requirement of a server cluster, and determine a service type corresponding to the server cluster, wherein the service type represents the type of data service provided by the server cluster for a business party;
the system environment determination module is configured to determine system environment parameters of the machine to be expanded based on the service type;
the system environment configuration module is configured to configure the system environment of the machine to be expanded based on the system environment parameters;
and the capacity expansion machine online module is configured to add the machine to be subjected to capacity expansion, which is configured in the system environment, to the server cluster.
10. The apparatus of claim 9, wherein the system environment parameters comprise: kernel version parameters, operating system parameters, disk parameters, and load parameters;
and, the system environment configuration module comprising:
the kernel version configuration module is configured to adjust the kernel version of the machine to be expanded to be consistent with the kernel version parameter if the kernel version of the machine to be expanded is different from the kernel version parameter;
an operating system configuration module configured to determine operating system parameters of the machine to be expanded based on the operating system parameters;
the disk parameter configuration module is configured to clear the disk space of the machine to be expanded based on the disk parameters;
and the load parameter configuration module is configured to close a preset process in the process list of the machine to be expanded based on the load parameter.
11. The apparatus of claim 10, wherein the operating system configuration module is further configured to:
generating a parameter configuration script based on the operating system parameters;
and running the parameter configuration script and modifying the operating system parameters of the machine to be expanded.
12. The apparatus of claim 10, wherein the disk parameters comprise a clean data list; and the number of the first and second groups,
the disk parameter configuration module is further configured to: and deleting the data included in the cleaning data list from the disk space of the machine to be expanded based on the cleaning data list.
13. The apparatus of claim 10, wherein the load parameters comprise a list of processes to be shut down; and the number of the first and second groups,
the load parameter configuration module further configured to:
and closing the process in the process list of the machine to be expanded, which exists in the process list to be closed, based on the process list to be closed.
14. The apparatus of claim 9, wherein the capacity expansion requirement detection module is further configured to determine that a capacity expansion requirement exists for the server cluster by:
and if a capacity expansion instruction of a service party is received, determining that the server cluster has a capacity expansion requirement.
15. The apparatus of claim 9, wherein the capacity expansion requirement detection module is further configured to determine that a capacity expansion requirement exists for the server cluster by:
if the load of the server cluster is detected to exceed a preset load threshold value or the performance parameter of the server cluster is detected to be lower than a preset performance threshold value, sending a capacity expansion request to the service party;
and if a confirmation instruction of the service party for the capacity expansion request is received, determining that the server cluster has a capacity expansion requirement.
16. The apparatus of claim 9, the system environment determination module further configured to determine a system environment parameter corresponding to the service type by:
and in response to receiving the system environment parameters provided by the service party, determining the system environment parameters provided by the service party as the system environment parameters corresponding to the service type.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
CN202010455007.8A 2020-05-26 2020-05-26 Method and device for server capacity expansion Active CN111625195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010455007.8A CN111625195B (en) 2020-05-26 2020-05-26 Method and device for server capacity expansion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010455007.8A CN111625195B (en) 2020-05-26 2020-05-26 Method and device for server capacity expansion

Publications (2)

Publication Number Publication Date
CN111625195A true CN111625195A (en) 2020-09-04
CN111625195B CN111625195B (en) 2023-11-07

Family

ID=72260082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010455007.8A Active CN111625195B (en) 2020-05-26 2020-05-26 Method and device for server capacity expansion

Country Status (1)

Country Link
CN (1) CN111625195B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350872A (en) * 2020-11-23 2021-02-09 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment
CN112473141A (en) * 2020-12-14 2021-03-12 网易(杭州)网络有限公司 Game cluster management method and device
CN112738189A (en) * 2020-12-24 2021-04-30 航天信息股份有限公司 Cluster resource management method and device, storage medium and electronic equipment

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006107301A (en) * 2004-10-08 2006-04-20 Canon Inc Extension controller
CN102096557A (en) * 2010-12-31 2011-06-15 成都市华为赛门铁克科技有限公司 Capacity expansion method, device and system for independent redundant array of inexpensive disc (RAID)
CN103226493A (en) * 2013-05-15 2013-07-31 百度在线网络技术(北京)有限公司 Method and system for deploying multi-operation system service
CN105024842A (en) * 2014-04-25 2015-11-04 深圳市腾讯计算机系统有限公司 Method and device for capacity expansion of server
CN105162859A (en) * 2015-08-20 2015-12-16 湖南亿谷科技发展股份有限公司 Dynamic server dilatation system and method
CN105607868A (en) * 2015-12-14 2016-05-25 华为数字技术(成都)有限公司 Method and apparatus for capacity expansion of storage array
CN105653329A (en) * 2015-12-30 2016-06-08 国网信息通信产业集团有限公司 Application management method, apparatus and system
WO2016197994A1 (en) * 2015-12-03 2016-12-15 中兴通讯股份有限公司 Capacity expansion method and device
CN106383671A (en) * 2016-09-29 2017-02-08 乐视控股(北京)有限公司 Block device storage cluster capability expansion system and method
WO2017181830A1 (en) * 2016-04-19 2017-10-26 中兴通讯股份有限公司 Synchronous capacity enlargement method and device for server, and storage medium
CN107577421A (en) * 2017-07-31 2018-01-12 深圳市牛鼎丰科技有限公司 Smart machine expansion method, device, storage medium and computer equipment
CN108076082A (en) * 2016-11-09 2018-05-25 阿里巴巴集团控股有限公司 A kind of expansion method of application cluster, device and system
WO2018120939A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Storage system expanded data migration method and storage system
CN108845878A (en) * 2018-05-08 2018-11-20 南京理工大学 The big data processing method and processing device calculated based on serverless backup
CN109426514A (en) * 2017-08-24 2019-03-05 北京金山云网络技术有限公司 Automatization of service dispositions method, device, electronic equipment and storage medium
CN109495306A (en) * 2018-11-27 2019-03-19 平安科技(深圳)有限公司 A kind of expansion method and equipment of business network
CN109586952A (en) * 2018-11-07 2019-04-05 广州虎牙信息科技有限公司 Method of server expansion, device
CN109714222A (en) * 2017-10-26 2019-05-03 创盛视联数码科技(北京)有限公司 The distributed computer monitoring system and its monitoring method of High Availabitity
CN110096339A (en) * 2019-05-10 2019-08-06 重庆八戒电子商务有限公司 A kind of scalable appearance configuration recommendation system and method realized based on system load
CN110442349A (en) * 2019-08-01 2019-11-12 北京百度网讯科技有限公司 Method and apparatus for servicing dilatation

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006107301A (en) * 2004-10-08 2006-04-20 Canon Inc Extension controller
CN102096557A (en) * 2010-12-31 2011-06-15 成都市华为赛门铁克科技有限公司 Capacity expansion method, device and system for independent redundant array of inexpensive disc (RAID)
CN103226493A (en) * 2013-05-15 2013-07-31 百度在线网络技术(北京)有限公司 Method and system for deploying multi-operation system service
CN105024842A (en) * 2014-04-25 2015-11-04 深圳市腾讯计算机系统有限公司 Method and device for capacity expansion of server
CN105162859A (en) * 2015-08-20 2015-12-16 湖南亿谷科技发展股份有限公司 Dynamic server dilatation system and method
CN106843745A (en) * 2015-12-03 2017-06-13 南京中兴新软件有限责任公司 Capacity expansion method and device
WO2016197994A1 (en) * 2015-12-03 2016-12-15 中兴通讯股份有限公司 Capacity expansion method and device
CN105607868A (en) * 2015-12-14 2016-05-25 华为数字技术(成都)有限公司 Method and apparatus for capacity expansion of storage array
CN105653329A (en) * 2015-12-30 2016-06-08 国网信息通信产业集团有限公司 Application management method, apparatus and system
WO2017181830A1 (en) * 2016-04-19 2017-10-26 中兴通讯股份有限公司 Synchronous capacity enlargement method and device for server, and storage medium
CN107306277A (en) * 2016-04-19 2017-10-31 中兴通讯股份有限公司 A kind of method and device of server sync dilatation
CN106383671A (en) * 2016-09-29 2017-02-08 乐视控股(北京)有限公司 Block device storage cluster capability expansion system and method
CN108076082A (en) * 2016-11-09 2018-05-25 阿里巴巴集团控股有限公司 A kind of expansion method of application cluster, device and system
WO2018120939A1 (en) * 2016-12-29 2018-07-05 华为技术有限公司 Storage system expanded data migration method and storage system
CN107577421A (en) * 2017-07-31 2018-01-12 深圳市牛鼎丰科技有限公司 Smart machine expansion method, device, storage medium and computer equipment
CN109426514A (en) * 2017-08-24 2019-03-05 北京金山云网络技术有限公司 Automatization of service dispositions method, device, electronic equipment and storage medium
CN109714222A (en) * 2017-10-26 2019-05-03 创盛视联数码科技(北京)有限公司 The distributed computer monitoring system and its monitoring method of High Availabitity
CN108845878A (en) * 2018-05-08 2018-11-20 南京理工大学 The big data processing method and processing device calculated based on serverless backup
CN109586952A (en) * 2018-11-07 2019-04-05 广州虎牙信息科技有限公司 Method of server expansion, device
CN109495306A (en) * 2018-11-27 2019-03-19 平安科技(深圳)有限公司 A kind of expansion method and equipment of business network
CN110096339A (en) * 2019-05-10 2019-08-06 重庆八戒电子商务有限公司 A kind of scalable appearance configuration recommendation system and method realized based on system load
CN110442349A (en) * 2019-08-01 2019-11-12 北京百度网讯科技有限公司 Method and apparatus for servicing dilatation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350872A (en) * 2020-11-23 2021-02-09 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment
CN112350872B (en) * 2020-11-23 2022-07-22 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment
CN112473141A (en) * 2020-12-14 2021-03-12 网易(杭州)网络有限公司 Game cluster management method and device
CN112738189A (en) * 2020-12-24 2021-04-30 航天信息股份有限公司 Cluster resource management method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111625195B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN111258609B (en) Upgrading method and device of Kubernetes cluster, electronic equipment and medium
CN111625195A (en) Method and device for server capacity expansion
CN110995480B (en) Block chain network deployment method, device, electronic equipment and medium
CN112925651A (en) Application resource deployment method, device, electronic equipment and medium
CN113220420A (en) Service monitoring method, device, equipment, storage medium and computer program product
KR102546577B1 (en) Method and device for mini program data processing
CN112771928B (en) Method and device for determining satellite return information
CN113656147A (en) Cluster deployment method, device, equipment and storage medium
CN111782254A (en) Method, device, equipment and storage medium for upgrading object
CN112328296A (en) Software updating method, device, equipment and medium for cross-platform application
WO2022199204A1 (en) Method and apparatus for determining resources
CN114185734A (en) Cluster monitoring method and device and electronic equipment
CN112565356B (en) Data storage method and device and electronic equipment
CN113641388A (en) Cloud mobile phone updating method, related device and computer program product
CN111770176B (en) Traffic scheduling method and device
CN110536283B (en) Terminal identifier acquisition method, device, electronic equipment and medium
CN112379951A (en) Service interface access method, device, electronic equipment and medium
CN111865720A (en) Method, apparatus, device and storage medium for processing request
CN112084000A (en) Container cluster testing method and device
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
EP3866399A1 (en) Method and apparatus for adjusting network flow
CN115576565A (en) Application program deployment method and device, electronic equipment and storage medium
CN111510480B (en) Request sending method and device and first server
CN114661274A (en) Method and device for generating intelligent contract
CN113434218A (en) Micro-service configuration method, device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant