CN106325861A - Method and device used for managing distributed system - Google Patents
Method and device used for managing distributed system Download PDFInfo
- Publication number
- CN106325861A CN106325861A CN201610685627.4A CN201610685627A CN106325861A CN 106325861 A CN106325861 A CN 106325861A CN 201610685627 A CN201610685627 A CN 201610685627A CN 106325861 A CN106325861 A CN 106325861A
- Authority
- CN
- China
- Prior art keywords
- control instruction
- parameter
- target
- distributed system
- target process
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a method used for managing a distributed system. The method comprises: acquiring process parameters of each process operated on each server of the distributed system; sending the process parameters of each process to a central process of the distributed system; receiving a control instruction which is generated by the central process based on the process parameters; transmitting the control instruction to a target process corresponding to the control instruction, so as to perform the control instruction by the target process and control the target process by the central process. By adopting the method used for managing the distributed system, the technical effect of managing process levels in the distributed system is realized.
Description
Technical field
The present invention relates to computer realm, particularly relate to a kind of method and apparatus for managing distributing type system.
Background technology
Distributed system is made up of multiple servers, cooperate between server to realize the external function of whole system and
Service.In order to ensure that distributed system can be properly functioning, providing the user service, how managing distributing type system just seems non-
The most important.
There is correlation technique that distributed system is taked following management: to determine that one of them takes the most in a distributed system
Business device, for controlling server, controls server and is in the driver's seat in whole distributed system.Then, other each servers
To control server provide equipment of itself state so that control server equipment state based on each server to distributed
In system, each server is managed.Such as, be preferably equipment state for the server-assignment task of " idle ", closedown or
Restarting equipment state is the server etc. of " unavailable ".
Visible, correlation technique, when managing distributing type system, relates only to the management of facility level.But, for data
Measuring huge distributed system, such management is the most accurate.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State the method and apparatus for managing distributing type system of problem.
First aspect, the invention provides a kind of method for managing distributing type system, including:
Obtain the process parameter of each process run on each server of described distributed system;
The described process parameter of each described process is sent the center process to described distributed system;
Receive the control instruction that described center process generates based on described process parameter;
Described control instruction is forwarded to the target process that described control instruction is corresponding, so that described target process performs institute
State control instruction, it is achieved the control to described target process of the described center process.
Optionally, it is thus achieved that the process parameter of each process run on each server of described distributed system, including:
In each described process running, it is thus achieved that the function expense of each described process, described function expense is made
For described process parameter.
Optionally, obtain described distributed system each server on run each process process parameter it
Before, also include:
Receive the identity that each described process sends, and bind each described process based on described identity.
Optionally, described control instruction is forwarded to the target process that described control instruction is corresponding, including:
The identity of the described target process included according to described control instruction determines described target process;
It is the agreement that described target process is supported by the protocol conversion of described control instruction;
Described control instruction after described target process sends protocol conversion.
Optionally, described method also includes:
Receive the amendment file for revising configuration;Described amendment file is the file using go language compilation;
Run described amendment file, to revise described configuration.
Optionally, described process is by go language compilation.
Second aspect, the invention provides the another kind of method for managing distributing type system, including:
Receive each server of the described distributed system of the SDK SDK transmission of described distributed system
The process parameter of each process of upper operation;
Based on described process parameter, from described process, determine the target process needing to be controlled;
Described process parameter according to described target process generates the control instruction for controlling described target process;
Send described control instruction to described SDK, enter so that described control instruction is forwarded to described target by described SDK
Journey, and then the described target process described control instruction of execution, it is achieved the control to described target process of the described center process.
Optionally, based on described process parameter, from described process, determine the target process needing to be controlled, bag
Include:
Judge whether each described process parameter meets and represent that described process needs are controlled pre-conditioned;
The described process meeting described pre-conditioned described process parameter corresponding is defined as described target process.
Optionally, described process is by go language compilation.
Fourth aspect, the invention provides a kind of device for managing distributing type system, including:
Obtain module, for obtaining the process ginseng of each process run on each server of described distributed system
Number;
First sending module, for sending the described process parameter of each described process to described distributed system
Heart process;
First receiver module, for receiving the control instruction that described center process generates based on described process parameter;
Second sending module, for described control instruction is forwarded to the target process that described control instruction is corresponding, so that
Described target process performs described control instruction, it is achieved the control to described target process of the described center process.
Optionally, described acquisition module is in each described process running, it is thus achieved that the letter of each described process
Number expense, using described function expense as described process parameter.
Optionally, described device also includes:
Second receiver module, for entering of each process of operation on each server obtaining described distributed system
Before journey parameter, receive the identity that each described process sends, and bind each described process based on described identity.
Optionally, the identity of the described second sending module described target process for including according to described control instruction
Mark determines described target process;It is the agreement that described target process is supported by the protocol conversion of described control instruction;To described
Target process sends the described control instruction after protocol conversion.
Optionally, described device also includes:
3rd receiver module, for receiving the amendment file for revising configuration;Described amendment file is for using go language
The file of compiling;
Run module, be used for running described amendment file, to revise described configuration.
Optionally, described process is by go language compilation.
Fourth aspect, the invention provides the another kind of device for managing distributing type system, including:
Receiver module, for receiving the described distributed system that the SDK SDK of described distributed system sends
The process parameter of each process run on each server of system;
Determine module, for based on described process parameter, from described process, determine that the target needing to be controlled is entered
Journey;
Generation module, generates for controlling described target process for the described process parameter according to described target process
Control instruction;
Sending module, for sending described control instruction to described SDK, so that described control instruction is forwarded by described SDK
To described target process, and then described target process performs described control instruction, it is achieved described target is entered by described center process
The control of journey.
Optionally, described determine module for judge each described process parameter whether meet represent described process needs by
Control is pre-conditioned;It is defined as described target enters meeting described process corresponding to described pre-conditioned described process parameter
Journey.
Optionally, described process is by go language compilation.
Said one in the embodiment of the present application or multiple technical scheme, at least have following one or more technology effect
Really:
In embodiments of the present invention, SDK obtains the process parameter of each process run on each server, by each enter
The process parameter of journey sends to center process.Process process based on each process parameter determination in center needs the mesh being controlled
Mark process, and process parameter based on target process generates control instruction be sent to SDK.SDK receives control instruction, will control
Instruction processed is forwarded to target process, so that target process performs control instruction, it is achieved the control to target process of the center process.Logical
Cross said process, present invention achieves the management carrying out process-level in a distributed system.Owing to different processes are performed not
All processes on one server, compared to the control of facility level, are the most unanimously managed, energy of the present invention by same control
Enough more accurately managing distributing type systems.
Accompanying drawing explanation
Fig. 1 is a kind of possible distributed system architecture figure of the embodiment of the present invention;
Fig. 2 is one for the method flow diagram of managing distributing type system in the embodiment of the present invention;
Fig. 3 be in the embodiment of the present invention another for the method flow diagram of managing distributing type system;
Fig. 4 is the another method flow diagram for managing distributing type system in the embodiment of the present invention;
Fig. 5 is one for the apparatus structure schematic diagram of managing distributing type system in the embodiment of the present invention;
Fig. 6 be in the embodiment of the present invention another for the apparatus structure schematic diagram of managing distributing type system.
Detailed description of the invention
Embodiments provide a kind of method and apparatus for managing distributing type system, for realizing distributed
System carries out the management of process-level.
Below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, it should be understood that the application
Specific features in embodiment and embodiment is the detailed description to technical scheme rather than to present techniques
The restriction of scheme, in the case of not conflicting, the technical characteristic in the embodiment of the present application and embodiment can be mutually combined.
The terms "and/or", a kind of incidence relation describing affiliated partner, can there are three kinds of passes in expression
System, such as, A and/or B, can represent: individualism A, there is A and B, individualism B these three situation simultaneously.It addition, herein
Middle character "/", typicallys represent the forward-backward correlation relation to liking a kind of "or".
In order to clearly describe the technical scheme in the embodiment of the present invention, first to applying embodiment of the present invention skill
The distributed system of art scheme is simply introduced.Refer to Fig. 1, for a kind of possible distributed system architecture figure.
This framework includes: multiple servers, and each server is connected with other servers by network, multiple server phases
It is the most collaborative, so that whole distributed system unification provides service to user and upper layer application.When distributed system is in work shape
During state, each server will run at least one process.Each process for realizing the function at least one user, such as, is noted
Volume function, storage function, User Status management function, interface function, gateway function and routing function etc..Transport on each server
The number of processes of row is incomplete same, and the function corresponding to the process on each server can be the same or different, this
Invention is not particularly limited.
Further, in all processes that distributed system is run, have one for the center process managing all processes,
Such as notify the function that each process should realize.Center process can run on any one server.Implementing
During, in order to provide the device resource of abundance to center process, center process isolated operation is preferable on one server.
In other words, the server of Operation Centre process does not run other processes.
It addition, distributed system also includes one for the control plug-in unit realizing center process and each process interaction, example
Such as SDK (SDK, Software Development Kit).The function controlling plug-in unit is common by each process
Support.
Describe in the embodiment of the present invention how managing distributing type system is introduced below with reference to accompanying drawings in detail.
First aspect present invention provides a kind of method for managing distributing type system, as in figure 2 it is shown, the method bag
Include:
S101: obtain the process parameter of each process run on each server of described distributed system;
S102: the described process parameter of each described process is sent the center process to described distributed system;
S103: receive the control instruction that described center process generates based on described process parameter;
S104: described control instruction is forwarded to the target process that described control instruction is corresponding, so that described target process
Perform described control instruction, it is achieved the control to described target process of the described center process.
During implementing, it can be distributed for performing the first for the main body of the method for managing distributing type system
System has and controls the server of function or control plug-in unit etc., for convenience of introducing, hereinafter will be with executive agent as SDK
As a example by.
In S101, SDK obtains the process parameter of each process in each process from distributed system.In the present invention
In embodiment, process parameter is the parameter representing running state of process.Then, in S102, each process that SDK will be obtained
Process parameter be sent to center process, so that center process is referred to process parameter determination to the process in distributed system
How to be controlled.Center process generates control instruction based on process parameter and returns to SDK, and then in S103, SDK receives
The control instruction that center process sends.Further, in S104, control instruction is forwarded to center process by SDK needs control,
Namely the target process that control instruction is corresponding.Target process receives SDK and forwards the control instruction of coming, and resolves and performs control and refer to
Order, and then realize the control to target process of the center process.
By foregoing description it can be seen that collected the process parameter of each process of distributed system by SDK, by each process
Process parameter send to center process, and then process process based on each process parameter determination in center needs to be controlled
Target process also generates control instruction.Control instruction is forwarded to target process by SDK further, is achieved in target process
Control.Therefore, the embodiment of the present invention achieves the management to distributed system process.The control of facility level is for an equipment
It is controlled so that the different processes run on a server all accept identical control.And the embodiment of the present invention is to difference
Process performs different control, so, compared to the control of facility level, the present invention can more accurately manage distributed system
System.
Specifically, in embodiments of the present invention, S101 obtains the process parameter of each process and includes following process:
In each described process running, it is thus achieved that the function expense of each described process, described function expense is made
For described process parameter.
Specifically, function expense includes the allocating time of function and the call relation of function.Run in each process
During, SDK collects function expense from process, and then using function expense as process parameter.
Owing to process is a program, and the operation of program mainly includes the execution of function and calls, therefore, and function expense
Running state of a process can be reflected.
As a kind of optional embodiment, also included before S101:
Receive the identity that each described process sends, and bind each described process based on described identity.
In order to allow SDK can collect process parameter when process is run, before S101, each process is by the body of self
Part mark is sent to SDK.Wherein, identity is for one process of unique mark.In embodiments of the present invention, identity bag
Including but be not limited to IP (agreement of interconnection, Internet Protocol between network) and the port etc. of process, the present invention does not do to be had
Body limits.Specifically, own identification mark, after reaching the standard grade, is supplied to SDK, so that SDK can be in process by each process
Obtain process parameter during operation, and then this process can be managed by the center process of making.SDK receive each process send and
The identity come, is stored in memory space corresponding to SDK, and then is bound with each process by SDK.
And then, when SDK needs acquisition process parameter, from memory space, reading needs the process of acquisition process parameter
Identity, accesses this process by IP and port, collects process parameter from this process.
Further, in conjunction with above-described embodiment, S104 then realizes especially by following process:
The identity of the described target process included according to described control instruction determines described target process;
It is the agreement that described target process is supported by the protocol conversion of described control instruction;
Described control instruction after described target process sends protocol conversion.
Specifically, the control instruction in the embodiment of the present invention includes the identity of target process, and therefore, SDK receives
After the control instruction that center process sends, from control instruction, parse identity, the most further according to each of storage
The identity of process, matches the process consistent with the identity in control instruction, and this process is defined as target process.
Further, since center process is supported or the agreement that used may be different with target process, so, in order to
Making target process can read and perform control instruction, control is referred to by the agreement that SDK also needs to according to target process is supported
Order carries out protocol conversion, the agreement protocol conversion of control instruction supported by target process.Then, according to the mesh determined
Mark process, is sent to target process by the control instruction after conversion.
As a kind of optional embodiment, in embodiments of the present invention, all right for the method for managing distributing type system
Farther include:
Receive the amendment file for revising configuration;Described amendment file is the file using go language compilation;
Run described amendment file, to revise described configuration.
Specifically, SDK receives the amendment file for revising SDK configuration that management personnel send.Real in the present invention
Executing in example, amendment file includes but not limited to configuration project, amended configuration parameter and the secure authentication information etc. of amendment,
The present invention is not particularly limited.
After SDK receives amendment file, amendment file is resolved, and runs the amendment file after parsing, it is achieved
Amendment to corresponding configuration parameter.Wherein, the amendment file in the embodiment of the present invention is the file using go language compilation.Its
In, go language is the programming language of Google's exploitation, has advantages such as supporting height concurrently.Utilize go language when writing amendment file
Can write with serial thinking, then perform by pure asynchronous parallel when bottom layer realization.So, after amendment file is sent to SDK,
SDK can will need the configuration parameter of amendment automatically, and the parameter relevant to the configuration parameter needing amendment is repaiied the most automatically
Change.
Seen from the above description, utilize go language compilation to revise file, then amendment file is transmitted the SDK on line
In, it is possible to achieve SDK revises configuration automatically based on amendment file, and other relevant with the configuration parameter revised of amendment automatically
Parameter.And then, the management personnel of distributed system need not modify the configuration parameter needing amendment the most voluntarily, and by
A pair other relevant parameter is modified, and has therefore saved manpower, it is achieved that the technique effect of automatization.
Further, the process in the embodiment of the present invention all has go language to write.The most a fairly large number of process can be also
Row performs, the bulk information that during the demand that satisfied application real-time is high, such as process network direct broadcasting, beholder sends, or
The barrage etc. of video.
Second aspect present invention provides the another kind of method for managing distributing type system, as it is shown on figure 3, the method bag
Include:
S201: receive described distributed system each that the SDK SDK of described distributed system sends
The process parameter of each process run on server;
S202: based on described process parameter, determine the target process needing to be controlled from each described process;
S203: generate according to the described process parameter of described target process and refer to for the control controlling described target process
Order;
S204: send described control instruction to described SDK, so that described control instruction is forwarded to described mesh by described SDK
Mark process, and then the described target process described control instruction of execution, it is achieved the control to described target process of the described center process.
During implementing, it can be distributed for performing the second for the main body of the method for managing distributing type system
System has server or the center process etc. controlling function, for convenience of introducing, hereinafter will be centered by executive agent
As a example by process.
In S201, center process receives the process parameter of each process from SDK.Then, center process is to each process
Parameter is analyzed, and determines that process corresponding to process parameter the need of management and controls.In S202, based on process parameter,
The process needing to control is determined, it would be desirable to the process of control is defined as target process from all processes.In S203, in addition it is also necessary to
How the process parameter determination being based further on target process controls target process, and then generates control instruction.Finally, at S204
In, the control instruction of generation is fed back to SDK, performs so that control instruction is forwarded to target process by SDK.
The process parameter of each process of distributed system is collected, in the process parameter of each process being sent extremely by SDK
Heart process, and then process process based on each process parameter determination in center needs the target process that is controlled and generates control
Instruction.Control instruction is forwarded to target process by SDK further, is achieved in the control to target process.Therefore, the present invention is real
Execute example and achieve the management to distributed system process.The control of facility level is controlled for an equipment so that one
The different processes run on server all accept identical control.And the embodiment of the present invention performs different controls to different processes
System, so, compared to the control of facility level, the present invention can more accurately managing distributing type system.
Specifically, in embodiments of the present invention, S202 realizes especially by following process:
Judge whether each described process parameter meets and represent that described process needs are controlled pre-conditioned;
The described process meeting described pre-conditioned described process parameter corresponding is defined as described target process.
Specifically, in the embodiment of the present invention pre-conditioned for expression process need controlled condition, such as process
Operation exception, the process speed of service are slow or process is run and broken down.Judge whether one by one to meet to each process parameter
Pre-conditioned, if process parameter meets pre-conditioned, then process corresponding for this process parameter is defined as target process;Instead
It, if process parameter meets pre-conditioned, then judge next process parameter.
During implementing, pre-conditioned have multiple probability, it is judged that it is pre-conditioned whether process parameter meets
Implementation also has multiple, and then control instruction also has multiple possibility.To enumerate the most several below.
The first:
In the first implementation, pre-conditioned is empty for process parameter.So, it is judged that each process parameter is the fullest
Foot is pre-conditioned, the most specially judges whether process parameter is empty.
Therefore, the center process all process parameters to receiving, determine whether sky one by one.For empty process ginseng
Number, then be defined as target process by corresponding process.
Specifically, process parameter is empty, then it represents that network failure occurs in corresponding process, or the process of correspondence cannot
Run, then the process that process parameter is empty can be rolled off the production line by center process, or restarts.And then, in embodiments of the present invention,
It is empty process for process parameter, the control instruction that generation is rolled off the production line or restarted by Centroid.
The second:
In the second implementation, pre-conditioned exceed preset times for the expired times in process parameter.So, sentence
Whether disconnected each process parameter meets pre-conditioned, the most specially judges whether the expired times of process parameter exceed default time
Number.Such as, preset times is 20 times, when the expired times in process parameter are more than 20 times, then by process corresponding for process parameter
It is defined as target process.Wherein, preset times can be default setting, it is also possible to by the manager of distributed system as required
Dynamically adjusting, the present invention is not particularly limited.
Specifically, if the expired times of process parameter exceed and preset times, show that the process of correspondence was performing
Journey frequently occurs time-out.If frequently occurring time-out, reason is probably process and occurs in that network failure, for a long time cannot cause
Response;Or, it is shorter that reason may is that time-out time is configured to, and causes request time to be easy to time-out.
Therefore, in the second implementation, if the expired times of process parameter exceed preset times, then can generate
The control instruction restarted, or reconnect network-based control instruction, or can also generate time-out time is revised as longer
The control instruction of time, such as, be revised as time-out time 5 seconds from 3 seconds.Those skilled in the art can
To be configured according to actual, the present invention is not particularly limited.
The third:
In the 3rd in implementation, pre-conditioned exceed predetermined number for the number of service subscribers in process parameter.That
, it is judged that whether each process parameter meets pre-conditioned, the most specially judges whether the number of service subscribers of process parameter surpasses
Cross predetermined number.Such as, predetermined number is 1000, then when the number of service subscribers in process parameter is more than 1000, determine into
Process corresponding to journey parameter is target process.
Specifically, when number of service subscribers exceedes predetermined number, represent that distributed system is currently accessed a large number of users,
Therefore process is currently needed for processing a large amount of message.Process a large amount of message, on the one hand process be will result in the biggest burden, even make
Process is paralysed, and on the other hand, user needs to wait for after sending message being lot more time to determine whether the message of oneself is responded.Institute
With, in embodiments of the present invention, when number of service subscribers exceedes predetermined number, process of can revising abandons abandoning of message
Rate.Such as, when number of service subscribers is more than 1000, loss ratio is revised as 10%;When number of service subscribers is more than 2000,
Loss ratio is revised as 20%;When number of service subscribers is more than 10000, loss ratio is revised as 50%.
And then, number of service subscribers being exceeded to the process of predetermined number, center process can generate and abandon for amendment
The control instruction of rate.
During implementing, those skilled in the art can be according to the above-mentioned realization of actual selection
Any one in mode, certainly, in the case of not conflicting, it is also possible to selects any multiple implementation to be combined, this
Bright it is not particularly limited.
Further, all processes in the embodiment of the present invention all have go semanteme to compile.
Third aspect present invention provides the another kind of method for managing distributing type system, as shown in Figure 4, the method bag
Include:
The SDK of S301: distributed system obtains each process of operation on each server of described distributed system
Process parameter;
The center of the described process parameter transmission of each described process to described distributed system is entered by S302: described SDK
Journey;
S303: described center process, based on described process parameter, determines the mesh needing to be controlled from described process
Mark process, and generate the control instruction for controlling described target process according to the described process parameter of described target process;
S304: described center process sends described control instruction to described SDK;
S305: described control instruction is forwarded to the target process that described control instruction is corresponding by described SDK, so that described mesh
Mark process performs described control instruction, it is achieved the control to described target process of the described center process.
In embodiments of the present invention, performing the third for the main body of the method for managing distributing type system is distributed system
System.
Distributed system obtains the process parameter of each process by SDK, and the process data that SDK obtains is sent to point
Center process in cloth system.And then, distributed system passes through center process, determines that needs are managed from each process
Reason and the target process controlled, and generate the control instruction that target process is controlled.Further, distributed system is passed through
The control instruction that center process generates is forwarded to target process by SDK, so that target performs, it is achieved enter distributed system
The management of journey rank.
Various variation patterns and instantiation in previous embodiment are equally applicable in the third aspect for managing distribution
The method of formula system, so succinct for description, is not described in detail in this.
Based on the inventive concept as the method being used for managing distributing type system in previous embodiment, present invention four directions
Face also provides for a kind of device for managing distributing type system, as it is shown in figure 5, include:
Obtain module 101, for obtaining the process of each process run on each server of described distributed system
Parameter;
First sending module 102, for sending the described process parameter of each described process to described distributed system
Center process;
First receiver module 103, for receiving the control instruction that described center process generates based on described process parameter;
Second sending module 104, for described control instruction is forwarded to the target process that described control instruction is corresponding, with
Described target process is made to perform described control instruction, it is achieved the control to described target process of the described center process.
Specifically, it is thus achieved that module 101 is in each described process running, it is thus achieved that the letter of each described process
Number expense, using described function expense as described process parameter.
Further, in embodiments of the present invention, the device for managing distributing type system also includes:
Second receiver module, for entering of each process of operation on each server obtaining described distributed system
Before journey parameter, receive the identity that each described process sends, and bind each described process based on described identity.
And then, the identity mark of the second sending module 104 described target process for including according to described control instruction
Know and determine described target process;It is the agreement that described target process is supported by the protocol conversion of described control instruction;To described mesh
Mark process sends the described control instruction after protocol conversion.
Further, the device in the embodiment of the present invention also includes:
3rd receiver module, for receiving the amendment file for revising configuration;Described amendment file is for using go language
The file of compiling;
Run module, be used for running described amendment file, to revise described configuration.
Wherein, the process in the embodiment of the present invention is by go language compilation.
The various variation patterns of the method for managing distributing type system in earlier figures 1, Fig. 2 and Fig. 4 embodiment and tool
Body example is equally applicable to the device for managing distributing type system of the present embodiment, by aforementioned to being used for managing distributed system
The detailed description of the method for system, those skilled in the art are it is clear that be used for managing distributing type system in the present embodiment
The implementation of device, so succinct for description, is not described in detail in this.
Based on the inventive concept as the method being used for managing distributing type system in previous embodiment, the present invention the 5th side
Face also provides for the another kind of device for managing distributing type system, as shown in Figure 6, and including:
Receiver module 201, for receiving the described distributed of the SDK SDK transmission of described distributed system
The process parameter of each process run on each server of system;
Determine module 202, for based on described process parameter, determining the target needing to be controlled from described process
Process;
Generation module 203, is used for controlling described target for the described process parameter generation according to described target process and enters
The control instruction of journey;
Sending module 204, for sending described control instruction to described SDK, so that described control instruction is turned by described SDK
Send to described target process, and then described target process performs described control instruction, it is achieved described center process is to described target
The control of process.
Specifically, determine that module 202 represents described process needs for judging whether each described process parameter meets
Controlled pre-conditioned;The described process meeting described pre-conditioned described process parameter corresponding is defined as described target
Process.
Wherein, the process in the embodiment of the present invention is by go language compilation.
The various variation patterns of the method for managing distributing type system in earlier figures 1, Fig. 3 and Fig. 4 embodiment and tool
Body example is equally applicable to the device for managing distributing type system of the present embodiment, by aforementioned to being used for managing distributed system
The detailed description of the method for system, those skilled in the art are it is clear that be used for managing distributing type system in the present embodiment
The implementation of device, so succinct for description, is not described in detail in this.
Said one in the embodiment of the present application or multiple technical scheme, at least have following one or more technology effect
Really:
The various variation patterns of the method for managing distributing type system in earlier figures 1-Fig. 2 embodiment and instantiation
It is equally applicable to the device for managing distributing type system of the present embodiment, by aforementioned to the side for managing distributing type system
The detailed description of method, those skilled in the art are it is clear that be used for the device of managing distributing type system in the present embodiment
Implementation, so succinct for description, is not described in detail in this.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more in this include institute in other embodiments
Including some feature rather than further feature, but the combination of the feature of different embodiment means to be in the scope of the present invention
Within and form different embodiments.Such as, in the following claims, embodiment required for protection any it
One can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize in gateway according to embodiments of the present invention, proxy server, system
The some or all functions of some or all parts.The present invention is also implemented as performing side as described herein
Part or all equipment of method or device program (such as, computer program and computer program).Such
The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape
Formula provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
The invention discloses, A1, a kind of method for managing distributing type system, it is characterised in that including:
Obtain the process parameter of each process run on each server of described distributed system;
The described process parameter of each described process is sent the center process to described distributed system;
Receive the control instruction that described center process generates based on described process parameter;
Described control instruction is forwarded to the target process that described control instruction is corresponding, so that described target process performs institute
State control instruction, it is achieved the control to described target process of the described center process.
A2, according to the method described in A1, it is characterised in that obtain on each server of described distributed system run
The process parameter of each process, including:
In each described process running, it is thus achieved that the function expense of each described process, described function expense is made
For described process parameter.
A3, according to the method described in A1, it is characterised in that obtain described distributed system each server on run
Each process process parameter before, also include:
Receive the identity that each described process sends, and bind each described process based on described identity.
A4, according to the method described in A3, it is characterised in that described control instruction is forwarded to described control instruction corresponding
Target process, including:
The identity of the described target process included according to described control instruction determines described target process;
It is the agreement that described target process is supported by the protocol conversion of described control instruction;
Described control instruction after described target process sends protocol conversion.
A5, according to the method described in A1, it is characterised in that described method also includes:
Receive the amendment file for revising configuration;Described amendment file is the file using go language compilation;
Run described amendment file, to revise described configuration.
A6, according to the method described in any one of A1-A5, it is characterised in that described process is by go language compilation.
B7, a kind of method for managing distributing type system, it is characterised in that including:
Receive each server of the described distributed system of the SDK SDK transmission of described distributed system
The process parameter of each process of upper operation;
Based on described process parameter, from described process, determine the target process needing to be controlled;
Described process parameter according to described target process generates the control instruction for controlling described target process;
Send described control instruction to described SDK, enter so that described control instruction is forwarded to described target by described SDK
Journey, and then the described target process described control instruction of execution, it is achieved the control to described target process of the described center process.
B8, according to the method described in B7, it is characterised in that based on described process parameter, determine from described process need
Target process to be controlled, including:
Judge whether each described process parameter meets and represent that described process needs are controlled pre-conditioned;
The described process meeting described pre-conditioned described process parameter corresponding is defined as described target process.
B9, according to the method described in B7 or B8, it is characterised in that described process is by go language compilation.
C10, a kind of device for managing distributing type system, it is characterised in that including:
Obtain module, for obtaining the process ginseng of each process run on each server of described distributed system
Number;
First sending module, for sending the described process parameter of each described process to described distributed system
Heart process;
First receiver module, for receiving the control instruction that described center process generates based on described process parameter;
Second sending module, for described control instruction is forwarded to the target process that described control instruction is corresponding, so that
Described target process performs described control instruction, it is achieved the control to described target process of the described center process.
C11, according to the device described in C10, it is characterised in that described acquisition module was for running in each described process
Cheng Zhong, it is thus achieved that the function expense of each described process, using described function expense as described process parameter.
C12, according to the device described in C10, it is characterised in that described device also includes:
Second receiver module, for entering of each process of operation on each server obtaining described distributed system
Before journey parameter, receive the identity that each described process sends, and bind each described process based on described identity.
C13, according to the device described in C12, it is characterised in that described second sending module is for according to described control instruction
The identity of the described target process included determines described target process;It is described by the protocol conversion of described control instruction
The agreement that target process is supported;Described control instruction after described target process sends protocol conversion.
C14, according to the device described in C10, it is characterised in that described device also includes:
3rd receiver module, for receiving the amendment file for revising configuration;Described amendment file is for using go language
The file of compiling;
Run module, be used for running described amendment file, to revise described configuration.
C15, according to the device described in any one of C10-C14, it is characterised in that described process is by go language compilation.
D16, a kind of device for managing distributing type system, it is characterised in that including:
Receiver module, for receiving the described distributed system that the SDK SDK of described distributed system sends
The process parameter of each process run on each server of system;
Determine module, for based on described process parameter, from described process, determine that the target needing to be controlled is entered
Journey;
Generation module, generates for controlling described target process for the described process parameter according to described target process
Control instruction;
Sending module, for sending described control instruction to described SDK, so that described control instruction is forwarded by described SDK
To described target process, and then described target process performs described control instruction, it is achieved described target is entered by described center process
The control of journey.
D17, according to the device described in D16, it is characterised in that described determine that module is for judging each described process parameter
Whether meet and represent that described process needs are controlled pre-conditioned;By meeting, described pre-conditioned described process parameter is corresponding
Described process be defined as described target process.
D18, according to the device described in D16 or D17, it is characterised in that described process is by go language compilation.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. the method for managing distributing type system, it is characterised in that including:
Obtain the process parameter of each process run on each server of described distributed system;
The described process parameter of each described process is sent the center process to described distributed system;
Receive the control instruction that described center process generates based on described process parameter;
Described control instruction is forwarded to the target process that described control instruction is corresponding, so that described target process performs described control
System instruction, it is achieved the described center process control to described target process.
2. the method for claim 1, it is characterised in that obtain operation on each server of described distributed system
The process parameter of each process, including:
In each described process running, it is thus achieved that the function expense of each described process, using described function expense as institute
State process parameter.
3. the method for claim 1, it is characterised in that run on each server obtaining described distributed system
Each process process parameter before, also include:
Receive the identity that each described process sends, and bind each described process based on described identity.
4. method as claimed in claim 3, it is characterised in that described control instruction is forwarded to described control instruction corresponding
Target process, including:
The identity of the described target process included according to described control instruction determines described target process;
It is the agreement that described target process is supported by the protocol conversion of described control instruction;
Described control instruction after described target process sends protocol conversion.
5. the method for claim 1, it is characterised in that described method also includes:
Receive the amendment file for revising configuration;Described amendment file is the file using go language compilation;
Run described amendment file, to revise described configuration.
6. the method as described in any one of claim 1-5, it is characterised in that described process is by go language compilation.
7. the method for managing distributing type system, it is characterised in that including:
Transport on each server of the described distributed system receiving the SDK SDK transmission of described distributed system
The process parameter of each process of row;
Based on described process parameter, from described process, determine the target process needing to be controlled;
Described process parameter according to described target process generates the control instruction for controlling described target process;
Send described control instruction to described SDK, so that described control instruction is forwarded to described target process by described SDK, enter
And described target process performs described control instruction, it is achieved the control to described target process of the described center process.
8. method as claimed in claim 7, it is characterised in that based on described process parameter, determine from described process and need
Target process to be controlled, including:
Judge whether each described process parameter meets and represent that described process needs are controlled pre-conditioned;
The described process meeting described pre-conditioned described process parameter corresponding is defined as described target process.
9. the device for managing distributing type system, it is characterised in that including:
Obtain module, for obtaining the process parameter of each process run on each server of described distributed system;
First sending module, enters for the described process parameter of each described process sends the center of extremely described distributed system
Journey;
First receiver module, for receiving the control instruction that described center process generates based on described process parameter;
Second sending module, for described control instruction is forwarded to the target process that described control instruction is corresponding, so that described
Target process performs described control instruction, it is achieved the control to described target process of the described center process.
10. the device for managing distributing type system, it is characterised in that including:
Receiver module, for receiving the described distributed system of the SDK SDK transmission of described distributed system
The process parameter of each process run on each server;
Determine module, for based on described process parameter, determining the target process needing to be controlled from described process;
Generation module, generates the control for controlling described target process for the described process parameter according to described target process
Instruction;
Sending module, for sending described control instruction to described SDK, so that described control instruction is forwarded to institute by described SDK
State target process, and then described target process performs described control instruction, it is achieved described center process is to described target process
Control.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610685627.4A CN106325861A (en) | 2016-08-18 | 2016-08-18 | Method and device used for managing distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610685627.4A CN106325861A (en) | 2016-08-18 | 2016-08-18 | Method and device used for managing distributed system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106325861A true CN106325861A (en) | 2017-01-11 |
Family
ID=57744132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610685627.4A Pending CN106325861A (en) | 2016-08-18 | 2016-08-18 | Method and device used for managing distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106325861A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070011661A1 (en) * | 2005-07-07 | 2007-01-11 | Hiroshi Itoh | Process control system and control method therefor |
CN101777020A (en) * | 2009-12-25 | 2010-07-14 | 北京讯鸟软件有限公司 | Fault tolerance method and system used for distributed program |
CN102104628A (en) * | 2010-12-29 | 2011-06-22 | 北京新媒传信科技有限公司 | Server cluster system and management method thereof |
CN102591765A (en) * | 2011-12-31 | 2012-07-18 | 珠海市君天电子科技有限公司 | Progress automatic management system |
CN104253833A (en) * | 2013-06-26 | 2014-12-31 | 北京神州泰岳软件股份有限公司 | Remote process operating method and system |
CN104750544A (en) * | 2013-12-30 | 2015-07-01 | 中国银联股份有限公司 | Process management system and process management method applied to distributed system |
CN105389201A (en) * | 2014-09-03 | 2016-03-09 | 中国石油化工股份有限公司 | Process management method and system thereof based on high-performance computing cluster |
-
2016
- 2016-08-18 CN CN201610685627.4A patent/CN106325861A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070011661A1 (en) * | 2005-07-07 | 2007-01-11 | Hiroshi Itoh | Process control system and control method therefor |
CN101777020A (en) * | 2009-12-25 | 2010-07-14 | 北京讯鸟软件有限公司 | Fault tolerance method and system used for distributed program |
CN102104628A (en) * | 2010-12-29 | 2011-06-22 | 北京新媒传信科技有限公司 | Server cluster system and management method thereof |
CN102591765A (en) * | 2011-12-31 | 2012-07-18 | 珠海市君天电子科技有限公司 | Progress automatic management system |
CN104253833A (en) * | 2013-06-26 | 2014-12-31 | 北京神州泰岳软件股份有限公司 | Remote process operating method and system |
CN104750544A (en) * | 2013-12-30 | 2015-07-01 | 中国银联股份有限公司 | Process management system and process management method applied to distributed system |
CN105389201A (en) * | 2014-09-03 | 2016-03-09 | 中国石油化工股份有限公司 | Process management method and system thereof based on high-performance computing cluster |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Aksakalli et al. | Deployment and communication patterns in microservice architectures: A systematic literature review | |
CN106489251B (en) | The methods, devices and systems of applied topology relationship discovery | |
US11356394B2 (en) | Method and system for resolving producer and consumer affinities in interaction servicing | |
US10496987B2 (en) | Containerization of network services | |
CN110083455B (en) | Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment | |
EP3128416B1 (en) | Sdn application integration, management and control method, system and device | |
CN110658794B (en) | Manufacturing execution system | |
EP3455728A1 (en) | Orchestrator for a virtual network platform as a service (vnpaas) | |
Di Martino et al. | Cloud services composition through cloud patterns: a semantic-based approach | |
US20120209901A1 (en) | Multilevel Multipath Widely Distributed Computational Node Scenarios | |
CN102591724A (en) | Method and device for information interaction | |
EP3218805B1 (en) | Method and system for model-driven, affinity-based, network functions | |
US10536506B2 (en) | Webpage analytics and control | |
CN108900627A (en) | A kind of network request method, terminal installation and storage medium | |
CN111045940A (en) | Software automation test method, device, architecture, server and storage medium | |
CN114338820A (en) | Network access method, device, electronic equipment and storage medium | |
US20200304434A1 (en) | Virtual agent portal integration of two frameworks | |
CN109710878A (en) | Data interactive method and server | |
CN106325861A (en) | Method and device used for managing distributed system | |
Aubonnet et al. | Service creation and self-management mechanisms for mobile cloud computing | |
Hao | Edge Computing on Low Availability Devices with K3s in a Smart Home IoT System | |
KR20090000498A (en) | The service provisioning scheme and system at the software vending machine utilizing the virtualization appliance | |
CN114365467A (en) | Third generation partnership project (3GPP) real-time uplink streaming framework (plus) reception capability determination | |
Arora | Cloud Native Network Slice Orchestration in 5G and Beyond | |
CN113312592B (en) | Scheduling method, device and equipment of software license and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170111 |