CN106301906B - Object configuration method and device based on distributed system - Google Patents

Object configuration method and device based on distributed system Download PDF

Info

Publication number
CN106301906B
CN106301906B CN201610654772.6A CN201610654772A CN106301906B CN 106301906 B CN106301906 B CN 106301906B CN 201610654772 A CN201610654772 A CN 201610654772A CN 106301906 B CN106301906 B CN 106301906B
Authority
CN
China
Prior art keywords
configuration
server
identifier
attribute information
information
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.)
Active
Application number
CN201610654772.6A
Other languages
Chinese (zh)
Other versions
CN106301906A (en
Inventor
于敏昌
于芝涛
夏章抓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201610654772.6A priority Critical patent/CN106301906B/en
Publication of CN106301906A publication Critical patent/CN106301906A/en
Application granted granted Critical
Publication of CN106301906B publication Critical patent/CN106301906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an object configuration method and device based on a distributed system, wherein the method comprises the following steps: acquiring a configuration instruction input by a user, wherein the configuration instruction comprises attribute information of an object to be configured in a plurality of servers; generating configuration information corresponding to each object to be configured according to the attribute information; and sending corresponding configuration information to each object to be configured so that each object to be configured configures the attribute according to the corresponding configuration information. For improving object configuration efficiency.

Description

Object configuration method and device based on distributed system
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an object configuration method and device based on a distributed system.
Background
At present, with the continuous development of internet technology, the number of internet users is continuously increased, and the demand of users for network services is also continuously increased, so that a distributed system is widely applied.
The distributed system includes a plurality of servers, each of which includes a plurality of objects (e.g., network elements, data processing modules, etc.). In order to ensure that the objects in each server can operate normally, the objects in the servers need to be configured, for example, available physical resources (such as memory, processors, etc.) of the objects are configured, and network information (such as communication ports, thread number, etc.) of the objects is configured. In the prior art, when objects in a distributed system need to be configured, the objects in each server need to be configured one by one, specifically, for any one server, the performance (for example, memory, processor, etc.) of the server is determined first, and each object in the server is configured according to the performance of the server.
However, in the prior art, when the distribution system includes more servers, it takes a longer time to complete the configuration of each object in the distribution system, which results in a lower efficiency of object configuration.
Disclosure of Invention
The embodiment of the invention provides an object configuration method and device based on a distributed system, which are used for improving the object configuration efficiency.
In a first aspect, an embodiment of the present invention provides an object configuration method based on a distributed system, including:
acquiring a configuration instruction input by a user, wherein the configuration instruction comprises attribute information of an object to be configured in a plurality of servers;
generating configuration information corresponding to each object to be configured according to the attribute information;
and sending corresponding configuration information to each object to be configured so that each object to be configured configures the attribute according to the corresponding configuration information.
In a possible implementation manner, the obtaining of the configuration instruction input by the user includes:
acquiring identifiers of the plurality of servers, identifiers of objects to be configured corresponding to the servers and at least one attribute information, wherein the identifiers are input by a user;
and processing the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each server and at least one attribute information according to a preset instruction rule to generate the configuration instruction.
In another possible implementation manner, the obtaining the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each of the servers, and the at least one attribute information, which are input by the user, includes:
displaying a server identification input box, and receiving the identifications of the plurality of servers input in the server identification input box by a user;
displaying an object identifier input box to be configured corresponding to each server, and receiving an identifier of an object to be configured corresponding to each server, which is input in each object identifier input box to be configured by a user;
and displaying an attribute information input box, and receiving the at least one attribute information input by the user in the attribute information input box.
In another possible implementation manner, the generating configuration information corresponding to each object to be configured according to the attribute information includes:
acquiring a configuration information template which can be identified by the object to be configured;
analyzing the configuration instruction to acquire the identifier of each server, the identifier of each object to be configured and attribute information which are included in the configuration instruction;
and generating configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information and the configuration information template.
In another possible implementation manner, the sending the corresponding configuration information to each object to be configured includes:
analyzing the configuration instruction to obtain the identifier of each server and the identifier of the object to be configured corresponding to each server in the configuration instruction;
respectively acquiring the destination address of each server;
and respectively sending corresponding configuration information to the object to be configured corresponding to each server according to the destination address of each server.
In another possible implementation manner, before sending the configuration information to each object to be configured, the method further includes
Receiving a configuration request message sent by the object to be configured, wherein the configuration request message is used for requesting to acquire the attribute information;
correspondingly, sending the configuration information to each object to be configured includes:
and sending the configuration information to each object to be configured according to the configuration request information.
In a second aspect, an embodiment of the present invention provides an object configuration apparatus based on a distributed system, including:
the system comprises an acquisition module, a configuration module and a configuration module, wherein the acquisition module is used for acquiring a configuration instruction input by a user, and the configuration instruction comprises attribute information of an object to be configured in a plurality of servers;
the generating module is used for generating configuration information corresponding to each object to be configured according to the attribute information;
and the sending module is used for sending corresponding configuration information to each object to be configured so that each object to be configured configures the attribute according to the corresponding configuration information.
In one possible embodiment, the acquisition module comprises an acquisition unit and a generation unit, wherein,
the acquiring unit is used for acquiring the identifiers of the servers, the identifiers of the objects to be configured corresponding to the servers and at least one attribute information, which are input by a user;
the generating unit is configured to process, according to a preset instruction rule, the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each of the servers, and at least one attribute information, and generate the configuration instruction.
In another possible implementation manner, the obtaining unit is specifically configured to:
displaying a server identification input box, and receiving the identifications of the plurality of servers input in the server identification input box by a user;
displaying an object identifier input box to be configured corresponding to each server, and receiving an identifier of an object to be configured corresponding to each server, which is input in each object identifier input box to be configured by a user;
and displaying an attribute information input box, and receiving the at least one attribute information input by the user in the attribute information input box.
In another possible implementation manner, the generating module is specifically configured to:
acquiring a configuration information template which can be identified by the object to be configured;
analyzing the configuration instruction to acquire the identifier of each server, the identifier of each object to be configured and attribute information which are included in the configuration instruction;
and generating configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information and the configuration information template.
In another possible implementation manner, the sending module is specifically configured to:
analyzing the configuration instruction to obtain the identifier of each server and the identifier of the object to be configured corresponding to each server in the configuration instruction;
respectively acquiring the destination address of each server;
and respectively sending corresponding configuration information to the object to be configured corresponding to each server according to the destination address of each server.
In another possible embodiment, the apparatus further comprises a receiving module, wherein,
the receiving module is configured to receive a configuration request message sent by the objects to be configured before the sending module sends the configuration information to each of the objects to be configured, where the configuration request message is used to request to acquire the attribute information;
correspondingly, the sending module is specifically configured to send the configuration information to each object to be configured according to the configuration request information.
According to the object configuration method and device based on the distributed system, when a user needs to configure the attributes of the objects to be configured in the servers, the user inputs a configuration instruction comprising attribute information of the objects to be configured in the servers, the object configuration device generates configuration information corresponding to the objects to be configured according to the attribute information in the configuration instruction, and sends the corresponding configuration information to the objects to be configured, so that the objects to be configured configure the attributes according to the corresponding configuration information. In the above process, the configuration instruction input by the user may instruct to configure the attributes of the objects to be configured in the multiple servers at the same time, so that the object configuration device may configure the attributes of the objects to be configured in the multiple servers at the same time according to the configuration instruction, and the user is not required to configure the objects to be configured in each server, thereby improving the efficiency of object configuration.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is an application scenario diagram of an object configuration method based on a distributed system according to the present invention;
FIG. 2 is a schematic flow chart of an object configuration method based on a distributed system according to the present invention;
FIG. 3 is a flowchart illustrating a method for obtaining configuration instructions according to the present invention;
FIG. 4 is a diagram of a terminal interface provided by the present invention;
FIG. 5 is a flowchart illustrating a method for generating configuration information according to the present invention;
FIG. 6 is a first schematic structural diagram of an object configuration apparatus based on a distributed system according to the present invention;
fig. 7 is a schematic structural diagram of an object configuration apparatus based on a distributed system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is an application scenario diagram of the object configuration method based on the distributed system according to the present invention, please refer to fig. 1, which includes a distributed system 101 and an object configuration apparatus 102. The distributed system 101 may include a plurality of servers (respectively denoted as 101-1 to 101-N), and each server may include the same or different objects. The object configuration apparatus 102 can configure each object in the distributed system 101. It should be noted that the object configuration apparatus 102 may also be disposed in the distributed system 101. In the application, when the object in the server needs to be configured, the user can input the configuration instruction in the object configuration device 102, and the configuration instruction can realize simultaneous configuration of a plurality of objects in a plurality of servers, thereby improving the efficiency of object configuration. The technical means shown in the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of an object configuration method based on a distributed system according to the present invention, please refer to fig. 2, where the method may include:
s201, acquiring a configuration instruction input by a user, wherein the configuration instruction comprises attribute information of an object to be configured in a plurality of servers;
s202, generating configuration information corresponding to each object to be configured according to the attribute information;
s203, sending corresponding configuration information to each object to be configured so that each object to be configured configures the attribute according to the corresponding configuration information.
The main execution body of the technical solution shown in the embodiment of the present invention is an object configuration device based on a distributed system (hereinafter referred to as an object configuration device for short), and optionally, the device may be disposed inside the distributed system or may be disposed outside the distributed system. Alternatively, the apparatus may be implemented by software and/or hardware.
In the actual application process, when a user needs to configure an object in a server, the user inputs a configuration instruction through an object configuration device, wherein the configuration instruction comprises attribute information of an object to be configured in a plurality of servers. The configuration instruction is used for indicating the configuration of the attribute of the object to be configured in the plurality of servers. Alternatively, the configuration instructions may be implemented in a predetermined computer language.
Optionally, the format of the configuration instruction may be:
[ operation type ] ELEMENT [ object identification ] KEY [ attribute identification ] VALUE [ attribute information ] attribute [ server identification ].
For example, if it is necessary to set the attribute information of the attribute (thread _ num) of the object (NE1) on the server S1, the server S2, and the server S3 to 5, it can be implemented by the following configuration instructions:
ADD ELEMENT NE1 KEY thread_num VALUE 5 INCLUDE S1,S2,S3。
optionally, the format of the configuration instruction may also be:
[ operation type ] [ server identification ] - > [ object identification ] KEY [ attribute identification ] ═ attribute information ].
For example, if it is necessary to set attribute information of the attribute (thread _ num) of the object (NE1 and NE2) in the server S1, the object (NE2) in the server S2, and the object (NE1) in the server S3 to 5, it can be realized by the following configuration instructions:
ADD S1->(NE1,NE2),S2->NE2,S3->NE1 KEY thread_num=5。
it should be noted that the format of the configuration instruction is illustrated in an exemplary form, and is not limited to the format of the configuration instruction, and the format of the configuration instruction may be set according to actual needs in an actual application process.
Because the configuration instruction input by the user is realized through the computer language provided by the invention, each object to be configured may not be capable of identifying the configuration instruction input by the user, after the object configuration device acquires the configuration instruction input by the user, the object configuration device generates the configuration information corresponding to each object to be configured and identifiable to each object to be configured according to the attribute information in the configuration instruction. Optionally, the configuration information corresponding to each object to be configured may exist in the form of a configuration file, and the format of the configuration file may be cfg format, ini format, or the like.
It should be noted that the configuration information corresponding to the object to be configured includes attribute information in the configuration instruction, and of course, the configuration information may also include related information of the server and/or the object to be configured. And if the configuration information only comprises the attribute information in the configuration instruction, the configuration information corresponding to each object to be configured is the same. If the configuration information further includes related information of the server and/or the objects to be configured, the configuration information corresponding to each object to be configured is different.
After the object configuration device generates the configuration information corresponding to each object to be configured, the object configuration device may directly send the corresponding configuration information to each object to be configured, so that each object to be configured configures the attribute according to the corresponding configuration information; of course, the object configuration device may also cache the generated configuration information, and after receiving the configuration request message sent by the object to be configured, the object configuration device sends the configuration information corresponding to the configuration request message to the object to be configured.
Optionally, the object configuration device may analyze the configuration instruction to obtain the identifier of each server and the identifier of the object to be configured corresponding to each server included in the configuration instruction, respectively obtain the destination address of each server, and respectively send the corresponding configuration information to the object to be configured corresponding to each server according to the destination address of each server.
The method shown in the embodiment of fig. 2 is described in detail below by way of specific examples.
For example, it is assumed that the distributed system includes four servers, which are respectively denoted as server 1(S1), server 2(S2), server 3(S3), and server 4(S4), and the same type of object 1(NE1) is included in the four servers.
When the user needs to perform the same configuration on the objects 1 in the servers 1 to 3, the user does not need to configure the objects 1 in the servers 1 to 3 respectively, and the user only needs to input a configuration instruction in the object configuration device. Specifically, when a user needs to configure the memory size of an object 1 in the servers 1 to 3 to be 100G, the user inputs the following configuration instruction 1 in the object configuration device:
ADD ELEMENT NE1 KEY ram VALUE 100G INCLUDE S1,S2,S3;
after the object configuration device acquires the configuration instruction 1 input by the user, the object configuration device analyzes the configuration instruction 1, acquires the attribute information (ram 100G) in the configuration instruction 1, and generates the configuration information 1 corresponding to the object 1 in the server 1, the configuration information 2 corresponding to the object 1 in the server 2, and the configuration information 3 corresponding to the object 1 in the server 3 from the attribute information. Here, if only attribute information (ram) is included in the configuration information generated by the object configuration device, configuration information 1, configuration information 2, and configuration information 3 are the same.
After the object configuration device generates configuration information 1, configuration information 2, and configuration information 3, the object configuration device transmits configuration information 1 to object 1 in server 1, configuration information 2 to object 1 in server 2, and configuration information 3 to object 1 in server 3.
In the object configuration method based on the distributed system, when a user needs to configure the attribute of an object to be configured in a plurality of servers, the user inputs a configuration instruction including attribute information of the object to be configured in the plurality of servers, an object configuration device generates configuration information corresponding to each object to be configured according to the attribute information in the configuration instruction, and sends corresponding configuration information to each object to be configured, so that each object to be configured configures the attribute according to the corresponding configuration information. In the above process, the configuration instruction input by the user may instruct to configure the attributes of the objects to be configured in the multiple servers at the same time, so that the object configuration device may configure the attributes of the objects to be configured in the multiple servers at the same time according to the configuration instruction, and the user is not required to configure the objects to be configured in each server, thereby improving the efficiency of object configuration.
On the basis of the embodiment shown in fig. 2, in order to facilitate the user to input the configuration instruction, the configuration instruction input by the user can be obtained in the following feasible implementation manner (S201 in the embodiment shown in fig. 2), specifically, please refer to the embodiment shown in fig. 3.
Fig. 3 is a schematic flow chart of a method for obtaining configuration instructions according to the present invention, please refer to fig. 3, where the method may include:
s301, acquiring identifiers of a plurality of servers input by a user, identifiers of objects to be configured corresponding to the servers and at least one attribute message;
s302, according to a preset instruction rule, the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each server and at least one attribute information are processed, and a configuration instruction is generated.
In the embodiment shown in fig. 3, when the object configuration apparatus needs to obtain the configuration instruction, the object configuration apparatus obtains identifiers of a plurality of servers, identifiers of objects to be configured corresponding to the servers, and at least one attribute information, which are input by a user. Optionally, a server identifier input box is displayed, and identifiers of multiple servers input by a user in the server identifier input box are received; displaying an object identifier input box to be configured corresponding to each server, and receiving the identifier of the object to be configured corresponding to each server, which is input in each object identifier input box to be configured by a user; and displaying the attribute information input box, and receiving at least one attribute information input by the user in the attribute information input box. The object configuration device can simultaneously display the server identification input box and the attribute information input box, and the display sequence of the server identification input box and the attribute information input box is not particularly limited.
After the object configuration device obtains the identifiers of the servers, the identifiers of the objects to be configured corresponding to the servers and the at least one attribute information input by a user, the object configuration device obtains a preset instruction rule, and processes the identifiers of the servers, the identifiers of the objects to be configured corresponding to the servers and the at least one attribute information according to the preset instruction rule to generate a configuration instruction. Optionally, the object configuration apparatus may combine the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each server, and the at least one attribute information according to a syntax corresponding to the preset instruction rule, so as to generate the configuration instruction.
The method shown in the embodiment of fig. 3 is described in detail by specific examples in conjunction with the terminal interface diagram shown in fig. 4.
Fig. 4 is a terminal interface diagram provided by the present invention, please refer to fig. 4, which includes an interface 401 and an interface 403, wherein,
in an actual application process, when a user needs to configure an object in the distributed system, optionally, the user may start object configuration by inputting a preset instruction, where the preset instruction may be a "start" instruction, and the like, so that the terminal interface displays the interface 401.
In the interface 401, a server identification input box M is included in which the identifications of all servers included in the distributed system are included. Assuming that the distributed system includes 5 servers, the identifiers of the servers and check boxes corresponding to the identifiers of the servers are displayed in the server identifier input box M, and a user can perform check operation on the check boxes to realize check of the identifiers of the corresponding servers. Assuming that the user needs to configure objects in the server 1, the server 3, and the server 4, the user performs a check operation on check boxes corresponding to the server 1, the server 3, and the server 4, and performs a click operation on a "ok" button, so that the terminal interface displays the interface 402.
In the interface 402, an object identifier input box N1 to be configured corresponding to the server 1, an object identifier input box N2 to be configured corresponding to the server 3, and an object identifier input box N3 to be configured corresponding to the server 4 are included, and object identifiers included in the server 1, object identifiers included in the server 3, object identifiers included in the server 4, and check boxes corresponding to the object identifiers are respectively displayed in the object identifier input boxes N1-N3 to be configured. Assuming that the user needs to perform the same configuration for the objects 1 and 3 in the server 1, the object 1 in the server 3, and the objects 1 and 2 in the server 4, the user can perform a selection operation for the objects 1 and 3 in the server 1, the object 1 in the server 3, and the objects 1 and 2 in the server 4, and perform a click operation on the "ok" button to cause the terminal interface to display the interface 403.
In the interface 403, the identifier of the object to be configured selected by the user and the attribute information input box P are displayed, and assuming that the user needs to set the number of threads of the object to be configured to 5 and the memory size of the object to be configured to 100G, the user can input the attribute information into the corresponding input box. After the user inputs the attribute information, clicking the 'confirm' button to finish inputting the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each server and at least one attribute information, so that the object configuration device generates a configuration instruction according to the input of the user:
ADD S1->(NE1,NE3),S3->NE1,S4->(NE1,NE2)KEY thread_num=5,RAM=100G。
in the process, the server identification input frame, the object identification input frame to be configured and the attribute information input frame are displayed for the user, so that the user only needs to input the identification of the server, the identification of the object to be configured and the attribute information in the corresponding input frame according to actual needs, the object configuration device can generate the configuration instruction according to the information input by the user, the difficulty of inputting the configuration instruction by the user is reduced, and the efficiency of inputting the configuration instruction by the user is improved.
On the basis of any of the above embodiments, optionally, the object configuring apparatus may generate the configuration information corresponding to each object to be configured according to the attribute information according to the following feasible implementation manner (S202 in the embodiment shown in fig. 2), specifically, please refer to the embodiment shown in fig. 5.
Fig. 5 is a schematic flowchart of a method for generating configuration information according to the present invention, please refer to fig. 5, where the method may include:
s501, acquiring a configuration information template which can be identified by an object to be configured;
s502, analyzing the configuration instruction, and acquiring the identifier of each server, the identifier of each object to be configured and attribute information which are included in the configuration instruction;
s503, generating configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information and the configuration information template.
In the embodiment shown in fig. 5, after the object configuration apparatus obtains the configuration instruction input by the user, the object configuration apparatus obtains a configuration information template that can be recognized by the object to be configured. The object to be configured can identify and read the attribute information in the configuration information template, and configure the attribute according to the attribute information in the configuration information template.
The object configuration device further analyzes the acquired configuration instruction to acquire the identifier of the server, the identifier of each object to be configured, and the attribute information included in the configuration instruction, and generates the configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information, and the configuration information template.
The method shown in the embodiment of fig. 5 will be described in detail below by specific examples.
For example, it is assumed that the object configuration apparatus obtains the configuration instruction input by the user as:
ADD S1->(NE1,NE3),S2->NE2 KEY thread_num=5,RAM=100G;
the object configuration device analyzes the configuration instruction to obtain the identifier of the server, the identifier of each object to be configured, and the attribute information included in the configuration instruction, which are specifically shown in table 1:
TABLE 1
Figure BDA0001074892300000111
The object configuration apparatus further obtains a configuration information template recognizable by the object to be configured, where the content included in the template may be as shown in table 2:
TABLE 2
Identification of a server Identification of objects Attribute information
[] [] []
The object configuration device generates configuration information corresponding to each object to be configured in each server according to the content shown in table 1 and the configuration information template shown in table 2, and specifically, the object configuration device generates the configuration information of object 1 in server 1 as shown in table 3:
TABLE 3
Figure BDA0001074892300000112
The object configuration information in the object configuration apparatus generation server 1 is shown in table 4:
TABLE 4
Figure BDA0001074892300000113
The object configuration information in the object configuration apparatus generation server 2 is shown in table 5:
TABLE 5
Figure BDA0001074892300000121
After the object allocation apparatus determines that the allocation information shown in tables 3 to 5 is obtained, the object allocation apparatus transmits the allocation information shown in table 3 to the object 1 in the server 1, transmits the allocation information shown in table 4 to the object 3 in the server 1, and transmits the allocation information shown in table 5 to the object 2 in the server 2.
Fig. 6 is a schematic structural diagram of an object configuration apparatus based on a distributed system according to a first embodiment of the present invention, please refer to fig. 6, the apparatus may include:
an obtaining module 601, configured to obtain a configuration instruction input by a user, where the configuration instruction includes attribute information of an object to be configured in multiple servers;
a generating module 602, configured to generate configuration information corresponding to each object to be configured according to the attribute information;
the sending module 603 is configured to send corresponding configuration information to each object to be configured, so that each object to be configured configures an attribute according to the corresponding configuration information.
The apparatus provided in the embodiment of the present invention may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of an object configuration apparatus based on a distributed system according to a second embodiment of the present invention, and referring to fig. 7, on the basis of the embodiment shown in fig. 6, the obtaining module 601 includes an obtaining unit 6011 and a generating unit 6012, wherein,
the obtaining unit 6011 is configured to obtain an identifier of the multiple servers, an identifier of an object to be configured corresponding to each server, and at least one attribute information, where the identifier is input by a user;
the generating unit 6012 is configured to, according to a preset instruction rule, process the identifiers of the multiple servers, the identifier of the object to be configured corresponding to each server, and the at least one attribute information, and generate the configuration instruction.
In a possible implementation, the obtaining unit 6011 is specifically configured to:
displaying a server identification input box, and receiving the identifications of the plurality of servers input in the server identification input box by a user;
displaying an object identifier input box to be configured corresponding to each server, and receiving an identifier of an object to be configured corresponding to each server, which is input in each object identifier input box to be configured by a user;
and displaying an attribute information input box, and receiving the at least one attribute information input by the user in the attribute information input box.
In another possible implementation manner, the generating module 602 is specifically configured to:
acquiring a configuration information template which can be identified by the object to be configured;
analyzing the configuration instruction to acquire the identifier of each server, the identifier of each object to be configured and attribute information which are included in the configuration instruction;
and generating configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information and the configuration information template.
In another possible implementation manner, the sending module 603 is specifically configured to:
analyzing the configuration instruction to obtain the identifier of each server and the identifier of the object to be configured corresponding to each server in the configuration instruction;
respectively acquiring the destination address of each server;
and respectively sending corresponding configuration information to the object to be configured corresponding to each server according to the destination address of each server.
In another possible implementation, the apparatus further includes a receiving module 604, wherein,
the receiving module 604 is configured to receive a configuration request message sent by the objects to be configured before the sending module 603 sends the configuration information to each of the objects to be configured, where the configuration request message is used to request to acquire the attribute information;
correspondingly, the sending module 603 is specifically configured to send the configuration information to each object to be configured according to the configuration request information.
The apparatus provided in the embodiment of the present invention may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. An object configuration method based on a distributed system is characterized by comprising the following steps:
acquiring identifiers of a plurality of servers input by a user, identifiers of objects to be configured corresponding to the servers and at least one attribute information;
processing the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each server and at least one attribute information according to a preset instruction rule to generate a configuration instruction, wherein the configuration instruction comprises the attribute information of the object to be configured in the plurality of servers;
acquiring a configuration information template which can be identified by the object to be configured;
analyzing the configuration instruction to acquire the identifier of each server, the identifier of each object to be configured and attribute information which are included in the configuration instruction;
generating configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information and the configuration information template;
and sending corresponding configuration information to each object to be configured so that each object to be configured configures the attribute according to the corresponding configuration information.
2. The method of claim 1, wherein obtaining the identifiers of the plurality of servers, the identifier of the object to be configured corresponding to each of the servers, and the at least one attribute information, which are input by a user, comprises:
displaying a server identification input box, and receiving the identifications of the plurality of servers input in the server identification input box by a user;
displaying an object identifier input box to be configured corresponding to each server, and receiving an identifier of an object to be configured corresponding to each server, which is input in each object identifier input box to be configured by a user;
and displaying an attribute information input box, and receiving the at least one attribute information input by the user in the attribute information input box.
3. The method according to claim 1 or 2, wherein the sending of the corresponding configuration information to each of the objects to be configured comprises:
analyzing the configuration instruction to obtain the identifier of each server and the identifier of the object to be configured corresponding to each server in the configuration instruction;
respectively acquiring the destination address of each server;
and respectively sending corresponding configuration information to the object to be configured corresponding to each server according to the destination address of each server.
4. The method according to claim 1 or 2, further comprising, before sending the configuration information to each of the objects to be configured, further comprising
Receiving a configuration request message sent by the object to be configured, wherein the configuration request message is used for requesting to acquire the attribute information;
correspondingly, sending the configuration information to each object to be configured includes:
and sending the configuration information to each object to be configured according to the configuration request information.
5. An object configuration apparatus based on a distributed system, comprising:
the system comprises an acquisition module, a configuration module and a configuration module, wherein the acquisition module is used for acquiring a configuration instruction input by a user, and the configuration instruction comprises attribute information of an object to be configured in a plurality of servers;
the generating module is used for generating configuration information corresponding to each object to be configured according to the attribute information;
a sending module, configured to send corresponding configuration information to each object to be configured, so that each object to be configured configures an attribute according to the corresponding configuration information;
wherein the acquisition module comprises an acquisition unit and a generation unit, wherein,
the acquiring unit is used for acquiring the identifiers of the servers, the identifiers of the objects to be configured corresponding to the servers and at least one attribute information, which are input by a user;
the generating unit is used for processing the identifiers of the servers, the identifier of the object to be configured corresponding to each server and at least one attribute information according to a preset instruction rule to generate the configuration instruction;
wherein the generation module is specifically configured to:
acquiring a configuration information template which can be identified by the object to be configured;
analyzing the configuration instruction to acquire the identifier of each server, the identifier of each object to be configured and attribute information which are included in the configuration instruction;
and generating configuration information corresponding to each object to be configured in each server according to the identifier of each server, the identifier of each object to be configured, the attribute information and the configuration information template.
6. The apparatus according to claim 5, wherein the obtaining unit is specifically configured to:
displaying a server identification input box, and receiving the identifications of the plurality of servers input in the server identification input box by a user;
displaying an object identifier input box to be configured corresponding to each server, and receiving an identifier of an object to be configured corresponding to each server, which is input in each object identifier input box to be configured by a user;
and displaying an attribute information input box, and receiving the at least one attribute information input by the user in the attribute information input box.
CN201610654772.6A 2016-08-10 2016-08-10 Object configuration method and device based on distributed system Active CN106301906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610654772.6A CN106301906B (en) 2016-08-10 2016-08-10 Object configuration method and device based on distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610654772.6A CN106301906B (en) 2016-08-10 2016-08-10 Object configuration method and device based on distributed system

Publications (2)

Publication Number Publication Date
CN106301906A CN106301906A (en) 2017-01-04
CN106301906B true CN106301906B (en) 2020-02-07

Family

ID=57669632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610654772.6A Active CN106301906B (en) 2016-08-10 2016-08-10 Object configuration method and device based on distributed system

Country Status (1)

Country Link
CN (1) CN106301906B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733708B (en) * 2017-10-16 2020-09-18 平安科技(深圳)有限公司 Equipment parameter configuration method and device, computer equipment and storage medium
CN109257226B (en) * 2018-10-23 2021-08-27 网宿科技股份有限公司 Port configuration method and device of virtual IP

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610173A (en) * 2009-07-14 2009-12-23 中兴通讯股份有限公司 A kind of method and NM server that many network elements is carried out data configuration
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server
CN103036694A (en) * 2011-09-29 2013-04-10 中兴通讯股份有限公司 Service distribution method and device of distributed network
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN104219097A (en) * 2014-09-12 2014-12-17 国云科技股份有限公司 Rapid configuration method of distributed system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5484427B2 (en) * 2011-10-27 2014-05-07 株式会社日立製作所 Network system management method, network system, and management server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610173A (en) * 2009-07-14 2009-12-23 中兴通讯股份有限公司 A kind of method and NM server that many network elements is carried out data configuration
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server
CN103036694A (en) * 2011-09-29 2013-04-10 中兴通讯股份有限公司 Service distribution method and device of distributed network
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN104219097A (en) * 2014-09-12 2014-12-17 国云科技股份有限公司 Rapid configuration method of distributed system

Also Published As

Publication number Publication date
CN106301906A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US11243704B2 (en) Data pipeline architecture for analytics processing stack
US10235076B2 (en) Data pipeline architecture for cloud processing of structured and unstructured data
CN106383704B (en) Progress bar data processing method and device
WO2021023149A1 (en) Method and apparatus for dynamically returning message
CN106844040B (en) Job submitting method, system and server
CN110880100A (en) Business approval processing method, device and system
CN111193633B (en) Method and device for detecting abnormal network connection
US10187264B1 (en) Gateway path variable detection for metric collection
CN108183939A (en) Cloud identifying service system, method, equipment and Cloud Server
CN109062560B (en) Method and apparatus for generating information
CN106301906B (en) Object configuration method and device based on distributed system
US9256650B2 (en) Using metaphors to present concepts across different intellectual domains
CN113378025B (en) Data processing method, device, electronic equipment and storage medium
EP2942711A2 (en) Dynamic generation of proxy connections
CN110380902B (en) Topological relation generation method and device, electronic equipment and storage medium
CN115454576B (en) Virtual machine process management method and system and electronic equipment
US11714699B2 (en) In-app failure intelligent data collection and analysis
CN113691403A (en) Topological node configuration method, related device and computer program product
US10866816B2 (en) Method and apparatus for automated feed processing
CN112667274A (en) Method and device for generating application programming interface document and electronic equipment
CN115129469B (en) Cross-process communication method, device, equipment and storage medium
CN113515712B (en) Page generation method and device of integrated system, electronic equipment and storage medium
JP7216883B2 (en) Analysis device, analysis method, and analysis program
CN115577200B (en) Page loading method, device, equipment and storage medium
CN113329103B (en) Method and apparatus for executing commands for network devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant