CN109871234A - It is a kind of obtain configuration parameter method, create adapter method and device - Google Patents

It is a kind of obtain configuration parameter method, create adapter method and device Download PDF

Info

Publication number
CN109871234A
CN109871234A CN201910217780.8A CN201910217780A CN109871234A CN 109871234 A CN109871234 A CN 109871234A CN 201910217780 A CN201910217780 A CN 201910217780A CN 109871234 A CN109871234 A CN 109871234A
Authority
CN
China
Prior art keywords
configuration parameter
application program
monitored
parameter
acquisition module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910217780.8A
Other languages
Chinese (zh)
Inventor
郑彬
王晋龙
赵亚
张旭锋
朱继永
吴斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
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 Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN201910217780.8A priority Critical patent/CN109871234A/en
Publication of CN109871234A publication Critical patent/CN109871234A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

This application discloses a kind of methods for obtaining configuration parameter, can use the parameter acquisition module being located in same Logical HEA with application program to be monitored, obtain the configuration parameter of application program to be monitored.Since application program to be monitored and parameter acquisition module are configured in same Logical HEA, therefore, parameter acquisition module can send configuration parameter acquisition instruction to application program to be monitored, application program to be monitored receives after configuration parameter acquisition order, it executes corresponding configuration parameter and obtains operation, the configuration parameter of itself is obtained, and configuration parameter is sent to parameter acquisition module.It can be seen that, utilize scheme provided by the present application, even if edition upgrading frequently occurs for application program to be monitored, so that the configuration parameter of application program to be monitored frequently changes, parameter acquisition module can also obtain configuration parameter automatically, the operation that the configuration information of the application program after determining edition upgrading is manually frequently executed without operation maintenance personnel, reduces maintenance work amoun.

Description

It is a kind of obtain configuration parameter method, create adapter method and device
Technical field
This application involves computer fields, more particularly to a kind of method for obtaining configuration parameter, the side of creation adapter Method and device.
Background technique
Kubernetes (K8S) is a kind of open source container arranging system, can be managed to container cluster, such as to appearance Device cluster carries out automatically dispose, automatic scalable appearance and upgrading etc..With the rapid development of K8S, journey is more and more applied Sequence is deployed in container cluster by K8S.
In practical applications, it needs to be monitored the application program being deployed in container cluster.To being deployed to sets of containers Application program in group is monitored, and needs to create monitoring adapter.The mode of traditional creation monitoring adapter, needs to monitor The one or more configuration parameters for the application program that operation maintenance personnel is monitored by manual mode typing.As application program occurs The configuration parameter of edition upgrading, monitored application program may change, and operation maintenance personnel is needed manually to determine version liter The configuration parameter of application program after grade, and modify manually to the configuration parameter, after realizing to edition upgrading Application program monitoring.In practical applications, the edition upgrading of application program is than more frequently, so as to cause to applying journey The maintenance work amoun that sequence is monitored is bigger.
Given this, it is desirable to provide a kind of scheme is able to solve the above problem.
Summary of the invention
Technical problems to be solved in this application are: being monitored since application program updating is frequently resulted in application program Maintenance work amoun it is bigger, provide it is a kind of obtain configuration parameter method, create adapter method and device.
In a first aspect, the embodiment of the present application provides a kind of method for obtaining configuration parameter, which comprises
Parameter acquisition module sends configuration parameter acquisition instruction to application program to be monitored;The application program to be monitored with The parameter acquisition module is configured in same Logical HEA;
Parameter acquisition module receives the configuration parameter that the application program to be monitored is sent;The configuration parameter be it is described to Monitoring application program executes configuration parameter and obtains what operation obtained;It is according to the configuration parameter that the configuration parameter, which obtains operation, Acquisition instruction triggering;The configuration parameter is the configuration parameter of the application program to be monitored.
Optionally, the application program to be monitored and the parameter acquisition module are configured in same Logical HEA, comprising:
The application program to be monitored and the parameter acquisition module are configured at the same beanpod Pod of Kubernetes In.
Optionally, the application program to be monitored and the parameter acquisition module are configured at the same beans of Kubernetes In pod Pod, comprising:
It include embodying the application program to be monitored to obtain with the parameter in the application organization file of the Kubernetes Modulus block is configured at the configuration information in the same Pod of Kubernetes.
Optionally, the configuration parameter, which obtains to operate, includes:
That reads the Kubernetes applies organization file.
Second aspect, the embodiment of the present application provide a kind of method for creating adapter, which comprises
Receive the configuration parameter that parameter acquisition module is sent;The configuration parameter is the requirement of parameter acquisition module perform claim What method described in 1 obtained;
Adapter corresponding with application program to be monitored is created using the configuration parameter.
Optionally, the application program to be monitored includes at least one application program, described to be created using the configuration parameter Build adapter corresponding with application program to be monitored, comprising:
Using the corresponding configuration parameter of at least one described application program, it is respectively created and at least one described application The corresponding adapter of program.
The third aspect, the embodiment of the present application provide a kind of device for obtaining configuration parameter, and described device includes:
Transmission unit sends configuration parameter acquisition instruction to application program to be monitored for parameter acquisition module;It is described to Monitoring application program and the parameter acquisition module are configured in same Logical HEA;
First receiving unit receives the configuration parameter that the application program to be monitored is sent for parameter acquisition module;Institute The configuration parameter application program execution configuration parameter acquisition operation to be monitored is stated to obtain;The configuration parameter obtains operation It is to be triggered according to the configuration parameter acquisition instruction;The configuration parameter is the configuration parameter of the application program to be monitored.
Optionally, the application program to be monitored and the parameter acquisition module are configured in same Logical HEA, comprising:
The application program to be monitored and the parameter acquisition module are configured at the same beanpod Pod of Kubernetes In.
Optionally, the application program to be monitored and the parameter acquisition module are configured at the same beans of Kubernetes In pod Pod, comprising:
It include embodying the application program to be monitored to obtain with the parameter in the application organization file of the Kubernetes Modulus block is configured at the configuration information in the same Pod of Kubernetes.
Optionally, the configuration parameter, which obtains to operate, includes:
That reads the Kubernetes applies organization file.
Fourth aspect, the embodiment of the present application provide a kind of device for creating adapter, and described device includes:
Second receiving unit, for receiving the configuration parameter of parameter acquisition module transmission;The configuration parameter obtains for parameter What device described in modulus block perform claim requirement 1 obtained;
Creating unit, for creating adapter corresponding with application program to be monitored using the configuration parameter.
Optionally, the application program to be monitored includes at least one application program, and the creating unit is specifically used for:
Using the corresponding configuration parameter of at least one described application program, it is respectively created and at least one described application The corresponding adapter of program.
5th aspect, the embodiment of the present application provide a kind of service node model application apparatus, comprising: memory and processing Device;
The memory, for storing program code;
The processor executes said program code to realize with for reading the program code in the memory On the one hand described in any item methods for obtaining configuration parameter.
6th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Medium is for storing program code, and said program code is for executing the described in any item acquisition configuration parameters of the above first aspect Method.
7th aspect, the embodiment of the present application provide a kind of service node model application apparatus, comprising: memory and processing Device;
The memory, for storing program code;
The processor, for reading the program code in the memory, execute said program code to realize more than The method of the described in any item creation adapters of second aspect.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Medium is used to execute the described in any item creation adapters of the above second aspect for storing program code, said program code Method.
Compared with prior art, the embodiment of the present application has the advantage that
This application provides a kind of methods for obtaining configuration parameter specifically can use and application program position to be monitored Parameter acquisition module in same Logical HEA obtains the configuration parameter of application program to be monitored.It to be monitored is answered due to described It is configured in same Logical HEA with program and the parameter acquisition module, therefore, the parameter acquisition module can be to described Application program to be monitored sends configuration parameter acquisition instruction, and application program to be monitored receives the configuration parameter and obtains order Afterwards, then it executes corresponding configuration parameter and obtains operation, obtain the configuration parameter of itself, and the configuration parameter is sent to described Parameter acquisition module.It can be seen that using scheme provided by the embodiments of the present application, even if version frequently occurs for application program to be monitored This upgrading, so that the configuration parameter of application program to be monitored frequently changes, parameter acquisition module can also obtain automatically matches Parameter is set, the operation of the configuration information of the application program after determining edition upgrading is manually frequently executed without operation maintenance personnel, is subtracted Maintenance work amoun is lacked.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method for obtaining configuration parameter provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of method for creating adapter provided by the embodiments of the present application;
Fig. 3 is a kind of exemplary application schematic diagram of a scenario provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of device for obtaining configuration parameter provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of device for creating adapter provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
Present inventor has found that the mode of traditional creation monitoring adapter needs to monitor O&M people after study The one or more configuration parameters for the application program that member is monitored by manual mode typing.As version liter occurs for application program Grade, the configuration parameter of monitored application program may change, after needing operation maintenance personnel manually to determine edition upgrading Application program configuration parameter, and modify manually to the configuration parameter, to realize to the application after edition upgrading The monitoring of program.In practical applications, the edition upgrading of application program is than more frequently, carrying out so as to cause to application program The maintenance work amoun of monitoring is bigger.
In consideration of it, this application provides a kind of methods for obtaining configuration parameter specifically can use and application to be monitored Program is located at the parameter acquisition module in same Logical HEA, obtains the configuration parameter of application program to be monitored.Due to it is described to Monitoring application program and the parameter acquisition module are configured in same Logical HEA, and therefore, the parameter acquisition module can be with Configuration parameter acquisition instruction is sent to the application program to be monitored, application program to be monitored receives the configuration parameter and obtains life After order, then executes corresponding configuration parameter and obtain operation, obtain the configuration parameter of itself, and the configuration parameter is sent to The parameter acquisition module.It can be seen that using scheme provided by the embodiments of the present application, even if application program to be monitored is frequently sent out Raw edition upgrading, so that the configuration parameter of application program to be monitored frequently changes, parameter acquisition module can also obtain automatically Configuration parameter is taken, the behaviour of the configuration information of the application program after determining edition upgrading is manually frequently executed without operation maintenance personnel Make, reduces maintenance work amoun.
With reference to the accompanying drawing, the various non-limiting embodiments of the application are described in detail.
Illustrative methods
Referring to Fig. 1, which is a kind of flow diagram of method for obtaining configuration parameter provided by the embodiments of the present application.
In the present embodiment, the method can for example be realized by following steps S101-S102.
S101: parameter acquisition module sends configuration parameter acquisition instruction, the application to be monitored to application program to be monitored Program and the parameter acquisition module are configured in same Logical HEA.
The embodiment of the present application does not limit the application program to be monitored specifically, and the application program to be monitored for example can be The application program being deployed on TOMCAT;The application program to be monitored for another example can be MYSQL application program;It is described to be monitored Application program can be oracle application program for another example;The application program to be monitored can also be other application program.
It should be noted that the application program to be monitored referred in the embodiment of the present application, may include at least one application Program.
In the embodiment of the present application, it is contemplated that after application department to be monitored is deployed in sets of containers group, due to be monitored The IP of container locating for application program is randomly assigned, and therefore, external equipment cannot directly access described to be monitored using journey Sequence obtains the configuration parameter of the application program to be monitored.Wherein, the external equipment refers to and the application program to be monitored The equipment being configured in Different Logic host.And the parameter acquisition module and the application program configuration to be monitored are patrolled with same It collects in host, therefore, the parameter acquisition module can directly access the application program to be monitored, to obtain described wait supervise Survey the configuration parameter of application program.
It should be noted that if the application program to be monitored is deployed in container cluster by K8S, then in this Shen Please in a kind of possible implementation of embodiment, the parameter acquisition module and the application program configuration to be monitored with it is same In Logical HEA, such as the same beans of K8S can be configured at the parameter acquisition module for the application program to be monitored In pod Pod.
It in the embodiment of the present application, can be by the way that in the application organization file such as yaml file of K8S, addition embodies institute It states application program to be monitored and the parameter acquisition module is configured at the mode of the configuration information in the same Pod of K8S, realize The application program to be monitored and the parameter acquisition module are configured in the same Pod of K8S.
In the embodiment of the present application, parameter acquisition module can send configuration parameter to the application program to be monitored and obtain Instruction, the configuration parameter acquisition instruction, for obtaining the configuration parameter of the application program to be monitored.
The parameter acquisition instruction is not limited specifically in the embodiment of the present application, and the parameter configuration instruction can be according to wait obtain The configuration parameter taken determines, for example, configuration parameter to be obtained is the IP address of the application program to be obtained, the then configuration Parameter acquisition instruction can be IP address acquisition instruction.
It is understood that application program to be monitored may include some pairs of external ports, parameter acquisition module be can be used The agreement that the application program to be monitored is supported sends configuration parameter acquisition instruction to external port to these.
S102: parameter acquisition module receives the configuration parameter that the application program to be monitored is sent, and the configuration parameter is The application program to be monitored executes configuration parameter and obtains what operation obtained;The configuration parameter, which obtains operation, is matched according to Set parameter acquisition instruction triggering;The configuration parameter is the configuration parameter of the application program to be monitored.
In the embodiment of the present application, after the application program to be monitored receives the configuration parameter acquisition instruction, i.e., It can trigger configuration parameter according to the configuration parameter acquisition instruction and obtain operation, to obtain the application program to be monitored itself Configuration parameter.
The embodiment of the present application does not limit the configuration parameter specifically and obtains operation, in the embodiment of the present application, it is contemplated that K8S It is application program and parameter acquisition module to be monitored according to application organization file pull-up, therefore, the application of the K8S is compiled It arranges in file such as yaml file, the configuration parameter including the application program to be monitored.Therefore, the application program to be monitored Organization file can be applied by the reading K8S, obtain the configuration parameter of the application program to be monitored.That is, The configuration parameter, which obtains operation, can apply organization file for the reading Kubernetes.
As can be seen from the above description, it is provided by the present application it is a kind of obtain configuration parameter method, can use with it is to be monitored Application program is located at the parameter acquisition module in same Logical HEA, obtains the configuration parameter of application program to be monitored.By institute It states application program to be monitored and the parameter acquisition module is configured in same Logical HEA, therefore, the parameter acquisition module Configuration parameter acquisition instruction can be sent to the application program to be monitored, application program to be monitored receives the configuration parameter and obtains After taking order, then executes corresponding configuration parameter and obtain operation, obtain the configuration parameter of itself, and the configuration parameter is sent out Give the parameter acquisition module.It can be seen that using scheme provided by the embodiments of the present application, even if application program to be monitored frequency Numerous generation edition upgrading, so that the configuration parameter of application program to be monitored frequently changes, parameter acquisition module can also be certainly It is dynamic to obtain configuration parameter, the configuration information of the application program after determining edition upgrading is manually frequently executed without operation maintenance personnel Operation, reduces maintenance work amoun.
Method based on the acquisition configuration parameter that above embodiments provide, the embodiment of the present application also provides a kind of creation is suitable The method of orchestration introduces this method below in conjunction with attached drawing.
Referring to fig. 2, which is a kind of flow diagram of method for creating adapter provided by the embodiments of the present application.
The method of creation adapter provided by the embodiments of the present application, can be realized by the equipment of generation adapter, as one Kind example can be realized by such as server of the equipment in monitoring system.
The method of the creation adapter, can be realized with S201-S202 as follows.
S201: the configuration parameter that parameter acquisition module is sent is received.
It should be noted that parameter acquisition module mentioned herein, the parameter in embodiment corresponding with figure 1 above is obtained Module is identical, and associated description can be with reference to the description section in above embodiments, and details are not described herein again.
It should be noted that configuration parameter mentioned herein, is that the parameter acquisition module executes above embodiments offer The method of configuration parameter " obtain " obtain.It, can be with reference to above embodiments about the associated description of the configuration parameter Associated description, details are not described herein again.
It should be noted that after application department to be monitored is deployed in K8S container cluster, due to application program to be monitored The IP of locating container is randomly assigned, and therefore, the equipment for generating adapter cannot directly access described to be monitored answer With program, the configuration parameter of the application program to be monitored is obtained.But the serve port that externally exposes of K8S container cluster and IP be it is fixed, therefore, the equipment for generating adapter can use the serve port and IP, access parameter acquisition module, from And the configuration parameter of application program to be monitored is obtained from the parameter acquisition module.
In a kind of implementation of the embodiment of the present application, the equipment for generating adapter can be sent to parameter acquisition module Configuration parameter acquisition request, after parameter acquisition module receives the configuration parameter acquisition request, then the configuration that can will acquire Parameter is sent to the equipment for generating adapter.
In another implementation of the embodiment of the present application, parameter acquisition module can active setting to generation adapter The standby configuration parameter for reporting itself to obtain.
S202: adapter corresponding with application program to be monitored is created using the configuration parameter.
After the equipment for generating adapter receives configuration parameter, adaptation corresponding with application program to be monitored can be created Device, to be monitored using the adapter to the application program to be monitored.
In the embodiment of the present application, the application program to be monitored may include at least one application program, when it is described to Application program is monitored when including multiple application programs, can use the multiple application program respectively to configuration parameter, point It Chuan Jian not adapter corresponding with the multiple application program.
As can be seen from the above description, the equipment for generating adapter can receive the configuration parameter of parameter acquisition module transmission, Adapter corresponding with application program to be monitored is created using the configuration parameter.It can use and be located at application program to be monitored Parameter acquisition module in same Logical HEA obtains the configuration parameter of application program to be monitored.Due to the application to be monitored Program and the parameter acquisition module are configured in same Logical HEA, therefore, the parameter acquisition module can to it is described to It monitors application program and sends configuration parameter acquisition instruction, after application program to be monitored receives configuration parameter acquisition order, It then executes corresponding configuration parameter and obtains operation, obtain the configuration parameter of itself, and the configuration parameter is sent to the ginseng Number obtains module.Even if edition upgrading frequently occurs for application program to be monitored, so that the configuration parameter frequency of application program to be monitored Numerous to change, parameter acquisition module can also obtain configuration parameter automatically, and determining version is manually frequently executed without operation maintenance personnel The operation of the configuration information of application program after this upgrading improves the efficiency of creation adapter.
It is situated between above to the method provided by the embodiments of the present application for obtaining configuration parameter and the method for creating adapter It continues, introduces the above method below in conjunction with concrete scene.
Referring to Fig. 3, which is a kind of exemplary application schematic diagram of a scenario provided by the embodiments of the present application.
In scene shown in Fig. 3, application deployment system 310 is issued to K8S cluster 320 using organization file, described to answer With in organization file, the same of K8S is configured at the parameter acquisition module 322 including embodying the application program 321 to be monitored Configuration information in one Pod.K8S cluster 320 applies organization file, application program 321 to be monitored described in pull-up according to described With parameter acquisition module 322.
The parameter acquisition module 322, the method that acquisition configuration parameter described in figure 1 above can be executed.
Monitoring system 330 receive parameter acquisition module 322 send configuration parameter, and using the configuration parameter generate with The corresponding adapter of application program 321 to be monitored.
Example devices
Method based on the acquisition configuration parameter that above embodiments provide, the embodiment of the present application also provides a kind of acquisitions to match The device for setting parameter introduces the device below in conjunction with attached drawing.
Referring to fig. 4, which is a kind of structural schematic diagram of device for obtaining configuration parameter provided by the embodiments of the present application.
Described device 400 can for example specifically include: transmission unit 410 and the first receiving unit 420.
Transmission unit 410 sends configuration parameter acquisition instruction to application program to be monitored for parameter acquisition module;It is described Application program to be monitored and the parameter acquisition module are configured in same Logical HEA;
First receiving unit 420 receives the configuration parameter that the application program to be monitored is sent for parameter acquisition module; The configuration parameter application program to be monitored executes configuration parameter acquisition operation and obtains;The configuration parameter obtains behaviour Work is triggered according to the configuration parameter acquisition instruction;The configuration parameter is that the configuration of the application program to be monitored is joined Number.
Optionally, the application program to be monitored and the parameter acquisition module are configured in same Logical HEA, comprising:
The application program to be monitored and the parameter acquisition module are configured at the same beanpod Pod of Kubernetes In.
Optionally, the application program to be monitored and the parameter acquisition module are configured at the same beans of Kubernetes In pod Pod, comprising:
It include embodying the application program to be monitored to obtain with the parameter in the application organization file of the Kubernetes Modulus block is configured at the configuration information in the same Pod of Kubernetes.
Optionally, the configuration parameter, which obtains to operate, includes:
That reads the Kubernetes applies organization file.
Since described device 400 is to provide the method for configuration parameter " obtain " corresponding dress with above method embodiment It sets, the specific implementation of each unit of described device 400, is same design with above method embodiment, accordingly, with respect to described The specific implementation of each unit of device 400 can refer to the description section of above method embodiment, and details are not described herein again.
As can be seen from the above description, it is provided by the present application it is a kind of obtain configuration parameter method, can use with it is to be monitored Application program is located at the parameter acquisition module in same Logical HEA, obtains the configuration parameter of application program to be monitored.By institute It states application program to be monitored and the parameter acquisition module is configured in same Logical HEA, therefore, the parameter acquisition module Configuration parameter acquisition instruction can be sent to the application program to be monitored, application program to be monitored receives the configuration parameter and obtains After taking order, then executes corresponding configuration parameter and obtain operation, obtain the configuration parameter of itself, and the configuration parameter is sent out Give the parameter acquisition module.It can be seen that using scheme provided by the embodiments of the present application, even if application program to be monitored frequency Numerous generation edition upgrading, so that the configuration parameter of application program to be monitored frequently changes, parameter acquisition module can also be certainly It is dynamic to obtain configuration parameter, the configuration information of the application program after determining edition upgrading is manually frequently executed without operation maintenance personnel Operation, reduces maintenance work amoun.
Method based on the creation adapter that above embodiments provide, the embodiment of the present application also provides a kind of creation adaptations The device of device introduces the device below in conjunction with attached drawing.
Referring to Fig. 5, which is a kind of structural schematic diagram of device for creating adapter provided by the embodiments of the present application.
Described device 500 can for example specifically include: the second receiving unit 510 and creating unit 520.
Second receiving unit 510, for receiving the configuration parameter of parameter acquisition module transmission;The configuration parameter is parameter Obtain what device described in module perform claim requirement 1 obtained;
Creating unit 520, for creating adapter corresponding with application program to be monitored using the configuration parameter.
Optionally, the application program to be monitored includes at least one application program, the creating unit 520, specific to use In:
Using the corresponding configuration parameter of at least one described application program, it is respectively created and at least one described application The corresponding adapter of program.
Since described device 500 is to provide the method for adapter " creation " corresponding device with above method embodiment, The specific implementation of each unit of described device 500 is same design with above method embodiment, accordingly, with respect to the dress The specific implementation of 500 each unit is set, the description section of above method embodiment can be referred to, details are not described herein again.
As can be seen from the above description, the equipment for generating adapter can receive the configuration parameter of parameter acquisition module transmission, Adapter corresponding with application program to be monitored is created using the configuration parameter.It can use and be located at application program to be monitored Parameter acquisition module in same Logical HEA obtains the configuration parameter of application program to be monitored.Due to the application to be monitored Program and the parameter acquisition module are configured in same Logical HEA, therefore, the parameter acquisition module can to it is described to It monitors application program and sends configuration parameter acquisition instruction, after application program to be monitored receives configuration parameter acquisition order, It then executes corresponding configuration parameter and obtains operation, obtain the configuration parameter of itself, and the configuration parameter is sent to the ginseng Number obtains module.Even if edition upgrading frequently occurs for application program to be monitored, so that the configuration parameter frequency of application program to be monitored Numerous to change, parameter acquisition module can also obtain configuration parameter automatically, and determining version is manually frequently executed without operation maintenance personnel The operation of the configuration information of application program after this upgrading improves the efficiency of creation adapter.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (12)

1. a kind of method for obtaining configuration parameter, which is characterized in that the described method includes:
Parameter acquisition module sends configuration parameter acquisition instruction to application program to be monitored;The application program to be monitored with it is described Parameter acquisition module is configured in same Logical HEA;
Parameter acquisition module receives the configuration parameter that the application program to be monitored is sent;The configuration parameter is described to be monitored Application program executes configuration parameter and obtains what operation obtained;The configuration parameter, which obtains operation, to be obtained according to the configuration parameter Instruction triggers;The configuration parameter is the configuration parameter of the application program to be monitored.
2. the method according to claim 1, wherein the application program to be monitored and the parameter acquisition module It is configured in same Logical HEA, comprising:
The application program to be monitored and the parameter acquisition module are configured in the same beanpod Pod of Kubernetes.
3. according to the method described in claim 2, it is characterized in that, the application program to be monitored and the parameter acquisition module It is configured in the same beanpod Pod of Kubernetes, comprising:
It include embodying the application program to be monitored and parameter acquisition mould in the application organization file of the Kubernetes Block is configured at the configuration information in the same Pod of Kubernetes.
4. according to the method in claim 2 or 3, which is characterized in that the configuration parameter obtains operation and includes:
That reads the Kubernetes applies organization file.
5. a kind of method for creating adapter, which is characterized in that the described method includes:
Receive the configuration parameter that parameter acquisition module is sent;The configuration parameter requires 1 institute for parameter acquisition module perform claim What the method stated obtained;
Adapter corresponding with application program to be monitored is created using the configuration parameter.
6. according to the method described in claim 5, it is characterized in that, the application program to be monitored includes at least one using journey Sequence, it is described to create adapter corresponding with application program to be monitored using the configuration parameter, comprising:
Using the corresponding configuration parameter of at least one described application program, it is respectively created and at least one described application program Corresponding adapter.
7. a kind of device for obtaining configuration parameter, which is characterized in that described device includes:
Transmission unit sends configuration parameter acquisition instruction to application program to be monitored for parameter acquisition module;It is described to be monitored Application program and the parameter acquisition module are configured in same Logical HEA;
First receiving unit receives the configuration parameter that the application program to be monitored is sent for parameter acquisition module;It is described to match The parameter application program execution configuration parameter acquisition operation to be monitored is set to obtain;It is root that the configuration parameter, which obtains operation, According to configuration parameter acquisition instruction triggering;The configuration parameter is the configuration parameter of the application program to be monitored.
8. a kind of device for creating adapter, which is characterized in that described device includes:
Second receiving unit, for receiving the configuration parameter of parameter acquisition module transmission;The configuration parameter is that parameter obtains mould What device described in block perform claim requirement 1 obtained;
Creating unit, for creating adapter corresponding with application program to be monitored using the configuration parameter.
9. a kind of service node model application apparatus characterized by comprising memory and processor;The memory, is used for Store program code;
The processor executes said program code for reading the program code in the memory to realize claim 1 To the method for acquisition configuration parameter described in any one of 4.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing program generation Code, method of the said program code for acquisition configuration parameter described in any one of perform claim requirement 1 to 4.
11. a kind of service node model application apparatus characterized by comprising memory and processor;The memory is used In storage program code;
The processor executes said program code for reading the program code in the memory to realize claim 5 To the method for creating adapter described in any one of 6.
12. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing program generation Code, method of the said program code for creation adapter described in any one of perform claim requirement 5 to 6.
CN201910217780.8A 2019-03-21 2019-03-21 It is a kind of obtain configuration parameter method, create adapter method and device Pending CN109871234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910217780.8A CN109871234A (en) 2019-03-21 2019-03-21 It is a kind of obtain configuration parameter method, create adapter method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910217780.8A CN109871234A (en) 2019-03-21 2019-03-21 It is a kind of obtain configuration parameter method, create adapter method and device

Publications (1)

Publication Number Publication Date
CN109871234A true CN109871234A (en) 2019-06-11

Family

ID=66921040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910217780.8A Pending CN109871234A (en) 2019-03-21 2019-03-21 It is a kind of obtain configuration parameter method, create adapter method and device

Country Status (1)

Country Link
CN (1) CN109871234A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695034A (en) * 2009-10-09 2010-04-14 清华大学 Device and method for adjusting monitoring parameter of WEB service
US20150046922A1 (en) * 2013-08-12 2015-02-12 Amazon Technologies, Inc. Per request computer system instances
CN108959016A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 Acquisition management method, apparatus, server and the data acquisition equipment of monitoring parameter
CN109271170A (en) * 2018-09-05 2019-01-25 杭州数梦工场科技有限公司 A kind of distributed system dispositions method, system, electronic equipment and storage medium
CN109446032A (en) * 2018-12-19 2019-03-08 福建新大陆软件工程有限公司 The method and system of the scalable appearance of Kubernetes copy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695034A (en) * 2009-10-09 2010-04-14 清华大学 Device and method for adjusting monitoring parameter of WEB service
US20150046922A1 (en) * 2013-08-12 2015-02-12 Amazon Technologies, Inc. Per request computer system instances
CN108959016A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 Acquisition management method, apparatus, server and the data acquisition equipment of monitoring parameter
CN109271170A (en) * 2018-09-05 2019-01-25 杭州数梦工场科技有限公司 A kind of distributed system dispositions method, system, electronic equipment and storage medium
CN109446032A (en) * 2018-12-19 2019-03-08 福建新大陆软件工程有限公司 The method and system of the scalable appearance of Kubernetes copy

Similar Documents

Publication Publication Date Title
CN107451147B (en) Method and device for dynamically switching kafka clusters
CN104731580B (en) Automation operational system and its implementation based on Karaf and ActiveMQ
CN102868736B (en) A kind of cloud computing Monitoring framework design basis ground motion method and cloud computing treatment facility
CN103064742B (en) A kind of automatic deployment system and method for hadoop cluster
US10198284B2 (en) Ensuring operational integrity and performance of deployed converged infrastructure information handling systems
US20170295062A1 (en) Method, device and system for configuring runtime environment
CN109617759A (en) Block catenary system stability test method, apparatus, equipment and storage medium
CN111552556B (en) GPU cluster service management system and method
CN102609349A (en) Method and system for screen capture in server failure
CN107483245A (en) It is a kind of that realization device is actively gathered based on karaf_agent
CN110177146A (en) A kind of non-obstruction Restful communication means, device and equipment based on asynchronous event driven
CN104461747A (en) Distributed type task scheduling system
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN111026602A (en) Health inspection scheduling management method and device of cloud platform and electronic equipment
CN110569113A (en) Method and system for scheduling distributed tasks and computer readable storage medium
CN117608825A (en) Resource management method based on multi-cloud management platform and related equipment
CN115248692A (en) Device and method for supporting cloud deployment of multiple deep learning framework models
CN106293911A (en) Dispatching System, method
CN105467907A (en) Automatic inspection system and method
CN112333672B (en) Method and device for opening UPF network element of 5G core network
CN108399095A (en) Dynamic is supported to manage method, system, equipment and the storage medium of timed task
CN109842526A (en) A kind of disaster recovery method and device
CN109871234A (en) It is a kind of obtain configuration parameter method, create adapter method and device
CN115668895A (en) Resource configuration determining method and device of cloud service system
CN104092794A (en) Batch course processing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190611

RJ01 Rejection of invention patent application after publication