CN115061817A - Operation and maintenance method, device, system and computer program product - Google Patents

Operation and maintenance method, device, system and computer program product Download PDF

Info

Publication number
CN115061817A
CN115061817A CN202210733442.1A CN202210733442A CN115061817A CN 115061817 A CN115061817 A CN 115061817A CN 202210733442 A CN202210733442 A CN 202210733442A CN 115061817 A CN115061817 A CN 115061817A
Authority
CN
China
Prior art keywords
maintenance
data
instruction
target server
thread group
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
CN202210733442.1A
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.)
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 CN202210733442.1A priority Critical patent/CN115061817A/en
Publication of CN115061817A publication Critical patent/CN115061817A/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/502Proximity

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure provides an operation and maintenance method, an operation and maintenance device, an operation and maintenance system, electronic equipment, a computer readable storage medium and a computer program product, and relates to the technical field of artificial intelligence such as operation and maintenance management, cloud platforms and data issuing. One embodiment of the method comprises: and in response to receiving an operation and maintenance instruction sent by an operation and maintenance control end, processing the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine, then sending the operation and maintenance operation data to a target server indicated by the operation and maintenance instruction, and finally controlling the target server to execute the operation and maintenance operation data. The embodiment provides an operation and maintenance method, and the configuration mode of single-thread multi-coroutine is utilized to not only reduce the switching between a user space and a kernel space, but also realize the concurrent processing of the operation and maintenance data, and improve the resource utilization rate and the operation and maintenance efficiency when the operation and maintenance data are generated.

Description

Operation and maintenance method, device, system and computer program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of artificial intelligence technologies such as operation and maintenance management, cloud platforms, and data distribution, and in particular, to an operation and maintenance method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the advanced development of cloud computing, as the demand and the dependence of users on cloud computing gradually increase, more servers need to be deployed correspondingly to provide corresponding services, and under such a situation, it is very important to ensure the operation and maintenance of the servers that can normally operate.
The operation and maintenance of the server, that is, the operation and maintenance work of the server is an important ring for ensuring whether the server can work normally before and after the server is online, and the operation and maintenance work of the server usually includes: daily operation and maintenance routing inspection, log inspection, parameter adjustment, performance optimization, configuration upgrading, application deployment, fault response and troubleshooting and the like.
Disclosure of Invention
The embodiment of the disclosure provides an operation and maintenance method, an operation and maintenance device, an operation and maintenance system, electronic equipment, a computer-readable storage medium and a computer program product.
In a first aspect, an embodiment of the present disclosure provides an operation and maintenance method, including: responding to an operation and maintenance instruction sent by an operation and maintenance control end, processing the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine; sending the operation and maintenance operation data to a target server indicated by the operation and maintenance instruction; and controlling the target server to execute the operation and maintenance operation data.
In a second aspect, an embodiment of the present disclosure provides an operation and maintenance device, including: the operation data generation unit is configured to respond to the operation and maintenance instruction sent by the operation and maintenance control end, process the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine; the operation data sending unit is configured to send the operation and maintenance operation data to a target server indicated by the operation and maintenance instruction; and the operation and maintenance execution control unit is configured to control the target server to execute the operation and maintenance operation data.
In a third aspect, an embodiment of the present disclosure provides an operation and maintenance system, including: the operation and maintenance control terminal is configured to respond to the received operation and maintenance indication information and send an operation and maintenance instruction to the operation and maintenance data sending terminal; the operation and maintenance data sending end is configured to respond to an operation and maintenance instruction sent by the operation and maintenance control end, process the operation and maintenance instruction by using a local thread group and generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine; and the target server is configured to acquire the operation and maintenance operation data sent by the operation and maintenance data sending end, is controlled by the operation and maintenance data sending end, and locally executes the operation and maintenance operation data.
In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to implement the operation and maintenance method as described in any implementation manner of the first aspect when executed.
In a fifth aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium storing computer instructions for enabling a computer to implement the operation and maintenance method as described in any implementation manner of the first aspect when executed.
In a sixth aspect, the present disclosure provides a computer program product including a computer program, where the computer program is capable of implementing the operation and maintenance method as described in any implementation manner of the first aspect when executed by a processor.
In the operation and maintenance method, device, electronic device, computer-readable storage medium, and computer program product provided by the embodiments of the present disclosure, in response to receiving an operation and maintenance instruction sent by an operation and maintenance control end, a local thread group is used to process the operation and maintenance instruction to generate operation and maintenance operation data, where the local thread group is composed of a single thread and at least one coroutine, then the operation and maintenance operation data is sent to a target server indicated by the operation and maintenance instruction, and finally, the target server is controlled to execute the operation and maintenance operation data. The embodiment provides an operation and maintenance method, and the configuration mode of single-thread multi-coroutine is utilized to not only reduce the switching between a user space and a kernel space, but also realize the concurrent processing of the operation and maintenance data, and improve the resource utilization rate and the operation and maintenance efficiency when the operation and maintenance data are generated.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture to which the present disclosure may be applied;
fig. 2 is a flowchart of an operation and maintenance method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of another operation and maintenance method provided by the embodiment of the present disclosure;
fig. 4 is a schematic flowchart of an operation and maintenance method applicable in an application scenario according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a structure of an operation and maintenance device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an operation and maintenance system according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device suitable for executing an operation and maintenance method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. 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 disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. It should be noted that, in the present disclosure, the embodiments and the features of the embodiments may be combined with each other without conflict.
In addition, in the technical scheme of the disclosure, the processing of acquiring, storing, using, processing, transporting, providing, disclosing and the like of the personal information of the related user meets the regulations of related laws and regulations, and does not violate the customs of public order.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the operation and maintenance method, apparatus, electronic device, and computer-readable storage medium of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. 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, among others.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various applications for realizing information communication between the terminal devices 101, 102, 103 and the server 105, such as an operation and maintenance control application, an operation state monitoring application, an instant messaging application, etc., may be installed on the terminal devices 101, 102, 103 and the server 105.
The terminal devices 101, 102, 103 and the server 105 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like; when the terminal devices 101, 102, and 103 are software, they may be installed in the electronic devices listed above, and they may be implemented as multiple software or software modules, or may be implemented as a single software or software module, and are not limited in this respect. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server; when the server is software, the server may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not limited herein.
The server 105 may provide various services through various built-in applications, so as to provide an operation and maintenance control application for remotely controlling and executing the operation and maintenance service, and when the operation and maintenance control application is run, the server 105 may achieve the following effects: firstly, responding when acquiring an operation and maintenance instruction from terminal equipment 101, 102 and 103 embodied as an operation and maintenance control end through a network 104, and processing the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the local thread group comprises a single thread and at least one coroutine; then, the server 105 sends the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction, and finally, the server 105 controls the target server to execute the operation and maintenance operation data.
It should be noted that the operation and maintenance instruction may be acquired from the terminal devices 101, 102, and 103 through the network 104, or may be stored locally in the server 105 in advance in various ways. Thus, when the server 105 detects that such data is already stored locally (e.g., a periodic operation and maintenance task remaining before starting processing), the instruction may optionally be generated and responded to autonomously from the local, in which case the exemplary system architecture 100 may also not include the terminal devices 101, 102, 103 and the network 104.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring to fig. 2, fig. 2 is a flowchart of an operation and maintenance method according to an embodiment of the disclosure, where the process 200 includes the following steps:
step 201, in response to receiving an operation and maintenance instruction sent by an operation and maintenance control end, processing the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data.
In this embodiment, after receiving an operation and maintenance instruction sent by an operation and maintenance control end, an execution subject of the operation and maintenance method (e.g., the server 105 shown in fig. 1) processes the operation and maintenance instruction by using a local thread group to generate operation and maintenance data, where the local thread group includes a single thread and at least one coroutine.
In practice, a thread group is usually embodied in a Process or built in a Process, and a Process (Process) is a running activity of a program in a computer on a data set, is a basic unit of resource allocation and scheduling of a system, and is the basis of an operating system structure. In early process-oriented design of computer architecture, processes were the basic execution entities of programs; in contemporary thread-oriented computer architectures, processes are containers for threads. A program is a description of instructions, data, and their organization, and a process is an entity of a program.
A Thread (Thread) is the smallest unit that the operating system can perform arithmetic scheduling. It is included in the process and is the actual unit of operation in the process. A thread refers to a single sequential control flow in a process, multiple threads can be concurrently executed in a process, and each thread executes different tasks in parallel. Unix systems V and SunOS are also called Lightweight processes (Lightweight processes), but Lightweight processes are more referred to as Kernel threads (Kernel threads) and User threads (User threads) are called threads, which are the basic units for independent scheduling and dispatching. The thread may be a kernel thread scheduled by the operating system kernel, such as a Win32 thread; a user Thread which is automatically scheduled by a user process, such as POSIX Thread of a Linux platform; or by the kernel in a mixed schedule with user processes, such as Windows 7 threads.
Multiple threads in the same process will share all system resources in the process, such as virtual address space, file descriptors, signal processing, etc. However, multiple threads in the same process have their own Call Stack (Call Stack), their own Register Context (Register Context), and their own Thread-local Storage.
The Coroutine (Coroutine) is also a program component, mainly originating from Simula and Modula-2 languages, the Coroutine runs on the thread, after the Coroutine is executed, it can select to make an active yield, and let another Coroutine run on the current thread, i.e. the Coroutine does not increase the number of threads, but runs a plurality of coroutines on the basis of the thread by time-sharing multiplexing mode, and its switching occurs in user mode, and it does not need to additionally switch user mode to kernel mode, so the resource cost generated and needed during switching is lower compared with the thread.
Step 202, sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction.
In this embodiment, after the operation and maintenance operation data is generated based on the step 201, the operation and maintenance operation data is sent to the target server indicated by the operation and maintenance instruction, so that the subsequent operation and maintenance work on the target server is realized by the target server through executing the operation and maintenance execution.
Step 203, controlling the target server to execute the operation and maintenance operation data.
In this embodiment, after the operation and maintenance data is sent to the target server based on the step 202, the target server is controlled to implement the operation and maintenance work on the target server by executing the operation and maintenance execution.
According to the operation and maintenance method provided by the embodiment of the disclosure, the switching between the user space and the kernel space can be reduced by using the configuration mode of single-thread multi-coroutine, the concurrent processing of the operation and maintenance data can be realized, and the resource utilization rate and the operation and maintenance efficiency when the operation and maintenance data are generated are improved.
In some optional implementations of this embodiment, the method further includes: acquiring a communication address of a target server pointed by the operation and maintenance instruction; calculating an edge local thread group of the target server based on the communication address, wherein the edge local thread group is obtained by edge calculation based on the communication address and the communication address of each local thread group; and processing the operation and maintenance instruction by using the local thread group to generate operation and maintenance operation data, wherein the operation and maintenance operation data comprises the following steps: and processing the operation and maintenance instruction by using the edge local thread group to generate operation and maintenance operation data.
Specifically, after a communication address of a target server pointed by an operation and maintenance instruction is acquired, communication capabilities of each local thread group and the target server are determined through an edge calculation method based on the communication address, wherein the edge calculation is a calculation method for providing a nearest-end service nearby by adopting an open platform with integrated network, calculation, storage and application core capabilities on one side close to an object or a data source, and after a local thread group (edge local thread group) with the strongest communication capability with the target server in an execution main body of the operation and maintenance method is determined through the calculation method, operation and maintenance operation data are issued and transmitted to the target server through the edge local thread group, so that the operation and maintenance efficiency is further improved.
In some optional implementations of this embodiment, the method further includes: and sending first feedback information to the operation and maintenance control end in response to the completion of sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction.
Specifically, after the execution main body of the operation and maintenance method finishes sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction, first feedback information is sent to the operation and maintenance control end, where the first feedback information is used to indicate that the execution main body of the operation and maintenance method finishes sending the operation and maintenance operation data, so that the operation and maintenance control end can know the operation and maintenance condition, and meanwhile, the occupation of the local thread group is removed, and the circulation efficiency of the local thread group is improved.
In some optional implementations of this embodiment, the method further includes: and controlling the target server to send second feedback information to the operation and maintenance control end after the operation and maintenance operation data is executed.
Specifically, the target server is controlled to send second feedback information to the operation and maintenance control end after the operation and maintenance operation data is executed, where the second feedback information is used to indicate the target server to complete operation and maintenance according to the operation and maintenance instruction, so that the operation and maintenance control end can know the progress of operation and maintenance work, reduce the occupied time of the operation and maintenance service for I/O (input/output), and improve the operation and maintenance efficiency.
Referring to fig. 3, fig. 3 is a flowchart of another operation and maintenance method provided in the embodiment of the present disclosure, where the process 300 includes the following steps:
step 301, in response to receiving an operation and maintenance instruction sent by an operation and maintenance control end, obtaining an operation and maintenance requirement included in the operation and maintenance instruction.
In this embodiment, after receiving an operation and maintenance instruction sent by an operation and maintenance control end, a response is made to obtain an operation and maintenance requirement included in the operation and maintenance instruction, where the operation and maintenance requirement generally includes a target server of the required operation and maintenance and an operation and maintenance item corresponding to the target server.
In practice, the operation and maintenance project may be preset based on an actual scene, for example, periodically updating the execution code of the internal component of the target server, repairing an exception existing in the data uploaded by the target server, restoring the execution code of the target server to a preset version, and adjusting the operation mode of the execution code in the target server.
Step 302, extracting a corresponding operation code from a pre-configured code database based on the operation and maintenance requirement, and generating operation and maintenance operation data based on the operation code.
In this embodiment, a code database may be constructed in advance corresponding to different operation and maintenance requirements, so that after the operation and maintenance requirements are subsequently determined, or corresponding operation codes are determined according to contents such as code tag information, an objective function, an update value and the like included in an operation and maintenance instruction, and operation and maintenance operation data is encapsulated and generated based on the operation codes.
Step 303, sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction.
Step 304, controlling the target server to execute the operation and maintenance operation data.
The step 303-.
On the basis of any one of the above embodiments, the operation and maintenance method further includes: the available number of locally available central processors is obtained, and the same local thread groups as the available number are configured.
Specifically, the number of the local available central processing units of the execution main body of the operation and maintenance method is obtained, and the local thread groups with the same number are configured according to the number of the central processing units, so that the phenomenon that the central processing units are vacant and resource waste is generated due to the fact that the local process groups are insufficient in different numbers is avoided, and the maximum use efficiency of the central processing unit resources is achieved.
For example, if the number of central processing units of the execution main body of the operation and maintenance method is M, 2 × M +1 operation and maintenance service processes may be started, so that it may be ensured that when M processes perform I/O read-write operations with a target server, M local thread groups perform calculation using the central processing unit resources, thereby achieving the maximum utilization efficiency of the central processing unit resources.
On the basis of any of the above embodiments, the target server involved in the operation and maintenance method is built based on an Advanced reduced instruction set architecture (Advanced RISC Machine, ARM for short), wherein the Advanced reduced instruction set architecture includes: a Complex Instruction Set Computer (CISC), and a Reduced Instruction Set Computer (RISC).
For further understanding, the present disclosure further provides a specific implementation scheme in combination with a specific application scenario, please refer to fig. 4, which specifically includes:
as shown in fig. 4, the operation and maintenance platform 410 includes an operation and maintenance controller 411, operation and maintenance server processes 412 and 413 including a local thread group, and a target server 421 and a target server 422 constructed based on ARM.
First, the execution agent of the operation and maintenance method may respond when receiving the operation and maintenance instruction sent by the operation and maintenance control terminal 411 (taking the example of instructing the operation and maintenance service process 412 to generate the operation and maintenance operation data to implement the operation and maintenance of the servers 421 and 422), and generate the operation and maintenance operation instruction by using the local thread group in the operation and maintenance server process 412.
The operation and maintenance operation data is then sent to the target servers 421, 422 indicated by the operation and maintenance instructions.
Finally, the target servers 421 and 422 are controlled to execute the operation and maintenance data.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an operation and maintenance device, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 5, the operation and maintenance device 500 of the present embodiment may include: an operation data generation unit 501, an operation data transmission unit 502, and an operation and maintenance execution control unit 503. The operation data generating unit 501 is configured to, in response to receiving an operation and maintenance instruction sent by an operation and maintenance control end, process the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, where the local thread group is composed of a single thread and at least one coroutine; an operation data sending unit 502 configured to send the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction; an operation and maintenance execution control unit 503, configured to control the target server to execute the operation and maintenance operation data.
In this embodiment, in the operation and maintenance device 500: the detailed processing and the technical effects thereof of the operation data generating unit 501, the operation data sending unit 502, and the operation and maintenance execution control unit 503 can be referred to the related descriptions of step 201 and step 203 in the corresponding embodiment of fig. 2, and are not described herein again.
In some optional implementations of this embodiment, the operation data generating unit 501 includes: the operation and maintenance requirement acquisition subunit is configured to respond to the received operation and maintenance instruction sent by the operation and maintenance control terminal, and acquire the operation and maintenance requirement included in the operation and maintenance instruction; and the operation data generation subunit is configured to extract a corresponding operation code from a pre-configured code database based on the operation and maintenance requirement, and generate operation and maintenance operation data based on the operation code.
In some optional implementations of this embodiment, the operation and maintenance device 500 further includes: a server address acquisition unit configured to acquire a communication address of a target server to which the operation and maintenance instruction is directed; an edge calculation unit configured to calculate an edge local thread group of the target server based on the communication address, wherein the edge local thread group is calculated based on the communication address and a communication address edge of each local thread group; and the operation data generation unit processes the operation instruction by using the local thread group to generate operation and maintenance operation data, and is further configured to: and processing the operation and maintenance instruction by using the edge local thread group to generate operation and maintenance operation data.
In some optional implementations of this embodiment, the operation and maintenance device 500 further includes: and the first feedback information sending unit is configured to send first feedback information to the operation and maintenance control end in response to the completion of sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction.
In some optional implementations of this embodiment, the operation and maintenance device 500 further includes: and the second feedback information sending unit is configured to send second feedback information to the operation and maintenance control terminal after controlling the target server to finish executing the operation and maintenance operation data.
In some optional implementations of this embodiment, the operation and maintenance device 500 further includes: and the thread group configuration unit is configured to acquire the available number of the locally available central processing units and configure the local thread groups with the same available number.
In some optional implementations of this embodiment, the target server is built based on an ARM framework.
The operation and maintenance device provided in this embodiment, which is an embodiment of a device corresponding to the above method embodiment, may not only reduce switching between a user space and a kernel space, but also implement concurrent processing on operation and maintenance data by using a single-thread multi-protocol configuration manner, thereby improving resource utilization rate and operation and maintenance efficiency when generating operation and maintenance data.
With further reference to fig. 6, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of an operation and maintenance system, and the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2.
As shown in fig. 6, the operation and maintenance system 600 of the present embodiment may include: an operation and maintenance control end 601, an operation and maintenance data sending end 602, and a target server 603. The operation and maintenance control terminal 601 is configured to send an operation and maintenance instruction to the operation and maintenance data sending terminal in response to receiving the operation and maintenance instruction information; the operation and maintenance data sending end 602 is configured to, in response to receiving an operation and maintenance instruction sent by an operation and maintenance control end, process the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, where the local thread group is composed of a single thread and at least one coroutine; and the target server 603 is configured to obtain the operation and maintenance operation data sent by the operation and maintenance data sending end, and is controlled by the operation and maintenance data sending end to locally execute the operation and maintenance operation data.
In this embodiment, in the operation and maintenance system 600, the specific processing of the operation and maintenance control terminal 601, the operation and maintenance data sending terminal 602, and the target server 603 and the technical effects brought thereby can refer to the related descriptions of step 201 and step 203 in the corresponding embodiment of fig. 2, and are not described herein again.
In some optional implementation manners of this embodiment, the operation and maintenance data sending end is configured with local thread groups, where the number of the local thread groups is the same as the available number of the central processing units locally available at the operation and maintenance data sending end.
In some alternative implementations of the present embodiment, the target server is built based on an advanced reduced instruction set architecture.
As the embodiment corresponding to the method, the operation and maintenance system provided in this embodiment not only can implement concurrent processing on the operation and maintenance data by using a configuration manner of a single-thread multi-protocol, but also can reduce switching between a user space and a kernel space, so as to achieve the purpose of improving resource utilization rate and operation and maintenance efficiency when the operation and maintenance data are generated.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. 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. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, 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 disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701 which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as the operation and maintenance method. For example, in some embodiments, the operation and maintenance method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When loaded into RAM 703 and executed by the computing unit 701, may perform one or more of the steps of the operation and maintenance method described above. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the operation and maintenance method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), 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.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
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. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in the conventional physical host and Virtual Private Server (VPS) service. The server may also be divided into servers of a distributed system, or servers that incorporate a blockchain.
According to the technical scheme of the embodiment of the disclosure, the switching between the user space and the kernel space can be reduced by utilizing the configuration mode of single-thread multi-coroutine, the concurrent processing of the operation and maintenance data can be realized, and the resource utilization rate and the operation and maintenance efficiency when the operation and maintenance operation data are generated are 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 this disclosure may be performed in parallel or sequentially or in a different order, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and are not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. 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 disclosure should be included in the scope of protection of the present disclosure.

Claims (20)

1. An operation and maintenance method, comprising:
responding to an operation and maintenance instruction sent by an operation and maintenance control end, processing the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine;
sending the operation and maintenance operation data to a target server indicated by the operation and maintenance instruction;
and controlling the target server to execute the operation and maintenance operation data.
2. The method of claim 1, wherein the generating the operation and maintenance operation data by processing the operation and maintenance instruction with a local thread group in response to receiving the operation and maintenance instruction sent by the operation and maintenance control terminal comprises:
responding to an operation and maintenance instruction sent by an operation and maintenance control end, and acquiring an operation and maintenance requirement included in the operation and maintenance instruction;
and extracting corresponding operation codes from a pre-configured code database based on the operation and maintenance requirements, and generating operation and maintenance operation data based on the operation codes.
3. The method of claim 1, further comprising:
acquiring a communication address of a target server pointed by the operation and maintenance instruction;
calculating an edge local thread group of the target server based on the communication address, wherein the edge local thread group is obtained by edge calculation based on the communication address and the communication address of each local thread group; and
processing the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the operation and maintenance operation data comprises the following steps:
and processing the operation and maintenance instruction by utilizing the edge local thread group to generate operation and maintenance operation data.
4. The method of claim 1, further comprising:
and sending first feedback information to the operation and maintenance control end in response to the completion of sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction.
5. The method of any of claims 1-4, further comprising:
and controlling the target server to send second feedback information to the operation and maintenance control terminal after the operation and maintenance operation data is executed.
6. The method of claim 1, further comprising:
the method comprises the steps of obtaining the available number of the local available central processing units, and configuring the local thread groups with the same number as the available number.
7. The method of claim 1, wherein the target server is built based on an advanced reduced instruction set architecture.
8. An operation and maintenance device comprising:
the operation data generation unit is configured to respond to an operation and maintenance instruction sent by an operation and maintenance control end, process the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine;
an operation data sending unit configured to send the operation and maintenance operation data to a target server indicated by the operation and maintenance instruction;
and the operation and maintenance execution control unit is configured to control the target server to execute the operation and maintenance operation data.
9. The apparatus of claim 8, wherein the operation data generation unit comprises:
the operation and maintenance requirement acquisition subunit is configured to respond to the received operation and maintenance instruction sent by the operation and maintenance control terminal, and acquire the operation and maintenance requirement included in the operation and maintenance instruction;
and the operation data generation subunit is configured to extract a corresponding operation code from a pre-configured code database based on the operation and maintenance requirement, and generate operation and maintenance operation data based on the operation code.
10. The apparatus of claim 8, further comprising:
a server address acquisition unit configured to acquire a communication address of a target server to which the operation and maintenance instruction is directed;
an edge calculation unit configured to calculate an edge local thread group of the target server based on the communication address, wherein the edge local thread group is calculated based on the communication address and a communication address edge of each local thread group; and
the operation data generation unit processes the operation and maintenance instruction by using a local thread group to generate operation and maintenance operation data, and is further configured to:
and processing the operation and maintenance instruction by utilizing the edge local thread group to generate operation and maintenance operation data.
11. The apparatus of claim 8, further comprising:
and the first feedback information sending unit is configured to send first feedback information to the operation and maintenance control terminal in response to the completion of sending the operation and maintenance operation data to the target server indicated by the operation and maintenance instruction.
12. The apparatus of any of claims 8-11, further comprising:
and the second feedback information sending unit is configured to send second feedback information to the operation and maintenance control terminal after controlling the target server to finish executing the operation and maintenance operation data.
13. The apparatus of claim 8, further comprising:
and the thread group configuration unit is configured to acquire the available number of the locally available central processing units and configure the same local thread groups as the available number.
14. The apparatus of claim 8, the target server built based on an advanced reduced instruction set architecture.
15. An operation and maintenance system comprising:
the operation and maintenance control terminal is configured to respond to the received operation and maintenance indication information and send an operation and maintenance instruction to the operation and maintenance data sending terminal;
the operation and maintenance data sending end is configured to respond to an operation and maintenance instruction sent by the operation and maintenance control end, process the operation and maintenance instruction by using a local thread group and generate operation and maintenance operation data, wherein the local thread group consists of a single thread and at least one coroutine;
and the target server is configured to acquire the operation and maintenance operation data sent by the operation and maintenance data sending end, is controlled by the operation and maintenance data sending end, and locally executes the operation and maintenance operation data.
16. The system of claim 15, wherein the operation and maintenance data sender has configured therein the same number of local thread groups as the number of available central processors locally available to the operation and maintenance data sender.
17. The system of claim 15, wherein the target server is built based on an advanced reduced instruction set architecture.
18. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the operation and maintenance method of any of claims 1-7.
19. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the operation and maintenance method of any of claims 1-7.
20. A computer program product comprising a computer program which, when executed by a processor, implements the operation and maintenance method according to any one of claims 1-7.
CN202210733442.1A 2022-06-27 2022-06-27 Operation and maintenance method, device, system and computer program product Pending CN115061817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210733442.1A CN115061817A (en) 2022-06-27 2022-06-27 Operation and maintenance method, device, system and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210733442.1A CN115061817A (en) 2022-06-27 2022-06-27 Operation and maintenance method, device, system and computer program product

Publications (1)

Publication Number Publication Date
CN115061817A true CN115061817A (en) 2022-09-16

Family

ID=83202895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210733442.1A Pending CN115061817A (en) 2022-06-27 2022-06-27 Operation and maintenance method, device, system and computer program product

Country Status (1)

Country Link
CN (1) CN115061817A (en)

Similar Documents

Publication Publication Date Title
EP4080362A2 (en) Method and apparatus for creating a container
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN113867916A (en) Task processing method and device and electronic equipment
CN112925651A (en) Application resource deployment method, device, electronic equipment and medium
CN113377665B (en) Container technology-based testing method and device, electronic equipment and storage medium
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
EP4060496A2 (en) Method, apparatus, device and storage medium for running inference service platform
CN115964153A (en) Asynchronous task processing method, device, equipment and storage medium
CN115794262A (en) Task processing method, device, equipment, storage medium and program product
CN113419880B (en) Cloud mobile phone root authority acquisition method, related device and computer program product
CN113608765A (en) Data processing method, device, equipment and storage medium
CN114490048A (en) Task execution method and device, electronic equipment and computer storage medium
CN112398669A (en) Hadoop deployment method and device
CN113742075A (en) Task processing method, device and system based on cloud distributed system
CN113986497A (en) Queue scheduling method, device and system based on multi-tenant technology
CN113032093A (en) Distributed computing method, device and platform
CN114116487B (en) Pressure testing method and device, electronic equipment and storage medium
CN115061817A (en) Operation and maintenance method, device, system and computer program product
CN113867920A (en) Task processing method and device, electronic equipment and medium
CN114416357A (en) Method and device for creating container group, electronic equipment and medium
CN113032092A (en) Distributed computing method, device and platform
CN117009000A (en) Component, method, device, apparatus and medium for operating open source buddha system
CN118132232A (en) Method, apparatus, device, storage medium and program product for executing offline tasks
CN113535187A (en) Service online method, service updating method and service providing method
CN115373752A (en) Service processing method, device 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