CN111597036A - Server resource configuration method and device - Google Patents

Server resource configuration method and device Download PDF

Info

Publication number
CN111597036A
CN111597036A CN202010294412.6A CN202010294412A CN111597036A CN 111597036 A CN111597036 A CN 111597036A CN 202010294412 A CN202010294412 A CN 202010294412A CN 111597036 A CN111597036 A CN 111597036A
Authority
CN
China
Prior art keywords
server
server resource
resource application
configuration
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010294412.6A
Other languages
Chinese (zh)
Inventor
李玉山
宋徽
莫秀刚
潘多磊
宫晓峰
范文君
游定平
杨青
刘莹
魏程
任安建
马闯
胡逸云
锻恋
吕景隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peoples Insurance Company of China
Original Assignee
Peoples Insurance Company of China
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 Peoples Insurance Company of China filed Critical Peoples Insurance Company of China
Priority to CN202010294412.6A priority Critical patent/CN111597036A/en
Publication of CN111597036A publication Critical patent/CN111597036A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a server resource management method, a server resource management device, electronic equipment and a computer readable storage medium. The method comprises the following steps: determining a server resource application parameter according to a server resource application request sent by a user; packaging the server resource application parameters according to a preset parameter standardization rule; and configuring the server resources according to the encapsulated server resource application parameters.

Description

Server resource configuration method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a server resource configuration method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Currently, with the development of computer technology, in big data processing technology, a huge amount of history data needs to be stored to analyze the history data. As the amount of data that needs to be stored and analyzed increases, server resources may be applied to the server cluster for allocation to ensure that the server cluster has sufficient resources to run the storage and analyze the increased data.
In the prior art, the server resource allocation and management mode can be used for manually disassembling tasks according to user requirements after the server resource application of a user is completed, scheduling multiple posts of personnel to perform offline cooperative work, and allocating server resources in a manual mode.
However, this method has the disadvantages of inefficient manual configuration of server resources, etc.
Disclosure of Invention
Embodiments of the present specification provide a server resource management method, an apparatus, an electronic device, and a computer-readable storage medium, so as to solve the problem that the efficiency of manually configuring server resources is low in the prior art.
The embodiment of the specification adopts the following technical scheme:
a server resource configuration method comprises the following steps:
determining a server resource application parameter according to a server resource application request sent by a user;
packaging the server resource application parameters according to a preset parameter standardization rule;
and configuring the server resources according to the encapsulated server resource application parameters.
A server resource configuration apparatus, comprising:
the resource application module is used for determining server resource application parameters according to a server resource application request sent by a user;
the parameter encapsulation module is used for encapsulating the server resource application parameters according to a preset parameter standardization rule;
and the server resource allocation module is used for allocating server resources according to the encapsulated server resource application parameters.
An electronic device, comprising: the server resource allocation method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of any one of the server resource allocation methods when being executed by the processor.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the server resource configuration methods.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
server resource application parameters are packaged according to preset parameter standardization rules, server resources are configured according to the packaged server resource application parameters, server resources can be automatically and standardly configured, and compared with a mode of manually configuring the server resources in the prior art, the configuration efficiency of the server resources can be improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a server resource allocation method provided in an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a specific implementation of a server resource allocation method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating an embodiment of configuring service resources according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a server resource configuration device provided in an embodiment of the present specification;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of this specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Currently, as the amount of data that needs to be stored and analyzed increases, server resources may be applied to a server cluster to ensure that the server cluster has sufficient resources to run the storage and analyze the increased data. The server resources may include a configurable server, a memory and a disk of the server, and the like.
In the prior art, the problem of low efficiency exists in a mode of manually configuring server resources.
In order to solve the foregoing technical problem, an embodiment of the present specification provides a server resource configuration method, which is used for implementing automatic and standardized configuration of server resources. The execution subject of the method includes, but is not limited to, a server, a personal computer, a notebook computer, a tablet computer, a smart phone, and other intelligent electronic devices that can execute a predetermined process, such as numerical calculation and/or logical calculation, by running a predetermined program or instruction. The server may be a single network server or a server group consisting of a plurality of network servers or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of computers or network servers. The embodiment of the present specification does not limit the execution subject of this method, and the flow diagram of this method is shown in fig. 1, and includes the following steps:
step 11: and determining server resource application parameters according to a server resource application request sent by a user.
In practical applications, the server resource application request sent by the user may be a server resource application request sent by the user when the user desires to apply for a server resource, and for example, may be an HTTP request sent by a client through a HyperText Transfer Protocol (HTTP).
As described above, the server resource may include a configurable server, a disk and a memory of the server, and correspondingly, in this embodiment of the present disclosure, the server resource application parameter may include a server list, server disk partition information, and storage group information. Wherein the server list may contain a server identification of at least one server that the user desires to apply for.
It can be understood that the server resource application request may carry server resource application parameters, and then determining the server resource application parameters according to the server resource application request sent by the user may specifically include: and determining a server list, server disk partition information and storage group information in the server resource application parameters so as to apply for server resources according to the server resource application parameters.
Step 12: and packaging the server resource application parameters according to a preset parameter standardization rule.
In practical applications, in order to implement automatic configuration of server resources, in this embodiment of the present specification, the server resource application parameters determined in step 11 may be encapsulated according to preset parameter standardization rules.
The parameter standardization rule may be a preset rule for standardizing the server resource application parameter, for example, the parameter standardization rule may include encapsulating the server resource application parameter into a JSON format, and correspondingly, encapsulating the server resource application parameter according to the preset parameter standardization rule may include encapsulating the server list, the server disk partition information, and the storage information into the JSON format, and it is understood that the server resource application parameter encapsulated into the JSON format may be a parameter conforming to the parameter standardization rule.
It is understood that the parameter standardization rule may also include packaging the server resource application parameter into other types of data packaging formats, for example, an XML format, and the data packaging format set by the parameter standardization rule may be set according to actual requirements, and the present application is not limited thereto.
Step 13: and configuring the server resources according to the encapsulated server resource application parameters.
As described above, the server resource application parameters may include: the server list, the server disk partition information, and the storage group information, then, configuring the server resource according to the encapsulated server resource application parameter, which may include:
determining a server corresponding to the server list from the distributable server cluster according to the server list;
dividing the determined disk partitions of the server according to the disk partition information of the server;
and according to the storage group information, distributing the determined storage group of the server from the unallocated storage groups according to a preset storage group distribution mode.
As described above, the server list may include a server identifier of at least one server that the user desires to apply for, and then determining a server corresponding to the server list from the assignable server cluster according to the server list may include: and determining a server corresponding to at least one server identifier from the assignable server cluster according to the at least one server identifier in the service list. It will be appreciated that the server identification may uniquely identify each server in the server cluster.
In practical application, after the server corresponding to the server list is determined, the disk partition of the determined server may be divided according to the server disk partition information. For example, the server disk partition information may include "divide the server a into 2 disk partitions, and names of the 2 disk partitions are the C disk and the D disk", when the disk partitions of the server are divided, the server a may be divided according to the server disk partition information, and the divided disk partitions are named as the C disk and the D disk, respectively. How to divide the server disk partitions can be set according to actual requirements, and the method is not limited in the application.
The storage group may be a component for storing various data in the server, and it is understood that the storage group may be an internal storage of the server, or may be an external storage. The storage group information may include information on the number of storage groups, the size of the storage groups, and the like. In practical application, the preset storage group allocation mode may adopt storage allocation strategies such as static storage allocation, stacked storage allocation, or stacked storage allocation, to implement allocation of storage groups, that is, to implement allocation of storage groups of determined servers from unallocated storage groups. The application is not limited as to which storage allocation strategy is adopted to realize the allocation of the storage group.
In the embodiment of the present specification, server resource application parameters are encapsulated according to preset parameter standardization rules, and then server resources are configured according to the encapsulated server resource application parameters, so that server resources can be automatically and standardizedly configured, and compared with a manner of manually configuring server resources in the prior art, the configuration efficiency of server resources can be improved.
In one or more embodiments of the present specification, after determining the server resource application parameter according to the server resource application request sent by the user, the method may further include: validity verification is carried out on the server resource application parameters to verify whether the server resource application request is reasonable or not, so that unreasonable server resource application requests can be prevented.
In practical application, the validity of the server resource application parameter is verified, and the server resource application parameter can be verified according to a preset verification rule. The preset check rule may be a rule preset according to actual requirements to check whether the server resource application parameter is valid. For example, the set check rule may include: and if a certain server is fully loaded and the server list of the verified server resource application parameters contains the server, the server resource application request can be an unreasonable request.
In the embodiment of the present specification, by checking the validity of the server resource application parameter, an unreasonable server resource application request can be prevented.
In practical application, when the server resource is configured according to the encapsulated server resource application parameter, the configuration of the server resource can be realized by calling an interface for configuring the server resource. Then, when the interface is called, the parameter to be transmitted may be assembled according to a data format required by the calling interface for configuring the server resource, and in one or more embodiments of the present specification, after the server resource application parameter is encapsulated according to a preset parameter standardization rule, the method may further include:
assembling the template according to the preset parameters, assembling the encapsulated server resource application parameters, and configuring the server resources according to the assembled server resource application parameters.
The parameter assembling template can be a template preset according to a data format required by a calling interface for configuring server resources, and a server list, server disk partition information and storage group information in server resource application parameters can be assembled according to the data format required by the calling interface for configuring the server resources through the parameter assembling template, so that the server resources are automatically configured according to the server resource application parameters.
In practical application, when the interface for configuring the server resource is called, in addition to the server resource application parameter, other parameters to be transmitted, for example, user identification information such as a user name and the like, may be included, and feedback of the configured server resource to the user corresponding to the user identification may be achieved through the user identification information. Then, through the parameter assembling template, the other parameters to be transmitted can be assembled according to the data format required by the calling interface of the configuration server resource.
In the embodiment of the specification, the templates are assembled according to the preset parameters, so that the parameters to be transmitted can be dynamically and automatically assembled, and the utilization rate of the codes can be improved.
In one or more embodiments of the present disclosure, in order to ensure that the configured server resource matches the user requirement, that is, matches the server resource application request issued by the user, after configuring the server resource according to the encapsulated server resource application parameter, the method may further include:
verifying whether the configured server resources are matched with the server resource application request;
and under the condition that the configured server resource is matched with the server resource application request, feeding back a configuration result of the server resource to the user.
The configuration result here may include: at least one of server resource configuration identification, IP address, server disk partition name and storage group identification. The server resource configuration identifier may be an identifier for identifying a server resource configuration result, and information such as an IP address, a server disk partition name, a storage group identifier, and the like in the server resource configuration process and the server resource configuration result may be checked through the server resource configuration identifier.
In practical applications, verifying whether the configured server resource matches the server resource application request may include: and judging whether the server resource application parameters in the server resource application request are consistent with the configuration result of the server resources, if so, matching the configured server resources with the server resource application request.
In practical application, under the condition that the configured server resource is matched with the server resource application request, the configuration result of the server resource can be fed back to the user, specifically, the configuration result can be returned to the client through an HTTP (hyper text transport protocol), and the configuration result is displayed to the user through the client, so that the user can use the allocated server according to the configuration result.
In one or more embodiments of the present specification, in order to facilitate a user to quickly retrieve a configuration result for querying when the user needs to query a configuration situation of a server resource, in a case that a configured server resource matches a server resource application request, the method may further include: and storing the configuration result of the server resource in a database.
In practical application, the configuration result of the server resource is stored in the database, so that a user can conveniently and quickly call the configuration result, and when the configuration result is called, the user can query the database according to the server resource configuration identifier to call the configuration result.
In one or more embodiments of the present specification, after determining a server, partitioning a disk, and allocating a storage group, to facilitate a user to use an allocated server, the method may further include:
initializing the determined operating system of the server;
and carrying out standardized configuration on the initialized operating system according to a preset configuration rule.
The operating system of the server may be a Linux operating system installed on the server, and may of course be other types of operating systems, which is not limited to this application. Initializing the determined operating system of the server may include initializing various default settings of the operating system, so as to perform standardized configuration on the operating system according to preset operating system configuration rules.
The preset operating system configuration rule may include a rule for configuring a default setting of the operating system, such as configuring a gateway address and configuring a firewall. By carrying out standardized configuration on the initialized operating system, a user can conveniently use the distributed server, so that the man-machine interaction is better realized.
As shown in fig. 2, the embodiment of the present disclosure further provides a specific implementation manner of the server resource allocation method in practical application.
Step 21, a user submits a server resource application request;
step 22, carrying out validity check on the server resource application parameters in the server resource application request;
step 23, encapsulating the server resource application parameters in the server resource application request;
step 24, assembling server resource application parameters in the server resource application request;
step 25, configuring server resources according to the encapsulated server resource application parameters;
step 26, storing the configuration result of the configuration server resource in a database.
In the embodiment of the specification, unreasonable server resource application requests can be prevented by verifying the validity of the server resource application parameters, automatic configuration of server resources can be conveniently realized by integrating and packaging the server resource application parameters, and a configuration result of the configured server resources is stored in a database so that a user can conveniently retrieve and query the configuration result.
As shown in fig. 3, an embodiment of this specification further provides a specific implementation manner of configuring server resources in practical application according to encapsulated server resource application parameters.
Step 30, determining a server from the distributable server cluster according to the server list;
step 31, determining the disk partition of the server according to the disk partition information of the server;
step 32, determining a storage group of the server according to the storage group information;
step 33, according to the server disk partition information, dividing the disk partition determined in step 31,
step 34, distributing the storage group determined in the step 32 according to the storage group information;
step 35, initializing an operating system of the server;
step 36, the operating system of the server is standardized and configured.
In the embodiment of the present description, server resources can be configured automatically by applying for parameters according to the encapsulated server resources, and the configuration efficiency of the server resources can be improved compared with manual configuration of the server resources.
The server resource allocation method provided by the embodiment of the present specification is based on the same inventive concept, and the embodiment of the present specification further provides a corresponding server resource allocation device. As shown in fig. 4, the apparatus specifically includes:
a resource application module 101, configured to determine a server resource application parameter according to a server resource application request sent by a user;
a parameter encapsulation module 102, configured to encapsulate the server resource application parameter according to a preset parameter standardization rule;
and the server resource configuration module 103 is configured to configure server resources according to the encapsulated server resource application parameters.
The specific workflow of the above device embodiment may include: the resource application module 101 determines a server resource application parameter according to a server resource application request sent by a user; the parameter encapsulation module 102 encapsulates the server resource application parameters according to a preset parameter standardization rule; and the server resource configuration module 103 configures server resources according to the encapsulated server resource application parameters.
In one embodiment, the apparatus further comprises:
and the parameter assembling module is used for assembling the template according to preset parameters, assembling the encapsulated server resource application parameters and configuring the server resources according to the assembled server resource application parameters.
In one embodiment, the apparatus further comprises:
the verification module is used for verifying whether the configured server resources are matched with the server resource application request or not;
the feedback module is used for feeding back the configuration result of the server resource to the user under the condition that the configured server resource is matched with the server resource application request; the configuration result comprises: at least one of server resource configuration identification, IP address, server disk partition name and storage group identification.
In one embodiment, the apparatus further comprises:
and the storage module is used for storing the configuration result of the server resource in a database.
In an embodiment, the server resource application parameter includes a server list, server disk partition information, and storage group information, and then the server resource configuration module 103 includes:
the server determining unit is used for determining a server corresponding to the server list from a distributable server cluster according to the server list;
the disk partition dividing unit is used for dividing and determining the disk partitions of the server according to the server disk partition information;
and the storage group allocation unit is used for allocating the determined storage group of the server from the unallocated storage groups according to the storage group information and a preset storage group allocation mode.
In one embodiment, the apparatus further comprises:
the initialization module is used for initializing the determined operating system of the server;
and the standardized configuration unit is used for carrying out standardized configuration on the initialized operating system according to a preset operating system configuration rule.
In one embodiment, the apparatus further comprises:
and the verification module is used for verifying the validity of the server resource application parameters.
In the embodiment of the present specification, server resource application parameters are encapsulated according to preset parameter standardization rules, and then server resources are configured according to the encapsulated server resource application parameters, so that server resources can be automatically and standardizedly configured, and compared with a manner of manually configuring server resources in the prior art, the configuration efficiency of server resources can be improved.
An embodiment of this specification further provides an electronic device, and referring to fig. 5, in a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to form the application server resource allocation device on the logic level. A processor executing the program stored in the memory and configured to perform at least the following:
determining a server resource application parameter according to a server resource application request sent by a user;
packaging the server resource application parameters according to a preset parameter standardization rule;
and configuring the server resources according to the encapsulated server resource application parameters.
The method executed by the server resource configuration device according to the embodiment shown in fig. 1 of the present application may be applied to a processor, or may be implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a network Processor (FP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method executed by the server resource allocation apparatus in fig. 1, and implement the functions of the server resource allocation apparatus in the embodiment shown in fig. 1, which are not described herein again in this specification.
The present specification also proposes a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the method performed by the server resource configuration apparatus in the embodiment shown in fig. 1, and at least to perform:
determining a server resource application parameter according to a server resource application request sent by a user;
packaging the server resource application parameters according to a preset parameter standardization rule;
and configuring the server resources according to the encapsulated server resource application parameters.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for configuring server resources, comprising:
determining a server resource application parameter according to a server resource application request sent by a user;
packaging the server resource application parameters according to a preset parameter standardization rule;
and configuring the server resources according to the encapsulated server resource application parameters.
2. The method of claim 1, further comprising, after encapsulating the server resource application parameters according to preset parameter normalization rules:
assembling the template according to preset parameters, assembling the encapsulated server resource application parameters, and configuring the server resources according to the assembled server resource application parameters.
3. The method of claim 1, wherein the method further comprises:
verifying whether the configured server resource is matched with the server resource application request;
under the condition that the configured server resource is matched with the server resource application request, feeding back a configuration result of the server resource to the user; the configuration result comprises: at least one of server resource configuration identification, IP address, server disk partition name and storage group identification.
4. The method of claim 3, wherein in the event that the configured server resource matches the server resource application request, the method further comprises:
and storing the configuration result of the server resource in a database.
5. The method of claim 1, wherein the server resource application parameters include a server list, server disk partition information, and storage group information, and the configuring the server resources according to the encapsulated server resource application parameters includes:
determining a server corresponding to the server list from a distributable server cluster according to the server list;
dividing the determined disk partitions of the server according to the disk partition information of the server;
and according to the storage group information, distributing the determined storage group of the server from the unallocated storage groups according to a preset storage group distribution mode.
6. The method of claim 5, wherein the method further comprises:
initializing the operating system of the determined server;
and carrying out standardized configuration on the initialized operating system according to a preset operating system configuration rule.
7. The method of claim 1, wherein after determining the server resource application parameter based on a server resource application request issued by a user, further comprising:
and carrying out validity check on the server resource application parameters.
8. A server resource allocation apparatus, comprising:
the resource application module is used for determining server resource application parameters according to a server resource application request sent by a user;
the parameter encapsulation module is used for encapsulating the server resource application parameters according to a preset parameter standardization rule;
and the server resource allocation module is used for allocating server resources according to the encapsulated server resource application parameters.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the server resource configuration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the server resource configuration method according to any one of claims 1 to 7.
CN202010294412.6A 2020-04-15 2020-04-15 Server resource configuration method and device Pending CN111597036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010294412.6A CN111597036A (en) 2020-04-15 2020-04-15 Server resource configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010294412.6A CN111597036A (en) 2020-04-15 2020-04-15 Server resource configuration method and device

Publications (1)

Publication Number Publication Date
CN111597036A true CN111597036A (en) 2020-08-28

Family

ID=72184989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010294412.6A Pending CN111597036A (en) 2020-04-15 2020-04-15 Server resource configuration method and device

Country Status (1)

Country Link
CN (1) CN111597036A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114281427A (en) * 2021-12-22 2022-04-05 上海云轴信息科技有限公司 Method and equipment for batch parameter configuration and verification

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051668A (en) * 2012-09-21 2013-04-17 中国电信股份有限公司云计算分公司 Server resource management system and server resource management method
CN106959894A (en) * 2016-01-11 2017-07-18 北京京东尚科信息技术有限公司 Resource allocation methods and device
CN107948259A (en) * 2017-11-14 2018-04-20 郑州云海信息技术有限公司 A kind of collocation method of Cloud Server resource and configuration system
US20190220384A1 (en) * 2018-01-18 2019-07-18 Dell Products L.P. Method, device, and computer readable medium for tracing computing system
CN110166507A (en) * 2018-02-12 2019-08-23 北京京东尚科信息技术有限公司 More resource regulating methods and device
CN110290015A (en) * 2019-07-24 2019-09-27 无锡华云数据技术服务有限公司 Remote deployment method, apparatus and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051668A (en) * 2012-09-21 2013-04-17 中国电信股份有限公司云计算分公司 Server resource management system and server resource management method
CN106959894A (en) * 2016-01-11 2017-07-18 北京京东尚科信息技术有限公司 Resource allocation methods and device
CN107948259A (en) * 2017-11-14 2018-04-20 郑州云海信息技术有限公司 A kind of collocation method of Cloud Server resource and configuration system
US20190220384A1 (en) * 2018-01-18 2019-07-18 Dell Products L.P. Method, device, and computer readable medium for tracing computing system
CN110166507A (en) * 2018-02-12 2019-08-23 北京京东尚科信息技术有限公司 More resource regulating methods and device
CN110290015A (en) * 2019-07-24 2019-09-27 无锡华云数据技术服务有限公司 Remote deployment method, apparatus and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114281427A (en) * 2021-12-22 2022-04-05 上海云轴信息科技有限公司 Method and equipment for batch parameter configuration and verification

Similar Documents

Publication Publication Date Title
US20230396669A1 (en) Technologies for transparent function as a service arbitration for edge systems
US11875173B2 (en) Execution of auxiliary functions in an on-demand network code execution system
US10817331B2 (en) Execution of auxiliary functions in an on-demand network code execution system
US10430332B2 (en) System and method for performance tuning of garbage collection algorithms
CN111949899B (en) Service integration method and service platform
CN111124476A (en) Business rule configuration and creation method and device
US10162952B2 (en) Security model for network information service
CN110674213A (en) Data synchronization method and device
CN111708632A (en) Cloud resource management method and device
CN110601880A (en) Cloud platform, service processing method, command interface and computer equipment
CN111464598A (en) Data pushing method and device
CN113254174A (en) RPA robot process automation implementation system and method
CN112346818A (en) Container application deployment method and device, electronic equipment and storage medium
CN110728491B (en) Work order processing method and device, computer equipment and storage medium
CN111858727A (en) Multi-data-source data export system and method based on template configuration
CN110490416B (en) Task management method and terminal equipment
CN108289080B (en) Method, device and system for accessing file system
CN111212027A (en) Network security verification method and device based on enterprise browser
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN111597036A (en) Server resource configuration method and device
CN111198677A (en) Equipment object generation method, device and equipment
CN114138877A (en) Method, device and equipment for realizing theme data service based on micro-service architecture
CN109918277A (en) Electronic device, the evaluation method of system log cluster analysis result and storage medium
CN112749158A (en) Energy system data processing method and device
CN117692401A (en) Message sending method, device, server 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828