CN110149283A - A kind of resource layout implementation method and device - Google Patents

A kind of resource layout implementation method and device Download PDF

Info

Publication number
CN110149283A
CN110149283A CN201910428959.8A CN201910428959A CN110149283A CN 110149283 A CN110149283 A CN 110149283A CN 201910428959 A CN201910428959 A CN 201910428959A CN 110149283 A CN110149283 A CN 110149283A
Authority
CN
China
Prior art keywords
resource
message
message queue
layout
operating
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
CN201910428959.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.)
Wuxi Huayun Data Technology Service Co Ltd
Original Assignee
Wuxi Huayun Data Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Huayun Data Technology Service Co Ltd filed Critical Wuxi Huayun Data Technology Service Co Ltd
Priority to CN201910428959.8A priority Critical patent/CN110149283A/en
Publication of CN110149283A publication Critical patent/CN110149283A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application discloses a kind of resource layout implementation method and devices, resource layout side receives operation requests information first, then corresponding operation is executed according to the operation requests information, corresponding operation includes one or more operating procedures, and the operating result of each operating procedure is sent to message queue in form of a message;The first system executes corresponding operation according to logic of propositions after the corresponding message of the message queue acquisition operating result.The resource layout implementation method and device, the status information of resource can be sent to message queue in real time in resource layout process, it needs to manage to which other systems can recognize it from message queue, the state of the resource of monitoring, and then subsequent relevant operation is carried out when resource status is met the requirements, whole process is implemented without and customizes custom plug-in again, therefore layout flexibility is high and cost of implementation is low.

Description

A kind of resource layout implementation method and device
Technical field
The present invention relates to resource management techniques, and more specifically, it relates to a kind of resource layout implementation method and devices.
Background technique
With virtualization, the continuous development of cloud computing service, corresponding virtual resource is more and more, this is just needed to existing Or the virtual resource that will construct reasonably managed, i.e. resource layout.The process of resource layout is exactly will be needed for business Related IT infrastructure (referred to as one deployment) in a manner of layout, according to the needs of business, do the creation of an entirety With the process of management.
Existing resource cradle carries out resource management, usually realizes all in the form of plug-in unit;It is operated for specific, It needs to write corresponding specific program and generates plug-in unit, then ready-made plug-in unit is run in resource cradle, to complete spy Fixed operation, realizes resource management.For example, the creation of web application, needs after creating cloud host, web services are installed Device then needs to develop the plug-in unit based on web, and the resource write-in that cloud host and above-mentioned web are applied wherein, and will install The operation of web server is written after the foundation step in the cloud host life cycle, generates plug-in unit and in resource cradle Middle execution.
If desired existing resource cradle carries out some operations in some step in resource life cycle, must The old plug-in unit of new plug-in unit or modification must be developed, especially in the case where the operation is needed with the linkage of other operation systems, is realized Process is more complicated, therefore its flexibility is poor, and cost of implementation is high.
Summary of the invention
In view of this, the present invention provides a kind of resource layout implementation method and device, to overcome resource in the prior art The problem that layout flexibility is poor and cost of implementation is high.
To achieve the above object, the invention provides the following technical scheme:
A kind of resource layout implementation method is applied to resource layout side, comprising:
Receive operation requests information;
Corresponding operation is executed according to the operation requests information, corresponding operation includes one or more operation steps Suddenly;
The operating result of each operating procedure is sent to message queue in form of a message, so that the first system exists After obtaining the corresponding message of the operating result in the message queue, corresponding operation is executed according to logic of propositions.
It is optionally, described to execute corresponding operation according to the operation requests information, comprising:
Determine the corresponding target resource of the operation requests information;
Operation corresponding with the operation requests information is executed to the target resource.
Optionally, the operation requests information is the request of establishing resource, then described to hold according to the operation requests information Row corresponding operation, comprising:
According to one resource of the operation requests information creating.
Optionally, further includes:
It is pre-configured with message queue, the message queue is used to obtain for indicating resource status or resource operation result Message.
Optionally, the message queue is also used to obtain from the first system for indicating the first system state or described first The message of system execution operating result;
Then it is described the operating result of each operating procedure is sent to message queue in form of a message after, also wrap It includes:
The acknowledgement message that the first system is sent is obtained from the message queue, the acknowledgement message is first system For system after getting the corresponding message of the operating result, the implementing result according to the corresponding operating of logic of propositions execution is corresponding Message.
Optionally, described to include: according to operation requests information execution corresponding operation
Corresponding operation or asynchronous execution corresponding operation are executed according to the operation requests synchronizing information.
A kind of resource layout implementation method is applied to the first system, comprising:
The message for indicating target resource state or target resource operating result is obtained from message queue;
When the message indicates that the target resource meets preset condition, the target resource is held according to logic of propositions Row corresponding operation.
Optionally, further includes:
The operating result for executing corresponding operating to the target resource is sent to the message queue, so that resource is compiled It arranges side and executes subsequent relevant operation according to the operating result.
A kind of resource layout realization device is applied to resource layout side, comprising:
Request receiving module, for receiving operation requests information;
Resource operation module, for executing corresponding operation, corresponding operation packet according to the operation requests information Include one or more operating procedures;
Message transmission module, for the operating result of each operating procedure to be sent to message team in form of a message Column, so that the first system is after obtaining the corresponding message of the operating result in the message queue, according to logic of propositions Execute corresponding operation.
A kind of resource layout realization device is applied to the first system, comprising:
Message related to resources obtains module, for obtaining from message queue for indicating target resource state or target resource operation As a result message;
Operation module, for being patrolled according to default when the message indicates that the target resource meets preset condition It collects and corresponding operation is executed to the target resource.
It can be seen via above technical scheme that compared with prior art, the embodiment of the invention discloses a kind of resource layouts Implementation method and device, resource layout side receive operation requests information first, then execute phase according to the operation requests information The operation answered, corresponding operation includes one or more operating procedures, by the operating result of each operating procedure to disappear The form of breath is sent to message queue;The first system is after the corresponding message of the message queue acquisition operating result, root Corresponding operation is executed according to logic of propositions.The resource layout implementation method and device can will provide in resource layout process The status information in source is sent to message queue in real time, thus other systems can recognize from message queue its need manage, The state of the resource of monitoring, and then subsequent relevant operation is carried out when resource status is met the requirements, whole process is implemented without Custom plug-in is customized again, therefore layout flexibility is high and cost of implementation is low.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of resource layout implementation method disclosed by the embodiments of the present invention;
Fig. 2 is the flow chart of another resource layout implementation method disclosed by the embodiments of the present invention;
Fig. 3 is resource layout realization principle structure chart disclosed by the embodiments of the present invention;
Fig. 4 is the timing diagram of one disclosed by the embodiments of the present invention specific layout process;
Fig. 5 is the flow chart of the third resource layout implementation method disclosed by the embodiments of the present invention;
Fig. 6 is the flow chart of the 4th kind of resource layout implementation method disclosed by the embodiments of the present invention;
Fig. 7 is a kind of structural schematic diagram of resource layout realization device disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of another resource layout realization device disclosed by the embodiments of the present invention;
Fig. 9 is the structural schematic diagram of the third resource layout realization device disclosed by the embodiments of the present invention;
Figure 10 is the structural schematic diagram of the 4th kind of resource layout realization device disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of resource layout implementation method disclosed by the embodiments of the present invention, and resource layout shown in Fig. 1 is real Existing method can be applied to resource layout side, such as resource arranging system, resource cradle etc..It is shown in Figure 1, resource layout Implementation method may include:
Step 101: receiving operation requests information.
Wherein, the operation requests information can be the user of resource arranging system, if relevant staff is by defeated Enter the operation requests information of equipment input resource arranging system.The operation requests information may include creation to resource, rise The operation requests of any one or more links in the life cycles links such as grade, removal, also may include to life cycle ring The operation requests of any one or more steps in section.
Step 102: executing corresponding operation according to the operation requests information, corresponding operation includes one or more A operating procedure.
After receiving operation requests information, resource layout side begins to respond to the operation requests information, execute with it is described Operation requests information corresponding operation.The operation may include one or more operating procedures.
When the operation requests information is to be managed the request of operation to existing resource, the operation requests information In include existing resource correlation attribute information, for determining the resource operated, such as the money operated Source is virtual cloud host, and attribute information may include the information such as the IP address, user name, password of virtual cloud host, according to this A little attribute informations can determine one or more virtual cloud hosts, then carry out corresponding operating to determining virtual cloud host.Cause This, it is described to execute corresponding operation according to the operation requests information, it may include: that the determining operation requests information is corresponding Target resource;Operation corresponding with the operation requests information is executed to the target resource.
It may include needing to create in the operation requests information when the operation requests information is the request of establishing resource Build attribute information of resource, such as resource type, configuration parameter etc.;It is then described to be executed accordingly according to the operation requests information Operation includes: according to one resource of the operation requests information creating.
Step 103: the operating result of each operating procedure is sent to message queue in form of a message, so that the One system executes corresponding behaviour according to logic of propositions after obtaining the corresponding message of the operating result in the message queue Make.
Wherein, the message queue can be pre-configured with, the state change message of any one resource of resource layout side The message queue can be sent to.The message queue is open to other systems, so that other systems can pass through institute The message stated in message queue understands resource status, and carries out relevant work disposal.To which other systems are only needed by disappearing It ceases the message in queue and understands the rapid executive condition of resource side step, it will be able to continue subsequent processing step when meeting condition Suddenly, it realizes the cooperating of resource layout side and other systems, and no longer needs to customize custom plug-in.Above-mentioned other systems can be with It is arbitrary the third party system namely the first system of the resource progress linkage work of needs and resource layout side.
It should be noted that the message that resource layout side is sent to message queue not only can be behaviour in the present embodiment Make to start or the message of operation process as a result, being also possible to be used to indicate operation, in concrete application, can need match according to scene It sets and sends message to message queue in what situation, what node.
Operation requests information is received in addition, must not necessarily flank in resource layout, subsequent execution corresponding operating Shi Caikai Begin operating result being sent to message queue;In the specific implementation, can be pre-configured with, in any one of resource life cycle Before step and after step, related news are all sent to message queue automatically, the present embodiment is not to the lateral message of resource layout Rule, time, the content etc. that queue sends message do concrete restriction.
In the present embodiment, the resource layout implementation method can be by the status information of resource in resource layout process It is sent to message queue in real time, other systems can recognize that it needs the state of the resource of management, monitoring from message queue, into And according to logic of propositions, subsequent relevant operation is carried out in the case where resource status meets condition, whole process is implemented without Custom plug-in is customized again, therefore layout flexibility is high and cost of implementation is low.
Fig. 2 is the flow chart of another resource layout implementation method disclosed by the embodiments of the present invention, method application shown in Fig. 2 In resource layout side.As shown in connection with fig. 2, resource layout implementation method may include:
Step 201: being pre-configured with message queue, the message queue is for obtaining for indicating resource status or resource behaviour Make the message of result.
That is, can all send and disappear to the message queue when any one resource status in resource layout side changes Breath, the relevant information of instruction resource status variation.For example, resource layout side newly creates a cloud host, after success to be created, meeting Successful message will be created and be sent to the message queue, meanwhile, it can also include newly created cloud host in the message of transmission Title, IP address, the access information such as password.
Step 202: receiving operation requests information.
Step 203: executing corresponding operation according to the operation requests information, corresponding operation includes one or more A operating procedure.
Step 204: the operating result of each operating procedure is sent to message queue in form of a message, so that the One system executes corresponding behaviour according to logic of propositions after obtaining the corresponding message of the operating result in the message queue Make.
Step 205: obtaining the acknowledgement message that the first system is sent from the message queue, the acknowledgement message is institute The first system is stated after getting the corresponding message of the operating result, according to the execution knot for the corresponding operating that logic of propositions executes The corresponding message of fruit.
In the present embodiment, the message queue can not only receive the resource status message of resource layout side transmission, may be used also To obtain from the first system for indicating that the first system state or the first system execute the message of operating result.The message Message in queue belongs to shared message, and resource layout side can be from the message wherein obtained from the first system, the first system System can be from the message wherein obtained from resource layout side, in this way, the message queue becomes resource table layout side and the Communication " bridge " between one system, the two understand partner state by the message queue, complete to preset to work in coordination Work.
Fig. 3 is resource layout realization principle structure chart disclosed by the embodiments of the present invention, wherein representing resource with orchestration engine Layout side, software distribution system, charge system and monitoring system are several specific implementations namely above-mentioned implementation of third party system A kind of specific implementation of the first system described in example.
In conjunction with Fig. 3, wherein orchestration engine can receive the resource layout instruction of manager's transmission, such as creation one new Resource 1 sends to message queue after creating successfully and creates successful message, and software distribution system is read from message queue To after the successful message of above-mentioned creation, according to the access information of resource 1 in the message, Xiang Ziyuan 1 distributes software, so that the software Can in resource 1 installation and operation.
The linkage work of resource layout side and other systems no longer needs to customize custom plug-in as a result, and intrusive is integrated Into arranging system.By resource layout implementation method disclosed in the above embodiments of the present application, any third party system only needs Message in monitoring information queue, get to be managed, the state of resource that monitors and information can carry out institute to resource The management operation needed or other self-defining operations.
In specifically realizing at one, Fig. 4 shows the timing diagram of a specific layout process, as shown in connection with fig. 4, compiles Being drained through journey includes following content:
Step 1: user needs to create cloud host and completes self-defining operation (such as installation software), which can be sent to money The step of source orchestration engine, then orchestration engine executes creation cloud host, after the completion of waiting the creation of cloud host, orchestration engine is sent For the message that the creation of cloud host is completed to message queue, which includes creating the stateful and information of successful cloud host;
Step 2: other systems receive disappearing for cloud host creation completion if software distribution system monitors unified message queue After breath, the state and information of cloud host are taken out from message, judges whether execute self-defining operation accordingly, this example medium cloud master Machine state is " creating successfully ", and then software distribution system continues to subsequent operation;
Step 3: software distribution system executes on the cloud host certainly according to the access information (taking from message) of cloud host Defining operation (installation software) operation;
Step 4: the self-defining operation executes completion;
Step 5: software distribution system can send in form of a message implementing result to unified message queue, be compiled with facilitating Row's engine or other third party systems consume the message;
Following step begins with two different situations: synchronous situation and asynchronous situation.Synchronous situation refers to After the message that first step orchestration engine has sent " cloud host creates successfully ", third party system can be waited to complete customized Operation;Asynchronous condition refers to that after the first step orchestration engine continues other life cycle steps, until entire layout task Before completion, the unified execution message for waiting all self-defining operations.In Fig. 4, step 6 is synchronous situation, and step 7 is asynchronous feelings Condition;
Step 6a: after orchestration engine has sent the message of " cloud host creates successfully ", third party system can be waited to complete Self-defining operation;
Step 6b: orchestration engine receives the message that the self-defining operation of software distribution system is completed from unified message queue Afterwards, it is taken out implementing result, is supplied to next step as needed, the subsequent operation of layout task is then proceeded to, in this example In, all editing operations have been completed, and orchestration engine can return to final result to user;
Step 7a: after orchestration engine has sent the message of " cloud host creates successfully ", it will continue to fabricate one's defects other of task Subsequent step, until before entire layout task is completed, the unified execution message for waiting all self-defining operations;
Step 7b: orchestration engine is after receiving the message that all self-defining operations are completed in unified message queue, Cong Zhongqu Implementing result out is supplied to as needed and returns to final result to user.
Content is made referrals to according to above-described embodiment, resource layout side executes corresponding operation according to the operation requests information It may include: to execute corresponding operation or asynchronous execution corresponding operation according to the operation requests synchronizing information.
The resource layout implementation method of the application introduction, homologous ray does not share the status message of the resource of itself or management To message queue, any one system can understand the resource of other systems or other systems management by monitoring message queue State, so that each system can cooperate and complete resource jointly according to logic of propositions and fabricate one's defects task.It is disclosed herein Scheme can greatly improve the flexibility of resource layout and the integration capability of arranging system and other systems, support more polymorphic type Scene, realize complicated multisystem collaboration linkage, meet the resource layout demand of requirements at the higher level.
Fig. 5 is the flow chart of the third resource layout implementation method disclosed by the embodiments of the present invention, method application shown in Fig. 5 In the first system, the first system, which refers to, is not belonging to resource arranging system, and needs times with resource arranging system linkage work Meaning third party system.Shown in Figure 5, resource layout implementation method may include:
Step 501: obtaining the message for indicating target resource state or target resource operating result from message queue.
The message queue can obtain the message for indicating resource status or resource operation result from resource layout side, In this way, the first system monitors the message queue, so that it may obtain its target resource for needing management, interaction from message queue State, such as states such as asset creation completes, in resource graded, and resource graded success, resource are deleted.
Step 502: when the message indicates that the target resource meets preset condition, according to logic of propositions to the mesh It marks resource and executes corresponding operation.
The execution logic of resource layout task can be pre-saved in the first system, wherein some step may need Target resource can be executed smoothly after carrying out relevant operation, for example, the first system installs the first software on target resource, only Have and reach a higher target value in the running memory of target resource and just will do it, in the target resource is currently running It deposits in the case where the target value is not achieved, resource layout side needs first to upgrade the target resource, and before starting upgrading, resource is compiled Arrange side can first to message queue send message, indicate that the target resource starts to upgrade, the first system after getting the message, Target resource upgrading is waited to complete;After the completion of target resource upgrading, a message instruction target money is retransmited to message queue Source upgrading is completed, and for the first system after monitoring the message, confirmation target resource meets mounting condition, starts to provide to target Source sends first software-related data, so that first software success installation and operation on the target resource.
In the present embodiment, the resource layout implementation method can be by the status information of resource in resource layout process It is sent to message queue in real time, other systems can recognize that it needs the state of the resource of management, monitoring from message queue, into And according to logic of propositions, subsequent relevant operation is carried out in the case where resource status meets condition, whole process is implemented without Custom plug-in is customized again, therefore layout flexibility is high and cost of implementation is low.
On the basis of embodiment disclosed above, Fig. 6 is the 4th kind of resource layout disclosed by the embodiments of the present invention realization The flow chart of method, as shown in fig. 6, in the present embodiment, resource method of combination may include:
Step 601: obtaining the message for indicating target resource state or target resource operating result from message queue.
Step 602: when the message indicates that the target resource meets preset condition, according to logic of propositions to the mesh It marks resource and executes corresponding operation.
Step 603: the operating result for executing corresponding operating to the target resource is sent to the message queue, so that It obtains resource layout side and executes subsequent relevant operation according to the operating result.
Because the first system is to interact operation with target resource, the first system is to the target The operating result that resource executes corresponding operating is sent to the first system by the target resource first, and then the first system is again The operating result is sent to message queue, after sending successfully, resource layout side can understand the first system from message queue System is operated on target resource and is completed, and then can be continued resource and be fabricated one's defects other subsequent work in task.
In the present embodiment, the message queue can not only receive the resource status message of resource layout side transmission, may be used also To obtain from the first system for indicating that the first system state or the first system execute the message of operating result.The message Message in queue belongs to shared message, and resource layout side can be from the message wherein obtained from the first system, the first system System can be from the message wherein obtained from resource layout side, in this way, resource table layout side and the first system can be smoothly It works in coordination and completes default work.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
Method is described in detail in aforementioned present invention disclosed embodiment, diversified forms can be used for method of the invention Device realize that therefore the invention also discloses a kind of devices, and specific embodiment is given below and is described in detail.
Fig. 7 is a kind of structural schematic diagram of resource layout realization device disclosed by the embodiments of the present invention, and resource shown in Fig. 7 is compiled Row's realization device 70 can be applied to resource layout side, such as resource arranging system, resource cradle etc..It is shown in Figure 7, money Source layout realization device 70 may include:
Request receiving module 701, for receiving operation requests information.
Wherein, the operation requests information can be the user of resource arranging system, if relevant staff is by defeated Enter the operation requests information of equipment input resource arranging system.The operation requests information may include creation to resource, rise The operation requests of any one or more links in the life cycles links such as grade, removal, also may include to life cycle ring The operation requests of any one or more steps in section.
Resource operation module 702, for executing corresponding operation, corresponding operation according to the operation requests information Including one or more operating procedures.
After receiving operation requests information, resource layout side begins to respond to the operation requests information, execute with it is described Operation requests information corresponding operation.The operation may include one or more operating procedures.
When the operation requests information is to be managed the request of operation to existing resource, the operation requests information In include existing resource correlation attribute information, for determining the resource operated, such as the money operated Source is virtual cloud host, and attribute information may include the information such as the IP address, user name, password of virtual cloud host, according to this A little attribute informations can determine one or more virtual cloud hosts, then carry out corresponding operating to determining virtual cloud host.Cause This, the resource operation module 702 is particularly used in: determining the corresponding target resource of the operation requests information;To the mesh It marks resource and executes operation corresponding with the operation requests information.
It may include needing to create in the operation requests information when the operation requests information is the request of establishing resource Build attribute information of resource, such as resource type, configuration parameter etc.;Then the resource operation module 702 is particularly used in: foundation One resource of the operation requests information creating.
Message transmission module 703, for the operating result of each operating procedure to be sent to message in form of a message Queue, so that the first system is patrolled after obtaining the corresponding message of the operating result in the message queue according to default It collects and executes corresponding operation.
Wherein, the message queue can be pre-configured with, the state change message of any one resource of resource layout side The message queue can be sent to.The message queue is open to other systems, so that other systems can pass through institute The message stated in message queue understands resource status, and carries out relevant work disposal.To which other systems are only needed by disappearing It ceases the message in queue and understands the rapid executive condition of resource side step, it will be able to continue subsequent processing step when meeting condition Suddenly, it realizes the cooperating of resource layout side and other systems, and no longer needs to customize custom plug-in.
It should be noted that the message that resource layout side is sent to message queue not only can be behaviour in the present embodiment Make to start or the message of operation process as a result, being also possible to be used to indicate operation, in concrete application, can need match according to scene It sets and sends message to message queue in what situation, what node.
In the present embodiment, the resource layout realization device can be by the status information of resource in resource layout process It is sent to message queue in real time, other systems can recognize that it needs the state of the resource of management, monitoring from message queue, into And according to logic of propositions, subsequent relevant operation is carried out in the case where resource status meets condition, whole process is implemented without Custom plug-in is customized again, therefore layout flexibility is high and cost of implementation is low.
On the basis of the above embodiments, Fig. 8 is another resource layout realization device disclosed by the embodiments of the present invention Structural schematic diagram, as shown in figure 8, resource layout realization device 80 may include:
Configuration module 801, for being pre-configured with message queue, the message queue is for obtaining for indicating resource status Or the message of resource operation result.
That is, can all send and disappear to the message queue when any one resource status in resource layout side changes Breath, the relevant information of instruction resource status variation.
Request receiving module 701, for receiving operation requests information.
Resource operation module 702, for executing corresponding operation, corresponding operation according to the operation requests information Including one or more operating procedures.
Message transmission module 703, for the operating result of each operating procedure to be sent to message in form of a message Queue, so that the first system is patrolled after obtaining the corresponding message of the operating result in the message queue according to default It collects and executes corresponding operation.
Message capturing module 802, it is described for obtaining the acknowledgement message that the first system is sent from the message queue Acknowledgement message is the first system after getting the corresponding message of the operating result, is executed according to logic of propositions corresponding The corresponding message of the implementing result of operation.
In the present embodiment, the message queue can not only receive the resource status message of resource layout side transmission, may be used also To obtain from the first system for indicating that the first system state or the first system execute the message of operating result.The message Message in queue belongs to shared message, and resource layout side can be from the message wherein obtained from the first system, the first system System can be from the message wherein obtained from resource layout side, in this way, resource table layout side and the first system can be smoothly It works in coordination and completes default work.
In above-described embodiment, the resource operation module 702 is particularly used in: being held according to the operation requests synchronizing information Row corresponding operation or asynchronous execution corresponding operation.
Fig. 9 is the structural schematic diagram of the third resource layout realization device disclosed by the embodiments of the present invention, Fig. 9 shown device Applied to the first system, the first system, which refers to, is not belonging to resource arranging system, and needs and resource arranging system linkage work Any third party system.Shown in Figure 5, resource layout realization device 90 may include:
Message related to resources obtains module 901, for obtaining from message queue for indicating target resource state or target resource The message of operating result.
The message queue can obtain the message for indicating resource status or resource operation result from resource layout side, In this way, the first system monitors the message queue, so that it may obtain its target resource for needing management, interaction from message queue State, such as states such as asset creation completes, in resource graded, and resource graded success, resource are deleted.
Operation module 902, for when the message indicates that the target resource meets preset condition, according to default Logic executes corresponding operation to the target resource.
The execution logic of resource layout task can be pre-saved in the first system, wherein some step may need Target resource can be executed smoothly after carrying out relevant operation.
In the present embodiment, the resource layout realization device can be by the status information of resource in resource layout process It is sent to message queue in real time, other systems can recognize that it needs the state of the resource of management, monitoring from message queue, into And according to logic of propositions, subsequent relevant operation is carried out in the case where resource status meets condition, whole process is implemented without Custom plug-in is customized again, therefore layout flexibility is high and cost of implementation is low.
On the basis of embodiment disclosed above, Figure 10 is the 4th kind of resource layout disclosed by the embodiments of the present invention realization The structural schematic diagram of device, as shown in connection with fig. 10, resource layout realization device 100 may include:
Message related to resources obtains module 901, for obtaining from message queue for indicating target resource state or target resource The message of operating result.
Operation module 902, for when the message indicates that the target resource meets preset condition, according to default Logic executes corresponding operation to the target resource.
Message sharing module 1001, it is described for the operating result for executing corresponding operating to the target resource to be sent to Message queue, so that resource layout side executes subsequent relevant operation according to the operating result.
Because the first system is to interact operation with target resource, the first system is to the target The operating result that resource executes corresponding operating is sent to the first system by the target resource first, and then the first system is again The operating result is sent to message queue, after sending successfully, resource layout side can understand the first system from message queue System is operated on target resource and is completed, and then can be continued resource and be fabricated one's defects other subsequent work in task.
In the present embodiment, the message queue can not only receive the resource status message of resource layout side transmission, may be used also To obtain from the first system for indicating that the first system state or the first system execute the message of operating result.The message Message in queue belongs to shared message, and resource layout side can be from the message wherein obtained from the first system, the first system System can be from the message wherein obtained from resource layout side, in this way, resource table layout side and the first system can be smoothly It works in coordination and completes default work.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of resource layout implementation method is applied to resource layout side characterized by comprising
Receive operation requests information;
Corresponding operation is executed according to the operation requests information, corresponding operation includes one or more operating procedures;
The operating result of each operating procedure is sent to message queue in form of a message, so that the first system is from institute It states after obtaining the corresponding message of the operating result in message queue, corresponding operation is executed according to logic of propositions.
2. resource layout implementation method according to claim 1, which is characterized in that described according to the operation requests information Execute corresponding operation, comprising:
Determine the corresponding target resource of the operation requests information;
Operation corresponding with the operation requests information is executed to the target resource.
3. resource layout implementation method according to claim 1, which is characterized in that the operation requests information is creation money The request in source, then it is described to execute corresponding operation according to the operation requests information, comprising:
According to one resource of the operation requests information creating.
4. resource layout implementation method according to claim 1, which is characterized in that further include:
It is pre-configured with message queue, the message queue is used to obtain for indicating disappearing for resource status or resource operation result Breath.
5. resource layout implementation method according to claim 4, which is characterized in that the message queue is also used to from first System is obtained for indicating that the first system state or the first system execute the message of operating result;
Then it is described the operating result of each operating procedure is sent to message queue in form of a message after, further includes:
The acknowledgement message that the first system is sent is obtained from the message queue, the acknowledgement message is that the first system exists After getting the corresponding message of the operating result, the implementing result of the corresponding operating executed according to logic of propositions is corresponding to disappear Breath.
6. resource layout implementation method according to claim 1-5, which is characterized in that described according to the operation Solicited message executes corresponding operation
Corresponding operation or asynchronous execution corresponding operation are executed according to the operation requests synchronizing information.
7. a kind of resource layout implementation method is applied to the first system characterized by comprising
The message for indicating target resource state or target resource operating result is obtained from message queue;
When the message indicates that the target resource meets preset condition, phase is executed to the target resource according to logic of propositions The operation answered.
8. resource layout implementation method according to claim 7, which is characterized in that further include:
The operating result for executing corresponding operating to the target resource is sent to the message queue, so that resource layout side Subsequent relevant operation is executed according to the operating result.
9. a kind of resource layout realization device is applied to resource layout side characterized by comprising
Request receiving module, for receiving operation requests information;
Resource operation module, for executing corresponding operation according to the operation requests information, corresponding operation includes one A or multiple operating procedures;
Message transmission module, for the operating result of each operating procedure to be sent to message queue in form of a message, with So that the first system executes phase according to logic of propositions after obtaining the corresponding message of the operating result in the message queue The operation answered.
10. a kind of resource layout realization device is applied to the first system characterized by comprising
Message related to resources obtains module, for obtaining from message queue for indicating target resource state or target resource operating result Message;
Operation module, for when the message indicates that the target resource meets preset condition, according to logic of propositions pair The target resource executes corresponding operation.
CN201910428959.8A 2019-05-22 2019-05-22 A kind of resource layout implementation method and device Pending CN110149283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910428959.8A CN110149283A (en) 2019-05-22 2019-05-22 A kind of resource layout implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910428959.8A CN110149283A (en) 2019-05-22 2019-05-22 A kind of resource layout implementation method and device

Publications (1)

Publication Number Publication Date
CN110149283A true CN110149283A (en) 2019-08-20

Family

ID=67592606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910428959.8A Pending CN110149283A (en) 2019-05-22 2019-05-22 A kind of resource layout implementation method and device

Country Status (1)

Country Link
CN (1) CN110149283A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529932B1 (en) * 1998-04-01 2003-03-04 Microsoft Corporation Method and system for distributed transaction processing with asynchronous message delivery
CN102523200A (en) * 2011-11-29 2012-06-27 上海计算机软件技术开发中心 Internet of things information processing method
US20130297685A1 (en) * 2012-05-01 2013-11-07 Red Hat, Inc. Mechanism for communications between a server orchestration system and a messaging system
CN104991952A (en) * 2015-07-17 2015-10-21 南威软件股份有限公司 Intelligent data dissemination flow engine and data synchronization method thereof
CN107145380A (en) * 2017-03-27 2017-09-08 华为技术有限公司 Virtual resource method of combination and device
CN107368365A (en) * 2017-07-25 2017-11-21 携程旅游信息技术(上海)有限公司 Cloud platform automatic O&M method, system, equipment and storage medium
CN108243205A (en) * 2016-12-23 2018-07-03 上海诺基亚贝尔股份有限公司 A kind of method, equipment and system for being used to control cloud platform resource allocation
CN109120444A (en) * 2018-08-21 2019-01-01 陆明 cloud resource management method, processor and storage medium
CN109246201A (en) * 2018-08-21 2019-01-18 陆明 cloud resource delivery method, processor and storage medium
CN109298855A (en) * 2018-10-16 2019-02-01 国网河北省电力有限公司电力科学研究院 A kind of network target range management system and its implementation, device, storage medium
CN109445923A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of method and device of micro services task schedule
CN109561147A (en) * 2018-11-30 2019-04-02 武汉烽火信息集成技术有限公司 A kind of isomery cloud management method and system, isomery cloud management system constituting method
CN111147555A (en) * 2019-12-13 2020-05-12 苏州博纳讯动软件有限公司 Heterogeneous resource mixed arrangement method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529932B1 (en) * 1998-04-01 2003-03-04 Microsoft Corporation Method and system for distributed transaction processing with asynchronous message delivery
CN102523200A (en) * 2011-11-29 2012-06-27 上海计算机软件技术开发中心 Internet of things information processing method
US20130297685A1 (en) * 2012-05-01 2013-11-07 Red Hat, Inc. Mechanism for communications between a server orchestration system and a messaging system
CN104991952A (en) * 2015-07-17 2015-10-21 南威软件股份有限公司 Intelligent data dissemination flow engine and data synchronization method thereof
CN108243205A (en) * 2016-12-23 2018-07-03 上海诺基亚贝尔股份有限公司 A kind of method, equipment and system for being used to control cloud platform resource allocation
CN107145380A (en) * 2017-03-27 2017-09-08 华为技术有限公司 Virtual resource method of combination and device
CN107368365A (en) * 2017-07-25 2017-11-21 携程旅游信息技术(上海)有限公司 Cloud platform automatic O&M method, system, equipment and storage medium
CN109120444A (en) * 2018-08-21 2019-01-01 陆明 cloud resource management method, processor and storage medium
CN109246201A (en) * 2018-08-21 2019-01-18 陆明 cloud resource delivery method, processor and storage medium
CN109298855A (en) * 2018-10-16 2019-02-01 国网河北省电力有限公司电力科学研究院 A kind of network target range management system and its implementation, device, storage medium
CN109445923A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of method and device of micro services task schedule
CN109561147A (en) * 2018-11-30 2019-04-02 武汉烽火信息集成技术有限公司 A kind of isomery cloud management method and system, isomery cloud management system constituting method
CN111147555A (en) * 2019-12-13 2020-05-12 苏州博纳讯动软件有限公司 Heterogeneous resource mixed arrangement method

Similar Documents

Publication Publication Date Title
CN108809722B (en) Method, device and storage medium for deploying Kubernetes cluster
EP3455728B1 (en) Orchestrator for a virtual network platform as a service (vnpaas)
CN108536519B (en) Method for automatically building Kubernetes main node and terminal equipment
JP6329547B2 (en) System and method for providing a service management engine for use in a cloud computing environment
EP3053052B1 (en) Managing a number of secondary clouds by a master cloud service manager
CN110737442A (en) edge application management method and system
CN110752947A (en) K8s cluster deployment method and device, and deployment platform
CN110708188A (en) Method and device for creating network slice based on SLA
CN108628716B (en) Information receiving and managing system, method and device
CN107749807B (en) Network function verification method and verification system for NFV
CN110138577B (en) Cluster creation method, first server and readable storage medium
CN109918435A (en) A kind of processing method and system of business interface
JP7493053B2 (en) Image file generating method, device and computer program
CN114706690B (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN105306237A (en) Distributed management method and device for network management
CN105404530B (en) It is a kind of to realize easy deployment and the system and method using private clound
CN109799998A (en) OpenStack cluster configuration and batch dispositions method and system
CN111245634A (en) Virtualization management method and device
CN106502717A (en) application program operation method and device
CN109885612A (en) The synchronization take-effective method and device of block chain intelligence contract
CN115604120A (en) Multi-cloud cluster resource sharing method, device, equipment and storage medium
CN112882765A (en) Digital twin model scheduling method and device
CN114565502A (en) GPU resource management method, scheduling method, device, electronic equipment and storage medium
CN113162944B (en) Network communication method, device and equipment for security operation platform and security component
CN112181049B (en) Cluster time synchronization method, device, system, equipment and readable storage medium

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: 20190820

RJ01 Rejection of invention patent application after publication