CN117076427A - Server data management method, device, equipment and storage medium - Google Patents

Server data management method, device, equipment and storage medium Download PDF

Info

Publication number
CN117076427A
CN117076427A CN202311120306.6A CN202311120306A CN117076427A CN 117076427 A CN117076427 A CN 117076427A CN 202311120306 A CN202311120306 A CN 202311120306A CN 117076427 A CN117076427 A CN 117076427A
Authority
CN
China
Prior art keywords
target
file
server
instruction
weight
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
CN202311120306.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.)
Jinzhuan Xinke Co Ltd
Original Assignee
Jinzhuan Xinke 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 Jinzhuan Xinke Co Ltd filed Critical Jinzhuan Xinke Co Ltd
Priority to CN202311120306.6A priority Critical patent/CN117076427A/en
Publication of CN117076427A publication Critical patent/CN117076427A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/217Database tuning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a server data management method, a device, equipment and a storage medium, which belong to the technical field of servers, wherein the method is executed by a server agent arranged on the server and comprises the following steps: under the condition that the target instruction in the target instruction request is a high-weight instruction, determining whether a user corresponding to the server agent exists in a high-weight user file in the server according to the target quantity of the current high-weight instruction in the server; if yes, updating the target quantity, and executing the target instruction to obtain a target execution result; and feeding back the target execution result to the instruction sender of the target instruction request. The invention standardizes the execution of the high-weight instruction in the distributed database, solves the concurrency problem of the high-weight instruction in the distributed database, and improves the usability of the distributed database.

Description

Server data management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a storage medium for server data management.
Background
With the application of distributed databases, the business scene is more complex, the database system is more and more huge, and particularly, in the large cluster and multi-node scene, a set of database system can be deployed by hundreds or thousands of servers at times. Therefore, a system and efficient server data management mechanism becomes particularly important.
In the existing server data management method, the sudo high-authority command is used more randomly, and the unified authority control is lacked, so that the security is low. In addition, the commands such as scp and expect are often used for file transmission and remote execution, a unified file transmission channel and execution command channel in the database are not available, the state of each server cannot be accurately known, and the process information on each server cannot be counted in real time.
Disclosure of Invention
The invention provides a server data management method, a device, equipment and a storage medium, which are used for standardizing the execution of high-weight instructions in a distributed database, solving the concurrency problem of the high-weight instructions in the distributed database and improving the usability of the distributed database.
According to an aspect of the present invention, there is provided a server data management method performed by a server agent installed on a server, the method comprising:
under the condition that the target instruction in the target instruction request is a high-weight instruction, determining whether a user corresponding to the server agent exists in a high-weight user file in the server according to the target quantity of the current high-weight instruction in the server;
if yes, updating the target quantity, and executing the target instruction to obtain a target execution result;
and feeding back the target execution result to the instruction sender of the target instruction request.
According to another aspect of the present invention, there is provided a server data management apparatus, which is executed by a server agent installed on a server, the apparatus comprising:
the user verification module is used for determining whether a user corresponding to the server agent exists in a high-weight user file in the server according to the target number of the current high-weight instructions in the server under the condition that the target instructions in the target instruction request are high-weight instructions;
the execution result determining module is used for updating the target quantity if yes, and executing the target instruction to obtain a target execution result;
and the execution result feedback module is used for feeding back the target execution result to the instruction sender of the target instruction request.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the server data management method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a server data management method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, under the condition that the target instruction in the target instruction request is a high-weight instruction, whether a user corresponding to a server agent exists in a high-weight user file in the server is determined according to the target quantity of the current high-weight instruction in the server; if yes, updating the target quantity, and executing the target instruction to obtain a target execution result; and feeding back the target execution result to the instruction sender of the target instruction request. According to the technical scheme, whether the user corresponding to the server agent is added to the high-weight user file is determined according to the number of the current high-weight instructions in the server, so that frequent modification of the high-weight user file is reduced, and the accuracy of the high-weight user file is ensured; meanwhile, all the high-weight instructions are executed uniformly by the server agent, so that the execution of the high-weight instructions in the distributed database is standardized, the concurrence problem of the high-weight instructions in the distributed database is solved, and the usability of the distributed database is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for server data management according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a server data management method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server data management device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a server data management method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "object," "first," and "second," and the like in the description and claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, in the technical scheme of the invention, the processing such as collection, storage, use, processing, transmission, provision and disclosure of the related target instruction request, target acquisition task, file transmission request and the like all conform to the regulations of related laws and regulations and do not violate the popular regulations.
Example 1
Fig. 1 is a flowchart of a server data management method according to a first embodiment of the present invention, where the embodiment is applicable to a case where a server in a distributed database performs data management, and in particular, to a case where a server in a distributed database in a linux system performs data management. As shown in fig. 1, the method is performed by a server agent installed on a server, and includes:
s101, under the condition that a target instruction in a target instruction request is a high-weight instruction, determining whether a user corresponding to a server agent exists in a high-weight user file in a server according to the target number of the current high-weight instruction in the server.
The target instruction request refers to an instruction request received by the current server agent from an instruction sender; the target instruction request comprises the ip address and port value of the instruction executing party, a high-weight instruction identifier and a synchronous and asynchronous identifier. The instruction sender refers to a party sending a target instruction request. Accordingly, the instruction execution party refers to a party that executes the target instruction. The target instruction refers to an instruction in the target instruction request. The target number refers to the number of high-weight instructions other than the target instruction in the server where the server agent is located. High-authority instructions refer to instructions that are executed by a superadministrator in a distributed database. The high-authority user file refers to a file for storing a high-authority user. It should be noted that, the user corresponding to the server agent belongs to the high-authority user; alternatively, the user to which the server agent corresponds may be an insight.
Specifically, under the condition that the target instruction in the target instruction request is a high-weight instruction, a server agent installed on a server compares the target number of the current high-weight instruction in the server with a number threshold; if the target number of the current high-weight instructions in the server is equal to the number threshold, determining that no user corresponding to the server agent exists in the high-weight user file; if the target number is greater than the number threshold, determining that the user corresponding to the server agent exists in the high-authority user file.
The number threshold may be preset according to an actual service requirement, for example, the number threshold may be 0, which is not specifically limited in the embodiment of the present invention.
For example, if the target number is 0 and the number threshold is 0, it is known that, in the case that the target instruction in the target instruction request is the high-weight instruction, the target number of the current high-weight instruction in the server is equal to the number threshold, and it is determined that the user corresponding to the server agent does not exist in the high-weight user file.
Optionally, when the target instruction in the target instruction request is a high-weight instruction and it is determined that the user corresponding to the server agent does not exist in the high-weight user file, the target number is increased by 1, and the user corresponding to the server agent is added to the high-weight user file.
For example, if the target number is 2 and the number threshold is 0, it is known that, in the case that the target instruction in the target instruction request is a high-weight instruction, the target number of the current high-weight instruction in the server is greater than the number threshold, and it is determined that the user corresponding to the server agent exists in the high-weight user file.
Optionally, in the case that the target instruction in the target instruction request is a high-weight instruction and it is determined that the user corresponding to the server agent exists in the high-weight user file, only the target number is increased by 1.
It can be understood that whether the high-weight user file is modified is truly performed by counting the target number of the current high-weight instructions in the server in real time, so that frequent modification of the high-weight user file in the server is avoided, and the security of the high-weight user file in the server is improved.
S102, if yes, updating the target quantity, and executing the target instruction to obtain a target execution result.
The target execution result refers to a result obtained after the target instruction is executed.
Specifically, under the condition that the user corresponding to the server agent exists in the high-authority user file, the server agent adds 1 to the target quantity and executes the target instruction to obtain a target execution result.
S103, feeding back a target execution result to an instruction sender of the target instruction request.
Specifically, the server agent feeds back the target execution result to the instruction sender of the target instruction request.
According to the technical scheme of the embodiment of the invention, under the condition that the target instruction in the target instruction request is a high-weight instruction, whether a user corresponding to a server agent exists in a high-weight user file in the server is determined according to the target quantity of the current high-weight instruction in the server; if yes, updating the target quantity, and executing the target instruction to obtain a target execution result; and feeding back the target execution result to the instruction sender of the target instruction request. According to the technical scheme, whether the user corresponding to the server agent is added to the high-weight user file is determined according to the number of the current high-weight instructions in the server, so that frequent modification of the high-weight user file is reduced, and the accuracy of the high-weight user file is ensured; meanwhile, all the high-weight instructions are executed uniformly by the server agent, so that the execution of the high-weight instructions in the distributed database is standardized, the concurrence problem of the high-weight instructions in the distributed database is solved, and the usability of the distributed database is improved.
Based on the above embodiments, as an alternative manner of the embodiment of the present invention, it may also be determined whether the target instruction in the target instruction request is a high-authority instruction according to the high-authority instruction identifier in the target instruction request.
For example, if the high-weight instruction in the target instruction request is identified as flag; under the condition that the value of the flag is 1, determining that a target instruction in a target instruction request is a high-weight instruction; in the case where the value of flag is 0, it is determined that the target instruction in the target instruction request is not a high-weight instruction.
It can be understood that the server agent distinguishes the target instruction in the target instruction request before executing the target instruction according to the target instruction request, so that the target instruction is processed in different modes according to the type of the target instruction later, and the processing speed of the target instruction is improved.
On the basis of the above embodiment, as an alternative manner of the embodiment of the present invention, after feeding back the target execution result to the instruction sender of the target instruction request, the server agent may reckon the target number of the current high-weight instruction in the server, and if the target number is 1, delete the user corresponding to the server agent from the high-weight user file in the server; if the target number is greater than 1, the target number is reduced by 1, but the high-weight user file in the server is not modified, so that frequent modification of the high-weight user file is effectively avoided, and the security of the high-weight user file in the server is improved.
Example two
Fig. 2 is a flowchart of a server data management method according to a second embodiment of the present invention, where an alternative implementation manner in which a server agent collects distributed database information is provided based on the above embodiment. In the embodiments of the present invention, parts not described in detail may be referred to for related expressions of other embodiments. As shown in fig. 2, the method is performed by a server agent installed on a server, and includes:
s201, under the condition that the target instruction in the target instruction request is a high-weight instruction, determining whether a user corresponding to the server agent exists in a high-weight user file in the server according to the target number of the current high-weight instruction in the server.
S202, if yes, updating the target quantity, and executing the target instruction to obtain a target execution result.
S203, feeding back the target execution result to the instruction sender of the target instruction request.
S204, acquiring a target acquisition task issued by the operation and maintenance platform.
The operation and maintenance platform refers to a portal platform of the distributed database. The target acquisition task is acquired by the server agent from the operation and maintenance platform; alternatively, the target acquisition task may be a task that acquires component indicators in a distributed database. Alternatively, the target acquisition task may be an acquisition task that counts the number of GTIDs (global transaction identifiers, global Transaction Identifier) active and released in the distributed database.
Specifically, the server agent acquires a target acquisition task issued by the operation and maintenance platform from the distributed coordination service module. The distributed coordination service module is used for providing distributed coordination service and storing user operation issued by the Chu Yunwei platform management side. The operation and maintenance platform management party refers to a party for managing data on the operation and maintenance platform, and is used for processing user operation on the operation and maintenance platform and issuing the processed user operation to the distributed coordination service module.
S205, selecting a target acquisition component corresponding to the target acquisition task from the candidate acquisition components according to the acquisition content of the target acquisition task.
Wherein, the candidate acquisition component refers to an acquisition component with a communication link with the server agent. Acquisition component refers to a component for performing an acquisition task. The target acquisition component refers to a component that performs a target acquisition task.
Specifically, according to the acquisition component identification information in the acquisition content of the target acquisition task, a candidate component corresponding to the acquisition component identification information can be selected from candidate acquisition components to serve as a target acquisition component corresponding to the target acquisition task. The acquisition component identification information is used for uniquely identifying the acquisition component; alternatively, the collection component identification information may take the form of numbers, letters, or numbers plus letters, etc.
S206, calling a target acquisition component to execute a target acquisition task to obtain a data acquisition result.
Specifically, the server agent invokes a process in the target acquisition component, such as Omagent (OMA), to perform the target acquisition task to obtain the data acquisition result.
S207, storing the data acquisition result into a target acquisition file, reporting the target acquisition file to an operation and maintenance platform management party, and displaying the data on the operation and maintenance platform after the data acquisition result is processed by the operation and maintenance platform management party.
The target acquisition file refers to an acquisition file used by the server agent for storing data acquisition results. Specifically, the server agent stores the data acquisition result into the target acquisition file, reports the target acquisition file to the operation and maintenance platform management party, and displays the data on the operation and maintenance platform after the data acquisition result is processed by the operation and maintenance platform management party.
The technical scheme of the embodiment of the invention realizes the real-time acquisition of server state information (such as process information and network delay) and database service indexes (such as component indexes) in the distributed database, ensures the data security of the distributed database, and improves the efficient acquisition of the distributed database information under the condition of not affecting the database service.
On the basis of the above embodiment, as an alternative manner of the embodiment of the present invention, it is also possible to: under the condition that password verification is not needed, acquiring a file transmission request; the file transmission request comprises a file name, a transmission path and a destination path of a file to be transmitted; determining whether the file to be transmitted exists according to the transmission path of the file to be transmitted; extracting a destination directory of the file to be transmitted from a destination path of the file to be transmitted under the condition that the file to be transmitted exists; and transmitting the file to be transmitted to the target directory under the condition that the residual memory space of the target directory meets the file storage condition.
Wherein, the file transmission request refers to a request for transmitting a file; optionally, the file transfer request includes a file upload request and a file download request. Correspondingly, the file to be transmitted comprises the file to be uploaded and the file to be downloaded. The transmission path refers to a file path in which a file to be transmitted is located. The destination path refers to a file path that the file to be transmitted needs to reach. The destination directory refers to a directory in which files to be transferred are stored in the destination path. The file storage condition refers to a condition that a file to be transmitted is stored in a target directory; optionally, the file storage condition is that the remaining memory space of the target directory is larger than the memory space occupied by the file to be transmitted.
Illustratively, the server agent obtains the file upload request without password verification; according to the transmission path of the file to be uploaded in the file uploading request, indexing whether the file to be uploaded exists in the transmission path; if the file to be uploaded does not exist in the transmission path, generating prompt information of file uploading failure so as to inform a sender of a file uploading request that the file uploading fails; if the file to be uploaded exists in the transmission path, extracting a destination directory of the file to be uploaded from a destination path of the file to be uploaded; detecting whether the target catalogue meets the file storage condition, if so, uploading the file to be uploaded to the target catalogue; if the target directory does not meet the file storage condition, generating prompt information of file uploading failure so as to inform a sender of a file uploading request of the file uploading failure.
Illustratively, the server agent obtains the file download request without password verification; according to the transmission path of the file to be downloaded in the file downloading request, indexing whether the file to be downloaded exists in the transmission path; if the file to be downloaded does not exist in the transmission path, generating prompt information of file downloading failure so as to inform a sender of a file downloading request of the file downloading failure; if the file to be downloaded exists in the transmission path, extracting a destination directory of the file to be downloaded from a destination path of the file to be downloaded; detecting whether the target catalogue meets the file storage condition, and if the target catalogue meets the file storage condition, downloading the file to be downloaded to the target catalogue; if the target directory does not meet the file storage condition, generating prompt information of file downloading failure so as to inform a sender of a file downloading request of the file downloading failure.
It can be understood that the server agent can ensure the data security in the file transmission process of the distributed database, realize the rapid transmission of the files in the distributed database, avoid frequent password verification and improve the convenience of file transmission in the distributed database.
In addition, the group of the files to be transmitted in the target directory can be modified according to the actual service requirement, so that the use authority of the users to the files to be transmitted in the distributed database system can be modified.
Example III
Fig. 3 is a schematic structural diagram of a server data management device according to a third embodiment of the present invention, where the present embodiment is applicable to a case of data management of servers in a distributed database, and particularly to a case of data management of servers in a distributed database in a linux system. As shown in fig. 3, the apparatus is executed by a server agent installed on a server, and includes:
the user verification module 301 is configured to determine, according to a target number of current high-weight instructions in the server, whether a user corresponding to the server agent exists in a high-weight user file in the server when the target instruction in the target instruction request is the high-weight instruction;
the execution result determining module 302 is configured to update the target number if yes, and execute the target instruction to obtain a target execution result;
and the execution result feedback module 303 is configured to feed back the target execution result to the instruction sender of the target instruction request.
According to the technical scheme of the embodiment of the invention, under the condition that the target instruction in the target instruction request is a high-weight instruction, whether a user corresponding to a server agent exists in a high-weight user file in the server is determined according to the target quantity of the current high-weight instruction in the server; if yes, updating the target quantity, and executing a target instruction request to obtain a target execution result; and feeding back the target execution result to the instruction sender of the target instruction request. According to the technical scheme, whether the user corresponding to the server agent is added to the high-weight user file is determined according to the number of the current high-weight instructions in the server, so that frequent modification of the high-weight user file is reduced, and the accuracy of the high-weight user file is ensured; meanwhile, all the high-weight instructions are executed uniformly by the server agent, so that the execution of the high-weight instructions in the distributed database is standardized, the concurrence problem of the high-weight instructions in the distributed database is solved, and the usability of the distributed database is improved.
Optionally, the apparatus further comprises:
and the high-right instruction determining module is used for determining whether the instruction in the target instruction request is a high-right instruction according to the high-right instruction identifier in the target instruction request.
Optionally, the user verification module 301 is specifically configured to:
if the target number of the current high-weight instructions in the server is equal to the number threshold, determining that the users with server agents do not exist in the high-weight user file;
if the target number is greater than the number threshold, determining that the user corresponding to the server agent exists in the high-authority user file.
Optionally, the apparatus further comprises:
the acquisition task acquisition module is used for acquiring a target acquisition task issued by the operation and maintenance platform;
the acquisition component selection module is used for selecting a target acquisition component corresponding to the target acquisition task from the candidate acquisition components according to the acquisition content of the target acquisition task;
the acquisition result determining module is used for calling the target acquisition component to execute a target acquisition task to obtain a data acquisition result;
and the acquisition result storage module is used for storing the data acquisition result into a target acquisition file, reporting the target acquisition file to the operation and maintenance platform management party, processing the data acquisition result by the operation and maintenance platform management party, and displaying the data acquisition result on the operation and maintenance platform.
Optionally, the apparatus further comprises:
the transmission request acquisition module is used for acquiring a file transmission request under the condition that password verification is not needed; the file transmission request comprises a file name, a transmission path and a destination path of a file to be transmitted;
the file to be transmitted checking module is used for determining whether the file to be transmitted exists according to the transmission path of the file to be transmitted;
the target directory extraction module is used for extracting a target directory of the file to be transmitted from a target path of the file to be transmitted under the condition that the file to be transmitted exists;
and the file transmission module to be transmitted is used for transmitting the file to be transmitted to the target catalog under the condition that the residual memory space of the target catalog meets the file storage condition.
Optionally, the file transfer request includes a file upload request and a file download request.
Optionally, the file storage condition is that the remaining memory space of the target directory is larger than the memory space occupied by the file to be transmitted.
The server data management device provided by the embodiment of the invention can execute the server data management method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the server data management methods.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. 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 equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a server data management method.
In some embodiments, the server data management method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of the server data management method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the server data management method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program 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 the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage 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. Alternatively, the computer readable storage medium may be a machine readable signal medium. 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 an electronic device 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) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically 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 can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A server data management method performed by a server agent installed on a server, the method comprising:
under the condition that the target instruction in the target instruction request is a high-weight instruction, determining whether a user corresponding to the server agent exists in a high-weight user file in the server according to the target quantity of the current high-weight instruction in the server;
if yes, updating the target quantity, and executing the target instruction to obtain a target execution result;
and feeding back the target execution result to the instruction sender of the target instruction request.
2. The method according to claim 1, wherein the method further comprises:
and determining whether the target instruction in the target instruction request is a high-weight instruction according to the high-weight instruction identifier in the target instruction request.
3. The method of claim 1, wherein determining whether the user corresponding to the server agent exists in the high-weight user file in the server according to the target number of current high-weight instructions in the server comprises:
if the target number of the current high-weight instructions in the server is equal to a number threshold, determining that no user corresponding to the server agent exists in the high-weight user file;
and if the target number is greater than a number threshold, determining that the user corresponding to the server agent exists in the high-authority user file.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
acquiring a target acquisition task issued by an operation and maintenance platform;
selecting a target acquisition component corresponding to the target acquisition task from candidate acquisition components according to the acquisition content of the target acquisition task;
invoking the target acquisition component to execute the target acquisition task to obtain a data acquisition result;
and storing the data acquisition result into a target acquisition file, reporting the target acquisition file to an operation and maintenance platform management party, and displaying the data on the operation and maintenance platform after the data acquisition result is processed by the operation and maintenance platform management party.
5. A method according to any one of claims 1-3, characterized in that the method further comprises:
under the condition that password verification is not needed, acquiring a file transmission request; the file transmission request comprises a file name, a transmission path and a destination path of a file to be transmitted;
determining whether the file to be transmitted exists according to the transmission path of the file to be transmitted;
extracting a destination directory of the file to be transmitted from a destination path of the file to be transmitted under the condition that the file to be transmitted exists;
and transmitting the file to be transmitted to the target directory under the condition that the residual memory space of the target directory meets the file storage condition.
6. The method of claim 5, wherein the file transfer request comprises a file upload request and a file download request.
7. The method of claim 5, wherein the file storage condition is that a remaining memory space of the destination directory is greater than a memory space occupied by the file to be transferred.
8. A server data management apparatus, performed by a server agent installed on a server, the apparatus comprising:
the user verification module is used for determining whether a user corresponding to the server agent exists in a high-weight user file in the server according to the target number of the current high-weight instructions in the server under the condition that the target instructions in the target instruction request are high-weight instructions;
the execution result determining module is used for updating the target quantity if yes, and executing the target instruction to obtain a target execution result;
and the execution result feedback module is used for feeding back the target execution result to the instruction sender of the target instruction request.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the server data management method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the server data management method of any one of claims 1-7 when executed.
CN202311120306.6A 2023-09-01 2023-09-01 Server data management method, device, equipment and storage medium Pending CN117076427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311120306.6A CN117076427A (en) 2023-09-01 2023-09-01 Server data management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311120306.6A CN117076427A (en) 2023-09-01 2023-09-01 Server data management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117076427A true CN117076427A (en) 2023-11-17

Family

ID=88711557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311120306.6A Pending CN117076427A (en) 2023-09-01 2023-09-01 Server data management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117076427A (en)

Similar Documents

Publication Publication Date Title
CN112433757A (en) Method and device for determining interface calling relationship
CN116451619A (en) Component information processing method, device, medium and equipment
CN117076427A (en) Server data management method, device, equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115543416A (en) Configuration updating method and device, electronic equipment and storage medium
CN115242731A (en) Message processing method, device, equipment and storage medium
CN114564149A (en) Data storage method, device, equipment and storage medium
CN114553894B (en) Data synchronization method, device, system and storage medium
CN117609150A (en) Data migration method, device, equipment and medium
CN117650967A (en) Multi-cluster index processing method, system, electronic equipment and storage medium
CN117938909A (en) Data transmission method, device, equipment and medium
CN115757275A (en) Asset information management method and device, electronic equipment and storage medium
CN115794609A (en) Script sharing method and device, electronic equipment and storage medium
CN117785413A (en) Task forwarding method, device, equipment and storage medium
CN117156398A (en) Message processing method, device, electronic equipment and storage medium
CN116089499A (en) Data statistics method, device and medium based on kafka data volume
CN115983222A (en) EasyExcel-based file data reading method, device, equipment and medium
CN117112354A (en) Early warning method, device, equipment and storage medium of application program
CN117875282A (en) Test workload statistics method, device, equipment and storage medium
CN115203158A (en) Data comparison method, device, equipment and storage medium
CN117931155A (en) Code generation method, device, equipment and medium
CN114996243A (en) Database operation method and device, electronic equipment and storage medium
CN118093048A (en) Multi-module starting management method, device, equipment and medium
CN116703493A (en) Invoice quantity monitoring method and device, electronic equipment and medium
CN117806797A (en) Unified scheduling method and device for tasks, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination