CN108664393A - A kind of multiserver resource pool compatibility test and modification method - Google Patents
A kind of multiserver resource pool compatibility test and modification method Download PDFInfo
- Publication number
- CN108664393A CN108664393A CN201810290668.2A CN201810290668A CN108664393A CN 108664393 A CN108664393 A CN 108664393A CN 201810290668 A CN201810290668 A CN 201810290668A CN 108664393 A CN108664393 A CN 108664393A
- Authority
- CN
- China
- Prior art keywords
- resource pool
- measured
- compatibility
- incompatible
- resource
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The disclosure is in the prior art, the difference of cross-version may result in application system function and be unable to operate normally, there is the problem of poor compatibility phenomenon, a kind of multiserver resource pool compatibility test and modification method are provided, by the way that initial test case and template resource pool is arranged, test case and each resource pool compatibility relation to be measured are judged successively, one by one by incompatible and part compatibility the resource pool to be measured respectively having timed out with the setting amendment of template resource pool.The disclosure is compared the occupation condition in each child resource pond by way of automation, quickly navigate to database resource pond exception, and it saves artificial, greatly improve the efficiency of test, and it can voluntarily update and correct incompatible child resource pond, substantially increase the available of resource pool, stability and safety in the environment of PDB databases.
Description
Technical field
This disclosure relates to automatic test field, more particularly to a kind of multiserver resource pool compatibility test and amendment side
Method.
Background technology
It is easy to deployment and tenant based on what Oracle (database server of Oracle) multi-tenant database possessed
Locomotivity, the isolating power under scale economy pattern, and application tenant centralized management ability, to the middle-size and small-size letter of enterprise
The utilization of resources and process optimization of breath system run availability and performance optimization, unified management standardization optimization, database resource
Pond.It (supports the core technology of grid computing environment by building 4 node R AC frameworks, generally there is two or more isomorphism
Computer and shared storage device are constituted, it is possible to provide powerful database processing ability) database resource pond, and improve resource
Degree of share.In the multi-tenant environment of Oracle, allowing CDB (container database) database to carry multiple PDB (can insert
Pull out database) database, example and database are one-to-many relationships.Each PDB represents the database of an information system.Example
Such as, pass through resource pool database server 1, resource pool database server 2, resource pool database server 3, resource pool data
Library server 4 builds the resource pool database RAC clusters of 4 nodes, forms the container database of the multi-tenant of a concentration, institute
Some PDB share each server resource.
In the prior art, for example, the database version of application system is Oralce 10g, 11g, the resource of migrating objects
Pool database version is Oracle 12c.The difference of cross-version may result in application system function and be unable to operate normally, and occur
Poor compatibility phenomenon.The construction period of certain applications system is more early, and framework is relatively backward, and there are the non-High Availabitity framves of single node
Structure, application system access database using one-to-one joint mode, with the Cluster Database resource pool under new environment
TAF (TAF clear applications failures shift, for the connection reset technique in RAC systems) High Availabitity connection configuration is likely to occur conflict,
Therefore, the migration between new and old edition may lead to poor compatibility, and the process of construction that can not be compatible with, which frequently results in, abandons migration
Problem.The character set of each application system is inconsistent, some are UTF-8 character set, some are ZHS16GBK character set, Huo Zheqi
He, the migration between kinds of characters coding may result in mess code.
Invention content
The purpose of the disclosure is in the prior art, and the difference of cross-version may result in application system function can not be just
, there is the problem of poor compatibility phenomenon in often operation, provides a kind of multiserver resource pool compatibility test and modification method, described
Compatibility test specifically includes following steps with modification method:
Step 1, setting initial test case and template resource pool;
Step 2, judge that test case generates compatibility relation array with each resource pool to be measured successively;
Step 3, the compatibility relation of resource pool to be measured is judged according to compatibility relation array;
Step 4, pause compatibility relation is incompatible resource pool to be measured;
Step 5, one by one by the incompatible resource pool to be measured respectively having timed out with the setting amendment of template resource pool;
Step 6, the incompatible part for the resource pool to be measured that relationship is part compatibility is would be compatible with one by one with template resource pool
Setting is corrected, wherein compatibility relation includes completely compatible, incompatible and part is compatible.Wherein, pause compatibility relation is incompatible
Resource pool to be measured be because resource pool corrected parameter is easy to cause current thread, the database allowed under operation
The appearance such as connection and memory are abnormal, influence safety and stability.
Further, in step 1, initial test case is set and the sub-step of template resource pool includes:
Step 1.1, it sets initial test case to minimum PDB database versions default resource pond to configure, wherein acquiescence
Resource pool configuration include initially with the setting of all threads of resource pool binding, Pooled resources parameter, resource pool rest parameter;
Step 1.2, template resource pool is set to the configuration in minimum PDB database versions default resource pond, wherein acquiescence
The data template of resource pool configuration includes Pooled resources parameter, resource pool rest parameter;
Wherein, minimum PDB database versions are in the PDB databases that each server is installed in current multiserver
The minimum version of version number, wherein resource pool rest parameter includes indicating the access controller and Node Controller of user demand
The parameter of middle physical resource;Wherein, Pooled resources parameter includes at least database connection pool parameter, memory pool parameter, thread pool ginseng
Number;Wherein, database connection pool parameter includes port numbers, maximum number of connections, Smallest connection number, database port;Wherein, memory
Pond parameter includes request memory number, Memory Allocation cell size;Wherein, thread pool parameter include total number of threads maximum value, it is non-
The idle overtime duration of kernel thread, can caching thread pond number.
Further, in step 2, the sub-step of generation compatibility relation array includes:
Step 2.1, all parameters for reading initial test case generate initial testing resource pool number according to reading order
Group;
Step 2.2, all parameters for reading resource pool to be measured generate resource pool array to be measured according to reading;
Step 2.3, initial testing resource pool array and resource pool array to be measured are compared one by one, corresponding position is waited for
The numerical value of resource pool array corresponding position is surveyed with the numerical value of initial testing resource pool array compared with more than being denoted as 1, less than being denoted as 0,
Equal to being denoted as 2;
Step 2.4, the sequence that 0,1,2 elements above-mentioned steps generated are constituted presses comparison sequence combination producing compatibility relation
Array;
Further, in step 3, judge that the compatibility relation method of resource pool to be measured is, traversal compatibility relation array is simultaneously
Ratio of 0,1,2 number of elements in array is counted, when the quantitative proportion of 0 value element is more than 35% labeled as completely compatible,
When the quantitative proportion of 1 value element is more than 35% labeled as incompatible, it is labeled as when the quantitative proportion of 2 value elements is more than 35%
Part is compatible, remaining situation is compatible labeled as part.
Further, in step 4, pause compatibility relation is that the sub-step of incompatible resource pool to be measured includes:
Step 4.1, the compatibility relation of each resource pool to be measured is read;
Step 4.2, if the compatibility relation of resource pool to be measured is incompatible, incompatible resource pool is occupied the busy of resource
Mark is removed, to show that the resource can be used by next request again;
Step 4.3, the reference count of incompatible resource pool is reset, discharges the resource that the resource pool occupies;
Step 4.4, the process bound with incompatible resource pool is unbinding;
Step 4.5, the incompatible resource pool after pause unbundlings.
Further, in steps of 5, one by one by the incompatible resource pool to be measured respectively having timed out with template resource pool
Modified sub-step, which is arranged, includes:
Step 5.1, judge successively the Pooled resources parameter of incompatible resource pool to be measured, resource pool rest parameter whether with mould
Plate resource pool is identical, and incompatible child resource pond is corrected with the parameter setting of template resource pool if different;
Step 5.2, start the revised incompatible resource pool of compatibility;
Further, in step 6, would be compatible with one by one the incompatible part that relationship is the compatible resource pool to be measured in part with
The modified sub-step of setting of template resource pool includes:
Step 6.1, the compatibility relation of each resource pool to be measured is read;
Step 6.2, if the compatibility relation of resource pool to be measured is that part is compatible, by template resource pool and resource pool to be measured
In parameter compare one by one, suspend the Pooled resources of parameter occupancy if different, and the reference count of resource pool to be measured is subtracted
1, the parameter of different piece with the setting amendment of template resource pool.
The disclosure has the beneficial effect that:The occupation condition in each child resource pond is compared by way of automation
Compared with quickly navigating to the compatibility sexual abnormality in database resource pond, save artificial, greatly improve the efficiency of test, and can be with
Voluntarily incompatible child resource pond is corrected in update, substantially increases the available of resource pool, stability and peace in the environment of PDB databases
Quan Xing.
Description of the drawings
By the way that the embodiment in conjunction with shown by attached drawing is described in detail, above-mentioned and other features of the disclosure will
More obvious, identical reference label indicates same or analogous element in disclosure attached drawing, it should be apparent that, in being described below
Attached drawing be only some embodiments of the present disclosure, for those of ordinary skill in the art, do not making the creative labor
Under the premise of, other drawings may also be obtained based on these drawings, in the accompanying drawings:
Fig. 1 show a kind of multiserver resource pool compatibility test and the modification method work flow diagram of the disclosure;
Fig. 2 show the flow chart of the test and modification method for incompatible resource pool of the disclosure.
Specific implementation mode
The technique effect of the design of the disclosure, concrete structure and generation is carried out below with reference to embodiment and attached drawing clear
Chu, complete description, to be completely understood by the purpose, scheme and effect of the disclosure.It should be noted that the case where not conflicting
Under, the features in the embodiments and the embodiments of the present application can be combined with each other.The identical attached drawing mark used everywhere in attached drawing
Note indicates same or analogous part.
As shown in Figure 1 for according to a kind of multiserver resource pool compatibility test of the disclosure and modification method workflow
Figure, Fig. 2 show the flow chart of the test and modification method for incompatible resource pool of the disclosure, with reference to Fig. 1, Fig. 2
To illustrate according to the multiserver resource pool compatibility test of embodiment of the present disclosure and modification method.
A kind of multiserver resource pool compatibility test of disclosure proposition and modification method, specifically include following steps:
Step 1, setting initial test case and template resource pool;
Step 2, judge that test case generates compatibility relation array with each resource pool to be measured successively;
Step 3, the compatibility relation of resource pool to be measured is judged according to compatibility relation array;
Step 4, pause compatibility relation is incompatible resource pool to be measured;
Step 5, one by one by the incompatible resource pool to be measured respectively having timed out with the setting amendment of template resource pool;
Step 6, the incompatible part for the resource pool to be measured that relationship is part compatibility is would be compatible with one by one with template resource pool
Setting is corrected, wherein compatibility relation includes completely compatible, incompatible and part is compatible.Wherein, pause compatibility relation is incompatible
Resource pool to be measured be because resource pool corrected parameter is easy to cause current thread, the database allowed under operation
The appearance such as connection and memory are abnormal, influence safety and stability.
Further, in step 1, initial test case is set and the sub-step of template resource pool includes:
Step 1.1, it sets initial test case to minimum PDB database versions default resource pond to configure, wherein acquiescence
Resource pool configuration include initially with the setting of all threads of resource pool binding, Pooled resources parameter, resource pool rest parameter;
Step 1.2, template resource pool is set to the configuration in minimum PDB database versions default resource pond, wherein acquiescence
The data template of resource pool configuration includes Pooled resources parameter, resource pool rest parameter;
Wherein, minimum PDB database versions are in the PDB databases that each server is installed in current multiserver
The minimum version of version number, wherein resource pool rest parameter includes indicating the access controller and Node Controller of user demand
The parameter of middle physical resource;Wherein, Pooled resources parameter includes at least database connection pool parameter, memory pool parameter, thread pool ginseng
Number;Wherein, database connection pool parameter includes port numbers, maximum number of connections, Smallest connection number, database port;Wherein, memory
Pond parameter includes request memory number, Memory Allocation cell size;Wherein, thread pool parameter include total number of threads maximum value, it is non-
The idle overtime duration of kernel thread, can caching thread pond number.
Further, in step 2, the sub-step of generation compatibility relation array includes:
Step 2.1, all parameters for reading initial test case generate initial testing resource pool number according to reading order
Group;
Step 2.2, all parameters for reading resource pool to be measured generate resource pool array to be measured according to reading;
Step 2.3, initial testing resource pool array and resource pool array to be measured are compared one by one, corresponding position is waited for
The numerical value of resource pool array corresponding position is surveyed with the numerical value of initial testing resource pool array compared with more than being denoted as 1, less than being denoted as 0,
Equal to being denoted as 2;
Step 2.4, the sequence that 0,1,2 elements above-mentioned steps generated are constituted presses comparison sequence combination producing compatibility relation
Array;
Further, in step 3, judge that the compatibility relation method of resource pool to be measured is, traversal compatibility relation array is simultaneously
Ratio of 0,1,2 number of elements in array is counted, when the quantitative proportion of 0 value element is more than 35% labeled as completely compatible,
When the quantitative proportion of 1 value element is more than 35% labeled as incompatible, it is labeled as when the quantitative proportion of 2 value elements is more than 35%
Part is compatible, remaining situation is compatible labeled as part.
Further, in step 4, pause compatibility relation is that the sub-step of incompatible resource pool to be measured includes:
Step 4.1, the compatibility relation of each resource pool to be measured is read;
Step 4.2, if the compatibility relation of resource pool to be measured is incompatible, incompatible resource pool is occupied the busy of resource
Mark is removed, to show that the resource can be used by next request again;
Step 4.3, the reference count of incompatible resource pool is reset, discharges the resource that the resource pool occupies;
Step 4.4, the process bound with incompatible resource pool is unbinding;
Step 4.5, the incompatible resource pool after pause unbundlings.
Further, in steps of 5, one by one by the incompatible resource pool to be measured respectively having timed out with template resource pool
Modified sub-step, which is arranged, includes:
Step 5.1, judge successively the Pooled resources parameter of incompatible resource pool to be measured, resource pool rest parameter whether with mould
Plate resource pool is identical, and incompatible child resource pond is corrected with the parameter setting of template resource pool if different;
Step 5.2, start the revised incompatible resource pool of compatibility;
Further, in step 6, would be compatible with one by one the incompatible part that relationship is the compatible resource pool to be measured in part with
The modified sub-step of setting of template resource pool includes:
Step 6.1, the compatibility relation of each resource pool to be measured is read;
Step 6.2, if the compatibility relation of resource pool to be measured is that part is compatible, by template resource pool and resource pool to be measured
In parameter compare one by one, suspend the Pooled resources of parameter occupancy if different, and the reference count of resource pool to be measured is subtracted
1, the parameter of different piece with the setting amendment of template resource pool.
A kind of multiserver resource pool compatibility test and modification method that embodiment of the disclosure provides, the embodiment
A kind of multiserver resource pool compatibility test includes with modification method:Processor, memory and it is stored in the memory
In and the computer program that can run on the processor, such as encipheror.The processor executes the computer journey
The step in above-mentioned each encryption method embodiment is realized when sequence.
The system comprises:It memory, processor and is stored in the memory and can transport on the processor
Capable computer program, the processor executes the computer program, and to execute, steps are as follows:
Step 1, setting initial test case and template resource pool;
Step 2, judge that test case generates compatibility relation array with each resource pool to be measured successively;
Step 3, the compatibility relation of resource pool to be measured is judged according to compatibility relation array;
Step 4, pause compatibility relation is incompatible resource pool to be measured;
Step 5, one by one by the incompatible resource pool to be measured respectively having timed out with the setting amendment of template resource pool;
Step 6, the incompatible part for the resource pool to be measured that relationship is part compatibility is would be compatible with one by one with template resource pool
Setting is corrected, wherein compatibility relation includes completely compatible, incompatible and part is compatible.Wherein, pause compatibility relation is incompatible
Resource pool to be measured be because resource pool corrected parameter is easy to cause current thread, the database allowed under operation
The appearance such as connection and memory are abnormal, influence safety and stability.
Further, in step 1, initial test case is set and the sub-step of template resource pool includes:
Step 1.1, it sets initial test case to minimum PDB database versions default resource pond to configure, wherein acquiescence
Resource pool configuration include initially with the setting of all threads of resource pool binding, Pooled resources parameter, resource pool rest parameter;
Step 1.2, template resource pool is set to the configuration in minimum PDB database versions default resource pond, wherein acquiescence
The data template of resource pool configuration includes Pooled resources parameter, resource pool rest parameter,
Wherein, minimum PDB database versions are in the PDB databases that each server is installed in current multiserver
The minimum version of version number, wherein resource pool rest parameter includes indicating the access controller and Node Controller of user demand
The parameter of middle physical resource;Wherein, Pooled resources parameter includes at least database connection pool parameter, memory pool parameter, thread pool ginseng
Number;Wherein, database connection pool parameter includes port numbers, maximum number of connections, Smallest connection number, database port;Wherein, memory
Pond parameter includes request memory number, Memory Allocation cell size;Wherein, thread pool parameter include total number of threads maximum value, it is non-
The idle overtime duration of kernel thread, can caching thread pond number.
Further, in step 2, the sub-step of generation compatibility relation array includes:
Step 2.1, all parameters for reading initial test case generate initial testing resource pool number according to reading order
Group;
Step 2.2, all parameters for reading resource pool to be measured generate resource pool array to be measured according to reading;
Step 2.3, initial testing resource pool array and resource pool array to be measured are compared one by one, corresponding position is waited for
The numerical value of resource pool array corresponding position is surveyed with the numerical value of initial testing resource pool array compared with more than being denoted as 1, less than being denoted as 0,
Equal to being denoted as 2;
Step 2.4, the sequence that 0,1,2 elements above-mentioned steps generated are constituted presses comparison sequence combination producing compatibility relation
Array;
Further, in step 3, judge that the compatibility relation method of resource pool to be measured is, traversal compatibility relation array is simultaneously
Ratio of 0,1,2 number of elements in array is counted, when the quantitative proportion of 0 value element is more than 35% labeled as completely compatible,
When the quantitative proportion of 1 value element is more than 35% labeled as incompatible, it is labeled as when the quantitative proportion of 2 value elements is more than 35%
Part is compatible, remaining situation is compatible labeled as part.
Further, in step 4, pause compatibility relation is that the sub-step of incompatible resource pool to be measured includes:
Step 4.1, the compatibility relation of each resource pool to be measured is read;
Step 4.2, if the compatibility relation of resource pool to be measured is incompatible, incompatible resource pool is occupied the busy of resource
Mark is removed, to show that the resource can be used by next request again;
Step 4.3, the reference count of incompatible resource pool is reset, discharges the resource that the resource pool occupies;
Step 4.4, the process bound with incompatible resource pool is unbinding;
Step 4.5, the incompatible resource pool after pause unbundlings.
Further, in steps of 5, one by one by the incompatible resource pool to be measured respectively having timed out with template resource pool
Modified sub-step, which is arranged, includes:
Step 5.1, judge successively the Pooled resources parameter of incompatible resource pool to be measured, resource pool rest parameter whether with mould
Plate resource pool is identical, and incompatible child resource pond is corrected with the parameter setting of template resource pool if different;
Step 5.2, start the revised incompatible resource pool of compatibility;
Further, in step 6, would be compatible with one by one the incompatible part that relationship is the compatible resource pool to be measured in part with
The modified sub-step of setting of template resource pool includes:
Step 6.1, the compatibility relation of each resource pool to be measured is read;
Step 6.2, if the compatibility relation of resource pool to be measured is that part is compatible, by template resource pool and resource pool to be measured
In parameter compare one by one, suspend the Pooled resources of parameter occupancy if different, and the reference count of resource pool to be measured is subtracted
1, the parameter of different piece with the setting amendment of template resource pool.
A kind of multiserver resource pool compatibility test can run on desktop PC, notes with modification method
Originally, in the computing devices such as palm PC and cloud server.A kind of multiserver resource pool compatibility test and amendment side
The device that method can be run may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that the example
A kind of only example of the compatibility test of multiserver resource pool and modification method, is not constituted to a kind of multiserver resource
The restriction of pond compatibility test and modification method may include component more more or fewer than example, or the certain components of combination,
Or different components, such as a kind of multiserver resource pool compatibility test can also include that input is defeated with modification method
Go out equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng, the processor is the control centre of a kind of compatibility test of multiserver resource pool and modification method running gear,
Using various interfaces and connection, entirely a kind of multiserver resource pool compatibility test and modification method can running gears
Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by running or executing
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
A kind of various functions of the compatibility test of multiserver resource pool and modification method.The memory can include mainly storage program
Area and storage data field, wherein storing program area can storage program area, needed at least one function application program (such as
Sound-playing function, image player function etc.) etc.;Storage data field can be stored uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory may include high-speed random access memory, can also include non-volatile
Property memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
Although the description of the disclosure is quite detailed and especially several embodiments are described, it is not
Any of these details or embodiment or any specific embodiments are intended to be limited to, but it is by reference to appended that should be considered as
Claim considers that the prior art provides the possibility explanation of broad sense for these claims, to effectively cover the disclosure
Preset range.In addition, the disclosure is described with inventor's foreseeable embodiment above, its purpose is to be provided with
Description, and those equivalent modifications that the disclosure can be still represented to the unsubstantiality change of the disclosure still unforeseen at present.
Claims (8)
1. a kind of multiserver resource pool compatibility test and modification method, which is characterized in that the compatibility test and amendment
Method includes the following steps:
Step 1, setting initial test case and template resource pool;
Step 2, judge that test case generates compatibility relation array with each resource pool to be measured successively;
Step 3, the compatibility relation of resource pool to be measured is judged according to compatibility relation array;
Step 4, pause compatibility relation is incompatible resource pool to be measured;
Step 5, one by one by the incompatible resource pool to be measured respectively having timed out with the setting amendment of template resource pool;
Step 6, the incompatible part for the resource pool to be measured that relationship is part compatibility is would be compatible with one by one with the setting of template resource pool
It corrects, wherein compatibility relation includes completely compatible, incompatible and part is compatible.
2. a kind of multiserver resource pool compatibility test according to claim 1 and modification method, which is characterized in that
In step 1, initial test case is set and the sub-step of template resource pool includes:
Step 1.1, it sets initial test case to minimum PDB database versions default resource pond to configure, wherein default resource
Pond configuration include initially with the setting of all threads of resource pool binding, Pooled resources parameter, resource pool rest parameter;
Step 1.2, template resource pool is set to the configuration in minimum PDB database versions default resource pond, wherein default resource
The data template of pond configuration includes Pooled resources parameter, resource pool rest parameter,
Wherein, minimum PDB database versions are the version in the PDB databases of each server installation in current multiserver
Number minimum version, wherein resource pool rest parameter includes object in the access controller and Node Controller for indicate user demand
Manage the parameter of resource;Wherein, Pooled resources parameter includes at least database connection pool parameter, memory pool parameter, thread pool parameter;Its
In, database connection pool parameter includes port numbers, maximum number of connections, Smallest connection number, database port;Wherein, memory pool is joined
Number includes request memory number, Memory Allocation cell size;Wherein, thread pool parameter include total number of threads maximum value, it is non-core
The idle overtime duration of thread, can caching thread pond number.
3. a kind of multiserver resource pool compatibility test according to claim 1 and modification method, which is characterized in that
In step 2, the sub-step for generating compatibility relation array includes:
Step 2.1, all parameters for reading initial test case generate initial testing resource pool array according to reading order;
Step 2.2, all parameters for reading resource pool to be measured generate resource pool array to be measured according to reading;
Step 2.3, initial testing resource pool array and resource pool array to be measured are compared one by one, the money to be measured of corresponding position
The numerical value of source pond array corresponding position is more than compared with the numerical value of initial testing resource pool array is denoted as 1, less than being denoted as 0, is equal to
It is denoted as 2;
Step 2.4, the sequence that 0,1,2 elements above-mentioned steps generated are constituted presses comparison sequence combination producing compatibility relation number
Group.
4. a kind of multiserver resource pool compatibility test according to claim 1 and modification method, which is characterized in that
In step 3, judge that the compatibility relation method of resource pool to be measured is, traverses compatibility relation array and 0,1,2 number of elements of statistics exist
Ratio in array, when the quantitative proportion of 0 value element is more than 35% labeled as completely compatible, when the quantitative proportion of 1 value element
Labeled as incompatible, remaining situation mark compatible labeled as part when the quantitative proportion of 2 value elements is more than 35% when more than 35%
It is denoted as part compatibility.
5. a kind of multiserver resource pool compatibility test according to claim 1 and modification method, which is characterized in that
In step 4, pause compatibility relation is that the sub-step of incompatible resource pool to be measured includes:
Step 4.1, the compatibility relation of each resource pool to be measured is read;
Step 4.2, if the compatibility relation of resource pool to be measured is incompatible, incompatible resource pool is occupied the busy mark of resource
It removes, to show that the resource can be used by next request again;
Step 4.3, the reference count of incompatible resource pool is reset, discharges the resource that the resource pool occupies;
Step 4.4, the process bound with incompatible resource pool is unbinding;
Step 4.5, the incompatible resource pool after pause unbundlings.
6. a kind of multiserver resource pool compatibility test according to claim 1 and modification method, which is characterized in that
In step 5, one by one by the incompatible resource pool to be measured respectively having timed out with the modified sub-step packet of the setting of template resource pool
It includes:
Step 5.1, judge whether the Pooled resources parameter of incompatible resource pool to be measured, resource pool rest parameter provide with template successively
Source pond is identical, and incompatible child resource pond is corrected with the parameter setting of template resource pool if different;
Step 5.2, start the revised incompatible resource pool of compatibility.
7. a kind of multiserver resource pool compatibility test according to claim 1 and modification method, which is characterized in that
In step 6, it would be compatible with the incompatible part that relationship is the compatible resource pool to be measured in part one by one and repaiied with the setting of template resource pool
Positive sub-step includes:
Step 6.1, the compatibility relation of each resource pool to be measured is read;
It step 6.2, will be in template resource pool and resource pool to be measured if the compatibility relation of resource pool to be measured is that part is compatible
Parameter compares one by one, suspends the Pooled resources of parameter occupancy if different, and subtracts 1 by the reference count of resource pool to be measured,
The parameter of different piece is with the setting amendment of template resource pool.
8. a kind of multiserver resource pool compatibility test and update the system, which is characterized in that the system comprises:Memory,
Processor and it is stored in the computer program that can be run in the memory and on the processor, the processor executes
The computer program realizes following steps:
Step 1, setting initial test case and template resource pool;
Step 2, judge that test case generates compatibility relation array with each resource pool to be measured successively;
Step 3, the compatibility relation of resource pool to be measured is judged according to compatibility relation array, wherein compatibility relation include it is completely compatible,
Incompatible and part is compatible;
Step 4, pause compatibility relation is incompatible resource pool to be measured;
Step 5, one by one by the incompatible resource pool to be measured respectively having timed out with the setting amendment of template resource pool;
Step 6, the incompatible part for the resource pool to be measured that relationship is part compatibility is would be compatible with one by one with the setting of template resource pool
It corrects.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810290668.2A CN108664393B (en) | 2018-04-03 | 2018-04-03 | Multi-server resource pool compatibility testing and correcting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810290668.2A CN108664393B (en) | 2018-04-03 | 2018-04-03 | Multi-server resource pool compatibility testing and correcting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108664393A true CN108664393A (en) | 2018-10-16 |
CN108664393B CN108664393B (en) | 2021-09-14 |
Family
ID=63782090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810290668.2A Active CN108664393B (en) | 2018-04-03 | 2018-04-03 | Multi-server resource pool compatibility testing and correcting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108664393B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103425536A (en) * | 2013-08-26 | 2013-12-04 | 中国科学院软件研究所 | Test resource management method oriented towards distributed system performance tests |
US8667019B2 (en) * | 2011-04-01 | 2014-03-04 | Microsoft Corporation | Placement goal-based database instance consolidation |
US20140114719A1 (en) * | 2012-10-18 | 2014-04-24 | International Business Machines Corporation | Allocating Service Consumers into Compatible Resource Pools |
CN105160456A (en) * | 2015-08-06 | 2015-12-16 | 中国石油大学(华东) | Petroleum platform resource pool management system |
CN105208123A (en) * | 2015-09-24 | 2015-12-30 | 广东亿迅科技有限公司 | Virtual desktop implementation method and system thereof |
CN105827455A (en) * | 2016-04-27 | 2016-08-03 | 乐视控股(北京)有限公司 | Method and apparatus for modifying resource model |
-
2018
- 2018-04-03 CN CN201810290668.2A patent/CN108664393B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8667019B2 (en) * | 2011-04-01 | 2014-03-04 | Microsoft Corporation | Placement goal-based database instance consolidation |
US20140114719A1 (en) * | 2012-10-18 | 2014-04-24 | International Business Machines Corporation | Allocating Service Consumers into Compatible Resource Pools |
CN103425536A (en) * | 2013-08-26 | 2013-12-04 | 中国科学院软件研究所 | Test resource management method oriented towards distributed system performance tests |
CN105160456A (en) * | 2015-08-06 | 2015-12-16 | 中国石油大学(华东) | Petroleum platform resource pool management system |
CN105208123A (en) * | 2015-09-24 | 2015-12-30 | 广东亿迅科技有限公司 | Virtual desktop implementation method and system thereof |
CN105827455A (en) * | 2016-04-27 | 2016-08-03 | 乐视控股(北京)有限公司 | Method and apparatus for modifying resource model |
Also Published As
Publication number | Publication date |
---|---|
CN108664393B (en) | 2021-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021147288A1 (en) | Container cluster management method, device and system | |
CN107360206B (en) | Block chain consensus method, equipment and system | |
CN112540841B (en) | Task scheduling method and device, processor and electronic equipment | |
US20230153158A1 (en) | Method, apparatus, system, and storage medium for performing eda task | |
CN107659450B (en) | Method and device for allocating big data cluster resources and storage medium | |
CN110633135A (en) | Asynchronous task allocation method, device, computer equipment and storage medium | |
US20210374319A1 (en) | Dynamic allocation of computing resources for electronic design automation operations | |
CN113807539B (en) | High reuse method, system, medium and terminal for machine learning and graphics computing power | |
CN112395736A (en) | Parallel simulation job scheduling method of distributed interactive simulation system | |
US20140325516A1 (en) | Device for accelerating the execution of a c system simulation | |
CN111309297A (en) | Script development system and method | |
CN108446141B (en) | Web front-end plug-in and method for scheduling and communicating based on same | |
CN111475998B (en) | Hybrid execution of Electronic Design Automation (EDA) process to delay acquisition of remote resources | |
CN108664393A (en) | A kind of multiserver resource pool compatibility test and modification method | |
CN117041980A (en) | Network element management method and device, storage medium and electronic equipment | |
CN111726418B (en) | Cloud resource allocation method and device, terminal equipment and storage medium | |
CN120029637B (en) | Kubernetes cluster one-click deployment and lifecycle management method and system | |
TWI748513B (en) | Data processing method, system, electronic device and storage media | |
CN113301068B (en) | Method and system for managing cluster resources, equipment, cluster and medium | |
CN112486501B (en) | Spark application deployment management method and related equipment | |
CN119806806A (en) | A distributed hydrological model parallel computing method, device, equipment and medium | |
CN116204402A (en) | Script running task scheduling method for user acceptance test and related equipment | |
TWI735519B (en) | Distributed environment coordinated consumption queue method and device | |
CN117708873A (en) | Sensitive content identification method, device, electronic equipment and computer readable medium | |
CN117251277A (en) | Method, device, equipment, medium and program product for executing task instance |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |