Summary of the invention
The invention provides method and system that a kind of parameter configures automatically to solve the problem.
The invention provides a kind of method that parameter configures automatically, comprise the following steps.The system Disposition Instructions that controller receiving system keeper sends, wherein, described system Disposition Instructions carries company's relationship type information.Described controller, according to described system Disposition Instructions, is inquired about the communication server corresponding to company's relationship type and whether is reached preset upper limit when predecessor company's number in the parameter configuration table that self stores.If predecessor company's number worked as by the communication server that described company relationship type is corresponding reach preset upper limit, described controller calculates the comprehensive assessment value of other each communication server according to preset strategy, and selects the communication server that comprehensive assessment value is larger.Described controller obtains the parameter information of the larger communication server of described comprehensive assessment value, and by the control terminal that described parameter information sends to web server corresponding, described web server obtains described parameter information by described control terminal.
The invention provides the system that a kind of parameter configures automatically, comprise controller, control terminal, web server and at least one communication server, described controller connects the described communication server and control terminal respectively, and described control terminal connects described web server.Described controller, for after the system Disposition Instructions that receiving system keeper sends, according to described system Disposition Instructions, in the parameter configuration table that self stores, inquiring about the communication server corresponding to company's relationship type whether reaching preset upper limit, also for storing described parameter configuration table when predecessor company's number.Described controller, also for the communication server corresponding to company's relationship type when predecessor company's number has reached preset upper limit, the comprehensive assessment value of other each communication server is calculated according to preset strategy, select the communication server that comprehensive assessment value is larger, and after obtaining the parameter information of the larger communication server of described comprehensive assessment value, by the control terminal that described parameter information sends to web server corresponding.Described control terminal, the parameter information of the communication server selected for providing described controller to web server.Described web server, for obtaining the parameter information of the described communication server by described control terminal.
Compared to prior art, according to the method and system that parameter provided by the invention configures automatically, the system Disposition Instructions that controller receiving system keeper sends, wherein, described system Disposition Instructions carries company's relationship type information.Described controller, according to described system Disposition Instructions, is inquired about the communication server corresponding to company's relationship type and whether is reached preset upper limit when predecessor company's number in the parameter configuration table that self stores.Carry out system deployment by communication server load condition, can maximum resource utilization be reached.If predecessor company's number worked as by the communication server that described company relationship type is corresponding reach preset upper limit, described controller calculates the comprehensive assessment value of other each communication server according to preset strategy, and selects the communication server that comprehensive assessment value is larger.Described controller obtains the parameter information of the larger communication server of described comprehensive assessment value, and by the control terminal that described parameter information sends to web server corresponding, described web server obtains described parameter information by described control terminal.So, thus improve communication efficiency between enterprise, achieve and configuration is optimized to communication server resource, ensure that the accuracy of parameter configuration simultaneously.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the flow chart of the method that the parameter that preferred embodiment according to the present invention provides configures automatically.As shown in Figure 1, the method that the parameter that preferred embodiment of the present invention provides configures automatically comprises step 101 ~ 104.
Step 101: the system Disposition Instructions that controller receiving system keeper sends, wherein, described system Disposition Instructions carries company's relationship type information.
Specifically, system manager processes when deployment company, according to treating deployment company and disposing company's relationship type information, sends to controller after company's relationship type information is added into system Disposition Instructions.In the present embodiment, described company relationship type information comprises parent company and branch company's relation, cooperative relationship and irrelevant, in other embodiments, can define described company relationship type separately, is not construed as limiting this present invention.
Wherein, treat deployment company and dispose company's relationship type information by treating that deployment company provides, also can be obtained by third party by system manager.
Step 102: described controller, according to described system Disposition Instructions, is inquired about the communication server corresponding to company's relationship type and whether reached preset upper limit when predecessor company's number in the parameter configuration table that self stores.
Specifically, described controller stored parameter allocation list, described parameter configuration table comprise communication server address, company's relationship type, importance degree coefficient, when predecessor company's number and preset upper limit.Parameter configuration tableau format is such as shown in table 1.
Table 1
Step 103: if the communication server corresponding to described company relationship type reaches preset upper limit when predecessor company's number, described controller calculates the comprehensive assessment value of other each communication server according to preset strategy, and selects the communication server that comprehensive assessment value is larger.
Specifically, described preset strategy is, and comprehensive assessment value=(1-importance degree coefficient) * (preset upper limit-when predecessor company's number).For example, according to table 1, if the company's relationship type comprised in the system Disposition Instructions of controller reception is irrelevant, predecessor company's number of working as that the corresponding communication server inquired about in Table 1 by described controller reaches preset upper limit.Controller respectively calculated address is communication server comprehensive assessment value=(1-0.8) * (23-10)=2.6 of 10.1.49.5, and address is communication server comprehensive assessment value=(1-0.5) * (36-30)=3 of 10.1.49.6.The address that comprehensive assessment value selected larger by described controller is the communication server of 10.1.49.6.
The address that comprehensive assessment value selected larger by controller is after the communication server of 10.1.49.6, sweep test instruction is sent to this communication server, after the communication server receives described sweep test instruction, to the instruction of controller feedback response, controller, according to described response instruction, determines that available communication port is 1888.Meanwhile, described controller is according to treating that the address of deployment company and distribution is the renewal that the communication server information of 10.1.49.6 carries out (comprising address 10.1.49.6 and communication port 1888) parameter configuration table.
Parameter configuration table after renewal, treat that deployment company (irrelevant) has been dispensed to the communication server that address is 10.1.49.6, now, address is that the communication server of 10.1.49.6 not only exists the company with cooperative relationship disposed, and also deploys unalliedly to treat deployment company.
If predecessor company's number worked as by the communication server that company's relationship type is corresponding do not reach preset upper limit, the control terminal that the parameter information of the communication server corresponding for described company relationship type sends to web server corresponding by described controller, described web server obtains described parameter information by described control terminal.
Step 104: described controller obtains the parameter information of the larger communication server of described comprehensive assessment value, and by the control terminal that described parameter information sends to web server corresponding, described web server obtains described parameter information by described control terminal.
Specifically, described web server by the get parms mode of information of control terminal can be: parameter information is directly sent to web server after obtaining parameter information by described control terminal; Or described web server Request Control terminal sends, parameter information is sent to web server after receiving the request of web server transmission by control terminal, is stored by described web server; By control terminal, parameter information can also be saved in third party entity, and by the address information of third party entity notice web server, by web server according to described address information, read.
When user is by browser access web server, the described parameter information obtained is sent to described browser by described web server, described parameter information is cached to this locality by browser, when user accesses next time, without the need to asking Web server Transfer Parameters information, the communication server can be connected to by the parameter information of this locality buffer memory.
Figure 2 shows that the schematic diagram of the system that the parameter that preferred embodiment according to the present invention provides configures automatically.As shown in Figure 2, the system that the parameter that preferred embodiment of the present invention provides configures automatically comprises controller 201, control terminal 202, web server 203 and at least one communication server 204, described controller 201 connects the described communication server 204 and control terminal 202 respectively, and described control terminal 202 connects described web server 203.Described controller 201, for after the system Disposition Instructions that receiving system keeper sends, according to described system Disposition Instructions, whether in the parameter configuration table that self stores, inquire about the communication server corresponding to company's relationship type 204 when predecessor company's number reaches preset upper limit, also for storing described parameter configuration table.Described controller 201, also for the communication server 204 corresponding to company's relationship type when predecessor company's number has reached preset upper limit, the comprehensive assessment value of other each communication server is calculated according to preset strategy, select the communication server that comprehensive assessment value is larger, and after obtaining the parameter information of the larger communication server of described comprehensive assessment value, by the control terminal that described parameter information sends to web server corresponding.Described control terminal 202, the parameter information of the communication server 204 selected for providing described controller to web server.Described web server 203, for obtaining the parameter information of the described communication server 204 by described control terminal 202.About the operating process of said system with described in said method, therefore repeat no more in this.
In sum, the method and system that the parameter provided according to present pre-ferred embodiments configures automatically, the system Disposition Instructions that controller receiving system keeper sends, wherein, described system Disposition Instructions carries company's relationship type information.Described controller, according to described system Disposition Instructions, is inquired about the communication server corresponding to company's relationship type and whether is reached preset upper limit when predecessor company's number in the parameter configuration table that self stores.Carry out system deployment by communication server load condition, can maximum resource utilization be reached.If predecessor company's number worked as by the communication server that described company relationship type is corresponding reach preset upper limit, described controller calculates the comprehensive assessment value of other each communication server according to preset strategy, and selects the communication server that comprehensive assessment value is larger.Described controller obtains the parameter information of the larger communication server of described comprehensive assessment value, and by the control terminal that described parameter information sends to web server corresponding, described web server obtains described parameter information by described control terminal.So, thus improve communication efficiency between enterprise, achieve and configuration is optimized to communication server resource, ensure that the accuracy of parameter configuration simultaneously.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.