CN108241716A - A kind of resource introduction method and device - Google Patents

A kind of resource introduction method and device Download PDF

Info

Publication number
CN108241716A
CN108241716A CN201611228789.1A CN201611228789A CN108241716A CN 108241716 A CN108241716 A CN 108241716A CN 201611228789 A CN201611228789 A CN 201611228789A CN 108241716 A CN108241716 A CN 108241716A
Authority
CN
China
Prior art keywords
resource
target
imported
request
client
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
CN201611228789.1A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201611228789.1A priority Critical patent/CN108241716A/en
Publication of CN108241716A publication Critical patent/CN108241716A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/256Integrating or interfacing systems involving database management systems in federated or virtual databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

An embodiment of the present invention provides resource introduction method and devices, and applied to server, this method includes:The importing for importing resource to destination item that client is sent is received to ask, wherein, the importing request carries:Resource type, resource allocation information, the resource quantity of resource to be imported;According to the resource type, resource allocation information, resource quantity, judge in default resource pool with the presence or absence of the target resource for meeting the importing request;If it does, the target resource is imported into the destination item.Using scheme provided in an embodiment of the present invention, resource can be quickly introduced, reduces error.

Description

A kind of resource introduction method and device
Technical field
The present invention relates to field of cloud computer technology, more particularly to a kind of resource introduction method and device.
Background technology
With the development of Internet technology, various network services emerge in an endless stream, and the quantity of the network user is also in explosive increasing It is long, thus, just seem extremely important to the maintenance work of network service.
By taking the O&M to online game as an example, when game player increases, game development companies need to expand the game Deployment scale, for example, disposing more servers, database to meet the needs of users.In cloud computing technology, game is opened Hair company can be using cloud host, cloud database cloud resource come the deployment scale of expansion of games.First existing cloud resource is led Enter into corresponding project of playing, the cloud resource for reusing importing disposes this game item.
For example, a game item can be understood as to the O&M task of game.Cloud resource lead-in item is appreciated that For the incidence relation being established as between the cloud resource of the allocation of items and the project, the cloud resource for the allocation of items belongs to this Project, and for providing specific service for the project.
At present, can only be specified from existing resource pool manually import or buy after required cloud resource it is required It is manually imported after cloud resource, resource pool refers in cloud computation data center involved various hardware resources and software resource Set.However, in face of huge cloud resource pond, user needs to manually select the resource type of required cloud resource, and refer to Determine the concrete configuration of resource, later again by manually by specified cloud resource lead-in item, this side by manually importing resource Formula operation is lengthy and tedious, and easily malfunctions.
Invention content
The embodiment of the present invention is designed to provide a kind of resource introduction method and device, to quickly introduce resource, reduces Error.Specific technical solution is as follows:
In order to achieve the above objectives, the embodiment of the invention discloses resource introduction method, applied to server, the method packet It includes:
The importing for importing resource to destination item that client is sent is received to ask, wherein, the importing request carries:It treats Import resource type, resource allocation information, the resource quantity of resource;
According to the resource type, resource allocation information, resource quantity, it whether there is in the default resource pool of judgement and meet institute State the target resource for importing request;
If it does, the target resource is imported into the destination item.
Optionally, there is no the situations for meeting the target resource for importing request in the default resource pool is judged Under, it further includes:
According to the resource type, resource allocation information and resource quantity, the target resource is created, and by the target Resource is imported into the destination item.
Optionally, it is described according to the resource type, resource allocation information and resource quantity, the target resource is created, Including:
According to the resource type, resource allocation information and resource quantity, selection creates the target meter of the target resource Operator node;
The request to create for creating the target resource is sent to the target computing nodes, so that the target computing nodes The target resource is created according to the request to create.
Optionally, the method further includes:
Verify the permission whether corresponding user of the client there is request resource is imported to the destination item;
If it has, it performs described according to the resource type, resource allocation information, resource quantity, the default resource of judgement The step of in pond with the presence or absence of the target resource for meeting the importing request.
Optionally, it is described the target resource is imported into the destination item after, further include:
Success notification message is imported to the client feedback, the client is notified successfully to lead the target resource Enter into the destination item.
Optionally, the method further includes:
For the target resource, IP address is set;And/or
For the target resource, firewall policy is set.
Optionally, it is described import request be:The client is generated according to the information included in default template, described pre- If template includes:Resource type, resource allocation information, the resource quantity of resource to be imported.
In order to achieve the above objectives, it is described applied to server the embodiment of the invention also discloses a kind of resource gatherer Device includes:
Receiving module, the importing that resource is imported to destination item for receiving client transmission are asked, wherein, it is described to lead Enter request to carry:Resource type, resource allocation information, the resource quantity of resource to be imported;
Judgment module, for according to the resource type, resource allocation information, resource quantity, judging in default resource pool With the presence or absence of the target resource for meeting the importing request;If so, triggering import modul;
The import modul, for the target resource to be imported into the destination item.
Optionally, described device further includes:
Creation module, in judging the default resource pool in the judgment module there is no meet the importing please In the case of the target resource asked, according to the resource type, resource allocation information and resource quantity, the target money is created Source, and trigger the import modul.
Optionally, the creation module, including:
Submodule is selected, for according to the resource type, resource allocation information and resource quantity, selection to create the mesh Mark the target computing nodes of resource;
Sending submodule, for sending the request to create for creating the target resource to the target computing nodes, so that The target computing nodes create the target resource according to the request to create.
Optionally, described device further includes:
Authentication module provides for verifying whether the corresponding user of the client there is request to be imported to the destination item The permission in source;If it has, trigger the judgment module.
Optionally, described device further includes:
Feedback module, after in the import modul, the target resource is imported into the destination item, to The client feedback imports success notification message, notifies the client that the target resource successfully is imported into the mesh In mark project.
Optionally, described device further includes:
First setup module, for setting IP address for the target resource;And/or
Second setup module, for setting firewall policy for the target resource.
Optionally, it is described import request be:The client is generated according to the information included in default template, described pre- If template includes:Resource type, resource allocation information, the resource quantity of resource to be imported.
As seen from the above, configuration resource introduction method and device provided in an embodiment of the present invention, server are receiving client After what end was sent imports the importing request of resource to destination item, judge to import request with the presence or absence of meeting in default resource pool Target resource, if it does, target resource is imported into destination item.As it can be seen that scheme provided in an embodiment of the present invention, is not required to Manually resource is imported into project, simplify manual operation, so as to reduce the probability for importing error, and can be quick Import resource.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the first flow diagram of resource introduction method provided in an embodiment of the present invention;
Fig. 2 is second of flow diagram of resource introduction method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of a specific embodiment provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram that target resource is created in specific embodiment shown in Fig. 3;
Fig. 5 is the first flow diagram of resource gatherer provided in an embodiment of the present invention;
Fig. 6 is second of flow diagram of resource gatherer provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
To solve prior art problem, an embodiment of the present invention provides a kind of resource introduction method and devices.First below A kind of resource introduction method provided in an embodiment of the present invention is introduced.
It should be noted that resource can be the high in the clouds resource in cloud computing technology, also referred to as cloud resource, as cloud host, Cloud storage, cloud database or other kinds of resource, the embodiment of the present invention are not construed as limiting this;The embodiment of the present invention It can be used for Openstack frames, can be used for other frames, the embodiment of the present invention does not also limit this.Wherein, OpenStack is IaaS (Infrastructure as a Service, infrastructure service) component, anyone is allowed all may be used Voluntarily to establish and provide high in the clouds computational service.In addition, OpenStack also serves as " private clound " established in fire wall, provide Each department's shared resource in mechanism or enterprise.
Fig. 1 is the first flow diagram of resource introduction method provided in an embodiment of the present invention, and this method is applied to clothes Business device, including:
S101 receives the importing that resource is imported to destination item that client is sent and asks, wherein, it imports request and carries: Resource type, resource allocation information, the resource quantity of resource to be imported.
By taking cloud resource as an example, the resource type of resource to be imported can be divided into:Cloud host, cloud storage, cloud database, with For cloud host, resource allocation information can be:4 core CPU, 8G memories, have specific firewall configuration etc. at 100G hard disks. Certainly, other information can also be carried by importing in request, the identification information of the user as corresponding to client, the mark of destination item Know information etc., the present embodiment does not limit this.It can be HTTP (HyperText Transfer to import request Protocol, hypertext transfer protocol) request, or other kinds of request, the present embodiment also do not limit this.
In practical application, in order to simplify the operation of user, user's operation error rate is reduced, client can pre-set and lead Enter the template of request, such user only needs simply to be set in client, and client can be according to default template and use The information of family setting imports request to generate.Specifically, importing request can be:Client is according to the letter included in default template Breath generation, default template includes:Resource type, resource allocation information, the resource quantity of resource to be imported.
By taking the O&M project to game as an example, various types of resources is needed to realize the deployment of game, such as game Operation needs portal server, listserv, game server, game cache server, game database server etc., because This, the deployment of game also just needs various types of servers.In the game O&M project based on cloud computing technology, these classes The server of type is Cloud Server.
In view of the needs for O&M of playing, user are frequently necessary to import resource into game item in practical application, such as When the game player of current slot running game is more, existing portal server, game server etc. in game item Quantity cannot meet current player's demand, it is therefore desirable to a certain number of portal servers, game garment are imported into the project Business device.
In practical application, a game grouping of the resource imported as the game item can will be needed.When user needs When wanting the deployment scale of expansion of games, template is grouped using preset game in client and increases a game grouping, game point newly Required resource type setting option, resource allocation information setting option, resource quantity setting option etc. are included in group template.It is swimming It plays the required resource type of specified in packets, in practical application, imports efficiency to improve resource, it is possible to specify multiple types Resource, and specify its corresponding configuration information and quantity for each resource type.
Further, A is grouped for the game having had in client, when user also needs to addition one and game grouping When the identical game of A is grouped A ', directly newly-increased game it can be grouped A ' or to game on the basis of game is grouped A Grouping A is replicated to obtain game grouping A ', can be further simplified user's operation in this way.
S102 according to resource type, resource allocation information, resource quantity, is judged in default resource pool with the presence or absence of satisfaction Import the target resource of request;If it does, perform S103.
The relevant information of resource can record in resource pool has recorded the type of resource, has matched in the database in database Whether confidence breath position information, already is allocated to the information such as project.Wherein, it is marked as already being allocated to project Resource, it is impossible to be allocated again.
It should be understood that if some resource A is already allocated to project A, resource A cannot be allocated again. Further, when project does not need to some resource, which can be exported project by user, that is, by the resource from item It is discharged in mesh, in this way, after resource A is discharged by project A, resource A can be labeled as being not allocated to project by database, At this point, resource A can be carried out being assigned with.
In practical application, the form of preset resource engine algorithm scanning resource pool or scan database, example may be used High in the clouds resource engine algorithm such as based on Openstack, to judge in default resource pool with the presence or absence of the mesh for meeting importing request Mark resource.High in the clouds resource engine algorithm, it can be understood as recommended engine algorithm is exactly for different users, according to theirs Hobby and weighting, realize a kind of recommendation function, are exactly to be provided by high in the clouds resource engine algorithm from magnanimity high in the clouds in the present embodiment Recommend the high in the clouds resource of meet demand in source for user.Recommended engine algorithm can be based on recommended models and establish, below to recommending The mode of establishing of model is introduced:
It is envisioned that in the system of magnanimity article and user, the calculation amount of recommended engine is sizable, to realize reality When recommendation don't fail to establish a recommended models, establishing mode and can be divided into following 3 kinds about recommended models:
1st, the recommended models based on article and user in itself:This recommended engine by each user and each article as Independent entity predicts fancy grade of each user for each article, these information are often retouched with a two-dimensional matrix It states;Since the interested article of user is far smaller than the number of total article, cause a large amount of data vacant to get to two dimension Matrix is often a very big sparse matrix;Simultaneously in order to reduce calculation amount, article and user can be clustered, then Record and calculate fancy grade of a kind of user to a kind of article.
2nd, the recommended models based on correlation rule (Rule-based Recommendation):The excavation of correlation rule is The problem of through being a classics in data mining, the dependence of some data is mainly excavated, typical scene is exactly " purchase Object basket problem " by the excavation of correlation rule, can find which article is often bought simultaneously or user has purchased one Which other article usually can be also bought after a little articles, after these correlation rules are excavated, these rules can be based on Recommended to user.
3rd, the recommended models based on model (Model-based Recommendation):This is a typical engineering The problem of habit, using existing user preference information as training sample, can train the model of a prediction user preferences, this User can be based on this model when entering system and calculate recommendation after sample, and the real-time or recent preference information of user is fed back To trained model, the accuracy of recommendation can be improved.
In one implementation, in order to verify the legitimacy for importing request, server is receiving client transmission It is imported to destination item after the importing request of resource, can also verify whether the corresponding user of client has request to target The permission of task-driven resource;If it has, performing S102 again according to resource type, resource allocation information, resource quantity, judge The step of in default resource pool with the presence or absence of the target resource for importing request is met.
Specifically, by taking Openstack frames as an example, KeyStone services are the authentication service in OpenStack, for managing It manages user information and completes the login authentication to various components other in OpenStack.When user keystone service in into After row certification, keystone services can be to the service of token token_id and the user with permission of the user feedback user Catalogue so that user know itself whether have request to destination item import resource permission.Then led when user sends When entering to ask, need to carry the token_id of itself, in this way, server can to keystone service requests to token_id into Row verification, to verify whether user has the permission for asking that resource is imported to destination item.
Target resource is imported into destination item by S103.
Target resource is imported into destination item, it can be understood as:Target resource is distributed to destination item to use, is built Vertical incidence relation between target resource and destination item, target resource belong to destination item, and for being carried for destination item For specifically servicing.
For example, it is assumed that target resource is cloud host, after target resource is imported into destination item, further, Yong Huke To set role of the target resource in destination item as login service device, then the cloud host provides login clothes for destination item Business.
Further, can also be that target resource sets IP address since target resource can be used as server (Internet Protocol Address, Internet protocol address).It should be understood that when target resource is cloud resource, cloud Resource can generate in a manner that virtual machine technique simulates multiple virtual machines on a physical machine, at this point it is possible to root According to the IP address of the IP address generation target resource of physical machine, in order to identify target resource is provided by which platform physical machine 's.
Further, can also be that target resource sets fire wall in order to provide the network environment of safety to target resource Strategy.Specifically, setting firewall policy is the prior art, this will not be repeated here.
In practical application, in order to prompt user by resource lead-in item as a result, can also be imported by target resource After in destination item, success notification message is imported to client feedback, target resource is successfully imported by notice client In destination item.
As seen from the above, the configuration resource introduction method provided using embodiment illustrated in fig. 1, server are receiving client After what is sent imports the importing request of resource to destination item, judge in default resource pool with the presence or absence of meeting the mesh that imports request Resource is marked, if it does, target resource is imported into destination item.As it can be seen that scheme provided in this embodiment, does not need to be artificial Resource is imported into project, simplifies manual operation, so as to reduce the probability for importing error, and money can be quickly introduced Source.
Second flow diagrams of the Fig. 2 for resource introduction method provided in an embodiment of the present invention, embodiment shown in Fig. 1 On the basis of, it, should in the case where importing the target resource asked there is no satisfaction during step S102 judges default resource pool Resource introduction method can also include:
S104 according to resource type, resource allocation information and resource quantity, creates target resource, then perform S103.
For example, it is assumed that specified in packets of playing needs to configure 2 cloud hosts of 4 core CPU, 8G memories, 100G hard disks, and 1 cloud host for being configured with 4 core CPU, 8G memories, 100G hard disks is only existed in resource pool, it at this moment can be first by this 1 cloud host It imported into game item, then creates another 1 cloud host and imported into game item, can also first create 1 cloud host, then 2 cloud hosts are imported into game item together.
Specifically, according to resource type, resource allocation information and resource quantity, target resource is created, can be included:
According to resource type, resource allocation information and resource quantity, selection creates the target computing nodes of target resource;
The request to create for creating target resource is sent to target computing nodes, so that target computing nodes are according to request to create Create target resource.
In practical application, in the case where needing separately to create target resource, server can be according to required establishment Type, configuration information and the quantity of resource, are scheduled according to the hardware state that all calculate nodes are current, are saved from calculating The target computing nodes for establishing resource are determined in point, the request to create of establishing resource is then sent to target computing nodes, The request to create can carry type, configuration information and the quantity of resource created required for target computing nodes.Creating please It can be HTTP request to ask, or other kinds of request, the present embodiment do not limit this.
After calculate node receives request to create, according to the type of the resource of required establishment, configuration information and quantity, It downloads corresponding image file and creates virtual machine, and Internet resources and storage class are set for virtual machine, it is above-mentioned so as to be created that Quantity resource.
By taking Openstack frames as an example, Nova is the most crucial services of OpenStack, is responsible for maintenance and management high in the clouds money Source, Nova can provide a variety of sub-services, and e.g., nova-scheduler sub-services are scheduling virtual machine service, are responsible for determining Virtual machine is run in which calculate node;Nova-compute sub-services are arranged in calculate node, for managing virtual machine Kernel service, by the way that Hypervisor API is called to realize virtual machine life cycle management;Nova-network sub-services, are used for Network configuration is carried out to the calculate node before starting virtual machine in calculate node.In addition, cinder service loads are to virtual machine Lasting block storage resource is provided.
In the present embodiment, server can provide nova-scheduler sub-services, determine to be created by which calculate node Build target resource.It should be understood that when the target resource for needing to create is no less than two, the two resources can be by same Calculate node creates, and can also be created by different calculate nodes.
Target computing nodes can provide nova-compute sub-services, after request to create is received, Ke Yicong The image file of the target resource created required for being downloaded in glance serviced components creates virtual machine according to image file, and And network configuration is asked to nova-network sub-services, it is deposited to cinder service requests for the virtual machine distribution block created Storage, so as to be created that required cloud resource.
As it can be seen that be utilized cloud resource can resilient expansion, the characteristic of flexible configuration, be created that after required cloud resource directly Cloud resource is imported into project, plug and play, improve the service efficiency of resource.
In practical application, after target resource is created, it can also be target resource setting IP address, be that target resource is set Put firewall policy.In order to prompt user by resource lead-in item as a result, can also target resource imported into target item After in mesh, success notification message is imported to client feedback, target resource is successfully imported into target item by notice client In mesh.
As known from the above, mesh is not present in default resource pool in the resource introduction method provided using embodiment illustrated in fig. 2 When marking resource, server can automatically create required target resource according to user demand, then provide the target after establishment Source is imported into destination item.As it can be seen that the present embodiment does not need to that manually resource is imported into project, manual operation is simplified, So as to reduce the probability for importing error, and resource can be quickly introduced.
The resource introduction method provided below with a specific embodiment the embodiment of the present invention is introduced.
Fig. 3 is the flow diagram of this specific embodiment.User carries out O&M using O&M automation platform to project, with It plays for O&M, for a user, needs to create a game item for needing O&M in O&M automates platform, Game can be created in game item and is grouped template, when needing to be extended game scale, game grouping is created and is dividing Every resource distribution is defined in group, at this point it is possible to which sending resource to server imports request, high in the clouds is used by server Resource request algorithm scans high in the clouds resource pool, one by one matches each cloud resource in resource pool with resource distribution demand, If meeting resource distribution demand, just the cloud resource is imported into project, if conditions are not met, just being carried out to next cloud resource Matching.As it can be seen that in this specific embodiment, without manually importing cloud resource, directly intelligently imported from high in the clouds, simplify artificial behaviour Make, so as to reduce the probability for importing error, and resource can be quickly introduced.
When the cloud resource for meeting resource distribution demand is not present in high in the clouds, server can also preset money to client feedback There is no the message for meeting the target resource for importing request in the pond of source, so that client voluntarily asks to create target money to server Source.
Specifically, the schematic diagram of cloud resource is created in this specific embodiment as shown in Figure 4, under Openstack frames, Client services to keystone send HTTP call (request) first, uses user name username and password password Requests verification identity information, the identity of keystone service verification clients return to token token_id by rear, to client With service catalogue serviceCatalog;Then client sends HTTP request to the server for providing nova-api sub-services, The relevant parameter of token_id and the virtual machine of required establishment is carried in the request, such as type of virtual machine, configuration information, number The information such as amount;Nova-api sub-services are by the request for creating virtual machine with RPC (Remote Procedure Call Protocol, remote procedure call protocol) request form be sent to nova-scheduler sub-services, nova-scheduler Sub-services create virtual machine by scheduling is determining by specific calculation node, then the nova-compute on the specific calculation node Sub-services send the RPC requests for creating virtual machine;Nova-compute sub-services obtain corresponding mirror image from glance services File creates required virtual machine, and the request for creating network is sent to nova-network, services and sends out to cinder Block storage request is sent, thus creates required cloud resource.
Corresponding with above-mentioned resource introduction method, the embodiment of the present invention additionally provides a kind of resource gatherer.
The first structure diagram of Fig. 5 for resource gatherer provided in an embodiment of the present invention, the resource gatherer Applied to server, can include:
Receiving module 501, the importing that resource is imported to destination item for receiving client transmission are asked, wherein, institute Importing request is stated to carry:Resource type, resource allocation information, the resource quantity of resource to be imported;
Judgment module 502, for according to the resource type, resource allocation information, resource quantity, judging default resource pool In with the presence or absence of meet it is described import request target resource;If so, triggering import modul 503;
The import modul 503, for the target resource to be imported into the destination item.
Specifically, the resource gatherer can also include:
Authentication module (not shown), for verifying whether the corresponding user of the client has request to the mesh Mark the permission of task-driven resource;If it has, trigger the judgment module 502.
Specifically, the resource gatherer can also include:
Feedback module (not shown), for the target resource to be imported into the mesh in the import modul 503 After in mark project, success notification message is imported to the client feedback, notifies the client successfully by the target Resource is imported into the destination item.
Specifically, the resource gatherer can also include:
First setup module (not shown), for setting IP address for the target resource;And/or
Second setup module (not shown), for setting firewall policy for the target resource.
Specifically, the importing request is:The client is generated according to the information included in default template, described pre- If template includes:Resource type, resource allocation information, the resource quantity of resource to be imported.
As seen from the above, the configuration resource gatherer provided using embodiment illustrated in fig. 5, server are receiving client After what is sent imports the importing request of resource to destination item, judge in default resource pool with the presence or absence of meeting the mesh that imports request Resource is marked, if it does, target resource is imported into destination item.As it can be seen that scheme provided in this embodiment, does not need to be artificial Resource is imported into project, simplifies manual operation, so as to reduce the probability for importing error, and money can be quickly introduced Source.
Second structure diagrams of the Fig. 6 for resource gatherer provided in an embodiment of the present invention, embodiment shown in Fig. 5 On the basis of, which can also include:
Creation module 504, for there is no lead described in meeting in judging the default resource pool in the judgment module In the case of the target resource for entering request, according to the resource type, resource allocation information and resource quantity, the target is created Resource, and trigger the import modul 503.
Optionally, the creation module 504, can include:
Submodule (not shown) is selected, for according to the resource type, resource allocation information and resource quantity, choosing Select the target computing nodes for creating the target resource;
Sending submodule (not shown), for sending the wound for creating the target resource to the target computing nodes Request is built, so that the target computing nodes create the target resource according to the request to create.
As known from the above, the configuration resource gatherer provided using embodiment illustrated in fig. 6 is not deposited in default resource pool In target resource, server can automatically create required target resource according to user demand, then by the mesh after establishment Mark resource is imported into destination item.As it can be seen that the present embodiment does not need to that manually resource is imported into project, artificial behaviour is simplified Make, so as to reduce the probability for importing error, and resource can be quickly introduced.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as 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 Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (14)

1. a kind of resource introduction method, which is characterized in that applied to server, the method includes:
The importing for importing resource to destination item that client is sent is received to ask, wherein, the importing request carries:It is to be imported Resource type, resource allocation information, the resource quantity of resource;
According to the resource type, resource allocation information, resource quantity, judge to lead with the presence or absence of described in satisfaction in default resource pool Enter the target resource of request;
If it does, the target resource is imported into the destination item.
2. according to the method described in claim 1, it is characterized in that, there is no meet institute in the default resource pool is judged In the case of stating the target resource for importing request, further include:
According to the resource type, resource allocation information and resource quantity, the target resource is created, and by the target resource It imported into the destination item.
3. according to the method described in claim 2, it is characterized in that, it is described according to the resource type, resource allocation information and Resource quantity creates the target resource, including:
According to the resource type, resource allocation information and resource quantity, the target that selection creates the target resource calculates section Point;
The request to create for creating the target resource is sent to the target computing nodes so that the target computing nodes according to The request to create creates the target resource.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
Verify the permission whether corresponding user of the client there is request resource is imported to the destination item;
If it has, execution is described according to the resource type, resource allocation information, resource quantity, judge in default resource pool The step of with the presence or absence of the target resource for meeting the importing request.
5. according to the method described in claim 1, it is characterized in that, the target resource is imported into the target item described After in mesh, further include:
Success notification message is imported to the client feedback, the client is notified successfully to imported into the target resource In the destination item.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
For the target resource, IP address is set;And/or
For the target resource, firewall policy is set.
7. according to claim 1-6 any one of them methods, which is characterized in that it is described import request be:The client root It is generated according to the information included in default template, the default template includes:The resource type of resource to be imported, resource distribution letter Breath, resource quantity.
8. a kind of resource gatherer, which is characterized in that applied to server, described device includes:
Receiving module, the importing that resource is imported to destination item for receiving client transmission are asked, wherein, the importing please Ask carrying:Resource type, resource allocation information, the resource quantity of resource to be imported;
Judgment module, for according to the resource type, resource allocation information, resource quantity, judge in default resource pool whether In the presence of the target resource for meeting the importing request;If so, triggering import modul;
The import modul, for the target resource to be imported into the destination item.
9. device according to claim 8, which is characterized in that described device further includes:
Creation module, for there is no meet described to import request in judging the default resource pool in the judgment module In the case of target resource, according to the resource type, resource allocation information and resource quantity, the target resource is created, and Trigger the import modul.
10. device according to claim 9, which is characterized in that the creation module, including:
Submodule is selected, for according to the resource type, resource allocation information and resource quantity, selection to create the target money The target computing nodes in source;
Sending submodule, for sending the request to create for creating the target resource to the target computing nodes, so that described Target computing nodes create the target resource according to the request to create.
11. device according to claim 8, which is characterized in that described device further includes:
Authentication module, for verifying whether the corresponding user of the client there is request to import resource to the destination item Permission;If it has, trigger the judgment module.
12. device according to claim 8, which is characterized in that described device further includes:
Feedback module, after the target resource is imported into the destination item in the import modul, to described Client feedback imports success notification message, notifies the client that the target resource successfully is imported into the target item In mesh.
13. device according to claim 8, which is characterized in that described device further includes:
First setup module, for setting IP address for the target resource;And/or
Second setup module, for setting firewall policy for the target resource.
14. according to claim 8-13 any one of them devices, which is characterized in that it is described import request be:The client It is generated according to the information included in default template, the default template includes:The resource type of resource to be imported, resource distribution Information, resource quantity.
CN201611228789.1A 2016-12-27 2016-12-27 A kind of resource introduction method and device Pending CN108241716A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611228789.1A CN108241716A (en) 2016-12-27 2016-12-27 A kind of resource introduction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611228789.1A CN108241716A (en) 2016-12-27 2016-12-27 A kind of resource introduction method and device

Publications (1)

Publication Number Publication Date
CN108241716A true CN108241716A (en) 2018-07-03

Family

ID=62702757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611228789.1A Pending CN108241716A (en) 2016-12-27 2016-12-27 A kind of resource introduction method and device

Country Status (1)

Country Link
CN (1) CN108241716A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861055A (en) * 2019-04-28 2020-10-30 阿里巴巴集团控股有限公司 Resource scheduling method, device and platform
CN111991805A (en) * 2020-07-06 2020-11-27 广州西山居世游网络科技有限公司 Resource packaging method and system
WO2021057825A1 (en) * 2019-09-24 2021-04-01 华为技术有限公司 Cloud system resource set recommendation method and apparatus, and computing device cluster
CN117131249B (en) * 2023-10-26 2024-01-12 湖南省不动产登记中心 Intelligent management method and system for natural resource data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383653A (en) * 2012-05-02 2013-11-06 中国科学院计算技术研究所 Method and system for managing and dispatching cloud resource
CN103873534A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method and device for application cluster migration
CN104216786A (en) * 2014-09-01 2014-12-17 浪潮电子信息产业股份有限公司 Resource allocation method based on cloud monitoring
CN105991738A (en) * 2015-02-27 2016-10-05 中国移动通信集团四川有限公司 Method and system for cross safety domain resource sharing in cloud resource pool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383653A (en) * 2012-05-02 2013-11-06 中国科学院计算技术研究所 Method and system for managing and dispatching cloud resource
CN103873534A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method and device for application cluster migration
CN104216786A (en) * 2014-09-01 2014-12-17 浪潮电子信息产业股份有限公司 Resource allocation method based on cloud monitoring
CN105991738A (en) * 2015-02-27 2016-10-05 中国移动通信集团四川有限公司 Method and system for cross safety domain resource sharing in cloud resource pool

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861055A (en) * 2019-04-28 2020-10-30 阿里巴巴集团控股有限公司 Resource scheduling method, device and platform
WO2021057825A1 (en) * 2019-09-24 2021-04-01 华为技术有限公司 Cloud system resource set recommendation method and apparatus, and computing device cluster
CN111991805A (en) * 2020-07-06 2020-11-27 广州西山居世游网络科技有限公司 Resource packaging method and system
CN117131249B (en) * 2023-10-26 2024-01-12 湖南省不动产登记中心 Intelligent management method and system for natural resource data

Similar Documents

Publication Publication Date Title
CN110428257B (en) Password cracking task processing method, equipment and storage medium
D’Oro et al. A game theoretic approach for distributed resource allocation and orchestration of softwarized networks
Vilaplana et al. A queuing theory model for cloud computing
Klein et al. SanGA: A self-adaptive network-aware approach to service composition
US20190052551A1 (en) Cloud verification and test automation
CN105593835B (en) Multiple second level clouds are managed by main cloud service manager
CN105959168B (en) The technology of network copy
US20190394113A1 (en) Systems and methods to automatically evaluate blockchain-based solution performance
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN108241716A (en) A kind of resource introduction method and device
Suryateja A Comparative Analysis of Cloud Simulators.
Liu et al. A decentralized cloud firewall framework with resources provisioning cost optimization
US10807006B1 (en) Behavior-aware player selection for multiplayer electronic games
CN112494934A (en) Cloud game data processing method, device, equipment and storage medium
CN112749217B (en) Determination method, system and storage medium of target object adding channel
Tang et al. Budget‐constraint stochastic task scheduling on heterogeneous cloud systems
Tasiopoulos et al. FogSpot: Spot pricing for application provisioning in edge/fog computing
Eyckerman et al. Requirements for distributed task placement in the fog
CN112181599B (en) Model training method, device and storage medium
CN110536118A (en) A kind of data capture method, device and computer storage medium
Tortonesi et al. Business-driven service placement for highly dynamic and distributed cloud systems
CN113129002A (en) Data processing method and equipment
Shefu et al. Fruit fly optimization algorithm for network-aware web service composition in the cloud
Rahman et al. Blockchain-enabled SLA compliance for crowdsourced edge-based network function virtualization
Varalakshmi et al. Trust management model based on malicious filtered feedback in cloud

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180703