CN104461736B - Resource allocation and searching method, resource allocation and search system and Cloud Server - Google Patents

Resource allocation and searching method, resource allocation and search system and Cloud Server Download PDF

Info

Publication number
CN104461736B
CN104461736B CN201410746658.7A CN201410746658A CN104461736B CN 104461736 B CN104461736 B CN 104461736B CN 201410746658 A CN201410746658 A CN 201410746658A CN 104461736 B CN104461736 B CN 104461736B
Authority
CN
China
Prior art keywords
resource
user
available resources
search
address
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.)
Active
Application number
CN201410746658.7A
Other languages
Chinese (zh)
Other versions
CN104461736A (en
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.)
CHANJET INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHANJET INFORMATION 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 CHANJET INFORMATION TECHNOLOGY Co Ltd filed Critical CHANJET INFORMATION TECHNOLOGY Co Ltd
Priority to CN201410746658.7A priority Critical patent/CN104461736B/en
Publication of CN104461736A publication Critical patent/CN104461736A/en
Application granted granted Critical
Publication of CN104461736B publication Critical patent/CN104461736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of resource allocations and searching method, a kind of resource allocation and search system and a kind of Cloud Server, wherein resource allocation includes with searching method:It is that any user of Cloud Server distributes available resources pond according to the total resources pond of Cloud Server and the distribution order received;Search mapping is established for the address of any resource in the address and available resources pond of any user;When receiving searching request of any user to any resource, the address of any resource is obtained according to search mapping;Data search request is sent to address, for obtaining any resource from address.According to the technical solution of the present invention, the application request of different user can be directed to, to positioning of the resource needed for it in shared resource pond, fully cloud application service is provided for more enterprise customers using limited resources, it can be according to the demand reasonable distribution resource of each cloud application, to save expense of the enterprise in cloud application service.

Description

Resource allocation and searching method, resource allocation and search system and Cloud Server
Technical field
The present invention relates to cloud application technical fields, in particular to a kind of resource allocation and searching method, a kind of resource Distribution and search system and a kind of Cloud Server.
Background technique
Currently, cloud application can make enterprise obtain more cheap search service under unified frame, without voluntarily Search system is built, moreover, reasonable resource-sharing means the more reasonable utilization of resources for search service end, Under limited resources supplIes, search service end can provide search service for more cloud applications, to make search service end can be with Play bigger value.
Due to all various factors such as equipment and maintenance, more and more medium-sized and small enterprises are selected some non-core of oneself Heart business has been put on the cloud that public cloud service provider provides and has been handled, wherein the cloud that public cloud service provider provides Including calculating cloud, storage cloud etc..For medium-sized and small enterprises, the expense reduction many in terms of maintenance service can be made in this way, so And even if in this way, the expense of maintenance service can be still a no small spending for medium-sized and small enterprises, if cannot fill Divide and utilize cloud application service, it is meant that the waste of spending.And for cloud application service, unified platform search service can Effectively to economize on resources.
Therefore a kind of new technical solution is needed, it can be according to the demand reasonable distribution resource of each cloud application, to drop The expense that low enterprise invests in terms of cloud application service.
Summary of the invention
The present invention is based on the above problems, proposes a kind of new technical solution, can be according to the need of each cloud application Reasonable distribution resource is sought, to reduce the expense that enterprise invests in terms of cloud application service.
In view of this, the embodiment of the first aspect of the present invention proposes a kind of resource allocation and searching method, including:Root Total resources pond according to Cloud Server and the distribution order received, are that any user of the Cloud Server distributes available resources Pond;Search mapping is established for the address of any resource in the address and the available resources pond of any user;It is receiving When to any user to the searching request of any resource, the institute of any resource is obtained according to described search mapping State address;The data search request is sent to the address, for obtaining any resource from the address.
Resource allocation according to an embodiment of the present invention and searching method have searching resource in the resource pool of Cloud Server, when When user sends searching request, the ground of the resource needed for being obtained by the address and mapping relations of searching request offer Location, to allow users to rapidly search for required resource information.By the technical solution, Cloud Server can be for not Can fully be using limited resource to positioning of the resource needed for it in shared resource pond with the application request of user More enterprise customers provide cloud application service, realize the shared of enterprise's cloud searching resource, can be according to each cloud application Demand reasonable distribution resource, thus save enterprise cloud application service on expense.In addition, by total resources pond, can be used The distribution of resource pool, the multi-user data being also effectively isolated on shared resource block, improves search efficiency.
According to one embodiment of present invention, there is any resource and any resource in the available resources pond Key assignments, and establish described search mapping after, further include:Described search mapping is stored in a manner of key-value pair described In the memory database of Cloud Server;And the described search mapping of storage in the memory database is backed up.
Resource allocation according to an embodiment of the present invention and searching method, by the mapping relations of user and searching resource with key assignments Pair mode be stored in the memory database of Cloud Server, needed for positioning user more quickly by the key assignments of resource Resource.In addition, due to being backed up in outer deposit data library to search mapping table, even if Cloud Server failure causes Mapping table in memory database is lost, and can also restore to mapping table, enhance the reliability of system.
According to one embodiment of present invention, further include:According to the distribution order received, in the available resources Any user described in Chi Zhongwei distributes new resource;Original available resources of any user are backed up, and will backup Original available resources merged with the new resource, the available resources after being adjusted.
Resource allocation according to an embodiment of the present invention and searching method, Cloud Server can also be according to the variations of user demand The resource of distribution is adjusted, when the business of user increases, needs to expand searching resource to meet the needs of new, at this point, Cloud Server takes out a resource allocation to user from available resources pond.By the technical solution, even user is for money The demand in source changes, and Cloud Server can also distribute new resource to user again, realize the demand according to each cloud application Reasonable distribution resource, makes resource be fully used.
According to one embodiment of present invention, after the available resources after described be adjusted, further include:Described in recycling Original available resources;And according to the available resources adjusted, update described search mapping.
Resource allocation according to an embodiment of the present invention and searching method, Cloud Server add original resource for distributing to user It is added in newly assigned resource, and recycles the original resource of user, finally, with updating user according to available resources adjusted Mapping table between location and resource address, thus when user being made to carry out resource searching again, moreover it is possible to accurately to target resource into Row positioning.
According to one embodiment of present invention, it is described according to described search mapping obtain any resource describedly Before location, further include:It is requested according to the described search of any user received, determines any user request search Resource whether in the available resources pond;When determine the resource be the available resources pond in any resource When, allow the Cloud Server to obtain the address of any resource according to described search mapping.
Resource allocation according to an embodiment of the present invention and searching method, before for user's searching resource, Cloud Server is also The resource can be confirmed whether in available resources pond, i.e., whether user can be used the resource, if it is determined that the resource is available In resource pool, then user is allowed to obtain the address of the resource, otherwise, user is not allowed to use the resource.By the technical solution, The safety of resource allocation and search in Cloud Server can be promoted, it is ensured that each user can only search money in own right Source avoids resource from maliciously being obtained or distorted.
According to one embodiment of present invention, when searching for any resource, further include:Add in described search request Add search restrictive condition, and any resource is searched for according to described search restrictive condition.
Resource allocation according to an embodiment of the present invention and searching method, user can also add when issuing searching request Restrictive condition is searched for screen to the resource for meeting searching request, to allow user more quickly and accurately in resource Required resource is searched in pond, improves search efficiency, keeps the distribution of resource more efficient and rational.
The embodiment of the second aspect of the present invention proposes a kind of resource allocation and search system, including:Allocation unit, root Total resources pond according to Cloud Server and the distribution order received, are that any user of the Cloud Server distributes available resources Pond;Unit is established in mapping, is established and is searched for the address of any user and the address of any resource in the available resources pond Rope mapping;Address acquisition unit is searched when receiving searching request of any user to any resource according to described Rope mapping obtains the address of any resource;The data search request is sent to the address by transmission unit, with For obtaining any resource from the address.
Resource allocation and search system according to an embodiment of the present invention have searching resource in the resource pool of Cloud Server, when When user sends searching request, the ground of the resource needed for being obtained by the address and mapping relations of searching request offer Location, to allow users to rapidly search for required resource information.By the technical solution, Cloud Server can be for not Can fully be using limited resource to positioning of the resource needed for it in shared resource pond with the application request of user More enterprise customers provide cloud application service, realize the shared of enterprise's cloud searching resource, can be according to each cloud application Demand reasonable distribution resource, thus save enterprise cloud application service on expense.In addition, by total resources pond, can be used The distribution of resource pool, the multi-user data being also effectively isolated on shared resource block, improves search efficiency.
According to one embodiment of present invention, there is any resource and any resource in the available resources pond Key assignments, and further include:Storage unit, after establishing described search mapping, by described search mapping in a manner of key-value pair It is stored in the memory database of the Cloud Server;And backup units, to described in storage in the memory database Search mapping is backed up.
Resource allocation and search system according to an embodiment of the present invention, by the mapping relations of user and searching resource with key assignments Pair mode be stored in the memory database of Cloud Server, needed for positioning user more quickly by the key assignments of resource Resource.In addition, due to being backed up in outer deposit data library to search mapping table, even if Cloud Server failure causes Mapping table in memory database is lost, and can also restore to mapping table, enhance the reliability of system.
According to one embodiment of present invention, the allocation unit is also used to:According to the distribution order received, It is that any user distributes new resource in the available resources pond;And the resource allocation further includes with search system: Adjustment unit backs up original available resources of any user, and by original available resources of backup and institute It states new resource to merge, the available resources after being adjusted.
Resource allocation and search system according to an embodiment of the present invention, Cloud Server can also be according to the variations of user demand The resource of distribution is adjusted, when the business of user increases, needs to expand searching resource to meet the needs of new, at this point, Cloud Server takes out a resource allocation to user from available resources pond.By the technical solution, even user is for money The demand in source changes, and Cloud Server can also distribute new resource to user again, realize the demand according to each cloud application Reasonable distribution resource, makes resource be fully used.
According to one embodiment of present invention, further include:Recovery unit, available resources after described be adjusted it Afterwards, original available resources are recycled;And updating unit updates described search and reflects according to the available resources adjusted It penetrates.
Resource allocation and search system according to an embodiment of the present invention, Cloud Server add original resource for distributing to user It is added in newly assigned resource, and recycles the original resource of user, finally, with updating user according to available resources adjusted Mapping table between location and resource address, thus when user being made to carry out resource searching again, moreover it is possible to accurately to target resource into Row positioning.
According to one embodiment of present invention, further include:Determination unit, described according to described search mapping acquisition Before the address of any resource, is requested according to the described search of any user received, determine any use Whether the resource of family request search is in the available resources pond, and works as and determine that the resource is in the available resources pond When any resource, the Cloud Server is allowed to obtain the address of any resource according to described search mapping.
Resource allocation and search system according to an embodiment of the present invention, before for user's searching resource, Cloud Server is also The resource can be confirmed whether in available resources pond, i.e., whether user can be used the resource, if it is determined that the resource is available In resource pool, then user is allowed to obtain the address of the resource, otherwise, user is not allowed to use the resource.By the technical solution, The safety of resource allocation and search in Cloud Server can be promoted, it is ensured that each user can only search money in own right Source avoids resource from maliciously being obtained or distorted.
According to one embodiment of present invention, further include:Condition limiting unit, when searching for any resource, in institute Addition search restrictive condition in searching request is stated, and any resource is searched for according to described search restrictive condition.
Resource allocation and search system according to an embodiment of the present invention, user can also add when issuing searching request Restrictive condition is searched for screen to the resource for meeting searching request, to allow user more quickly and accurately in resource Required resource is searched in pond, improves search efficiency, keeps the distribution of resource more efficient and rational.
The embodiment of the third aspect of the present invention proposes a kind of Cloud Server, including such as any one of above-mentioned technical proposal The resource allocation and search system, therefore, the server have and any one of above-mentioned technical proposal described in resource point With technical effect identical with search system, details are not described herein.
According to the technical solution of the present invention, it can be directed to the application request of different user, to resource needed for it in shared money Positioning in the pond of source fully provides cloud application service using limited resources for more enterprise customers, can be answered according to each cloud Demand reasonable distribution resource, to save expense of the enterprise in cloud application service.
Detailed description of the invention
Fig. 1 shows the specific flow chart of resource allocation according to an embodiment of the invention and searching method;
Fig. 2 shows the flow charts according to an embodiment of the invention for carrying out resource allocation;
Fig. 3 shows the flow chart of adjustresources distribution according to an embodiment of the invention;
Fig. 4 shows the flow chart according to an embodiment of the invention for adding, modifying or delete this user data;
Fig. 5 shows the flow chart of resource searching according to an embodiment of the invention;
Fig. 6 shows the flow chart of resource searching according to another embodiment of the invention;
Fig. 7 shows the resource allocation of an embodiment according to the present invention and the block diagram of search system;
Fig. 8 shows the block diagram of the Cloud Server of an embodiment according to the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the specific flow chart of resource allocation according to an embodiment of the invention and searching method.
As shown in Figure 1, resource allocation according to an embodiment of the invention and searching method, including:
It step 102, is any user of Cloud Server according to the total resources pond of Cloud Server and the distribution order received Distribute available resources pond.
Step 104, search mapping is established for the address of any resource in the address and available resources pond of any user.
Step 106, when receiving searching request of any user to any resource, any money is obtained according to search mapping The address in source.
Step 108, data search request is sent to address, for obtaining any resource from address.
Resource allocation according to an embodiment of the present invention and searching method have searching resource in the resource pool of Cloud Server, when When user sends searching request, the ground of the resource needed for being obtained by the address and mapping relations of searching request offer Location, to allow users to rapidly search for required resource information.By the technical solution, Cloud Server can be for not Can fully be using limited resource to positioning of the resource needed for it in shared resource pond with the application request of user More enterprise customers provide cloud application service, realize the shared of enterprise's cloud searching resource, can be according to each cloud application Demand reasonable distribution resource, thus save enterprise cloud application service on expense.In addition, by total resources pond, can be used The distribution of resource pool, the multi-user data being also effectively isolated on shared resource block, improves search efficiency.
According to one embodiment of present invention, with the key assignments of any resource and any resource in available resources pond, and After step 104, further include:Search mapping is stored in the memory database of Cloud Server in a manner of key-value pair;With And the search mapping being stored in memory database is backed up.
Resource allocation according to an embodiment of the present invention and searching method, by the mapping relations of user and searching resource with key assignments Pair mode be stored in the memory database of Cloud Server, needed for positioning user more quickly by the key assignments of resource Resource.In addition, due to being backed up in outer deposit data library to search mapping table, even if Cloud Server failure causes Mapping table in memory database is lost, and can also restore to mapping table, enhance the reliability of system.
According to one embodiment of present invention, further include:According to the distribution order received, appoint in available resources pond One user distributes new resource;Original available resources of any user are backed up, and by original available resources of backup with New resource merges, the available resources after being adjusted.
Resource allocation according to an embodiment of the present invention and searching method, Cloud Server can also be according to the variations of user demand The resource of distribution is adjusted, when the business of user increases, needs to expand searching resource to meet the needs of new, at this point, Cloud Server takes out a resource allocation to user from available resources pond.By the technical solution, even user is for money The demand in source changes, and Cloud Server can also distribute new resource to user again, realize the demand according to each cloud application Reasonable distribution resource, makes resource be fully used.
According to one embodiment of present invention, further include:After the available resources after being adjusted, recycle original available Resource;And according to available resources adjusted, the mapping of more new search.
Resource allocation according to an embodiment of the present invention and searching method, Cloud Server add original resource for distributing to user It is added in newly assigned resource, and recycles the original resource of user, finally, with updating user according to available resources adjusted Mapping table between location and resource address, thus when user being made to carry out resource searching again, moreover it is possible to accurately to target resource into Row positioning.
According to one embodiment of present invention, before step 106, further include:According to searching for any user received Whether rope request determines the resource of any user request search in available resources pond;When determine resource be available resources pond in Any resource when, allow Cloud Server to obtain the address of any resource according to search mapping.
Resource allocation according to an embodiment of the present invention and searching method, before for user's searching resource, Cloud Server is also The resource can be confirmed whether in available resources pond, i.e., whether user can be used the resource, if it is determined that the resource is available In resource pool, then user is allowed to obtain the address of the resource, otherwise, user is not allowed to use the resource.By the technical solution, The safety of resource allocation and search in Cloud Server can be promoted, it is ensured that each user can only search money in own right Source avoids resource from maliciously being obtained or distorted.
According to one embodiment of present invention, step 108 further includes:The addition search restrictive condition in searching request, and Any resource is searched for according to search restrictive condition.
Resource allocation according to an embodiment of the present invention and searching method, user can also add when issuing searching request Restrictive condition is searched for screen to the resource for meeting searching request, to allow user more quickly and accurately in resource Required resource is searched in pond, improves search efficiency, keeps the distribution of resource more efficient and rational.
Fig. 2 shows the flow charts according to an embodiment of the invention for carrying out resource allocation.
As shown in Fig. 2, the process according to an embodiment of the invention for carrying out resource allocation, including:
Step 202, allowable resource is judged whether there is, when the judgment result is yes, enters step 204, when judgement is tied When fruit is no, terminate process.
Step 204, resource is distributed in conjunction with demand and currently practical loading condition.
In the technical scheme, Cloud Server can demand according to enterprise customer itself to searching resource, provide appropriate The distribution of searching resource.When carrying out resource allocation, searching resource is divided into N part of equivalent first, is safeguarded using management module The mapping table of one total resource pool, a current workable resource pool and an enterprise to its corresponding resource pond, wherein total Resource pool records the resource Key (key assignments) of all resources, and current available resource pond has recorded current assignable resource and resource Key;The mapping table of enterprise to resource has recorded the mapping of enterprise ID to allocated resource ID.
In the technical scheme, it can determine every a resource is shared by which enterprise according to the demand of user enterprise, After the corresponding relationship that enterprise and resource has been determined, the mapping relations of enterprise to searching resource are deposited in a manner of KV (key-value pair) It is placed in memory database (Redis), to be carried out to the resource of enterprise search accurate quick when enterprise initiates searching request Positioning.Meanwhile will map and be backed up in extra- deposit data library, it thus can be in the system failure easily to having lost The mapping table of mistake is restored, and the reliability of system is greatly strengthened.
Fig. 3 shows the flow chart of adjustresources distribution according to an embodiment of the invention.
As shown in figure 3, the process of adjustresources distribution according to an embodiment of the invention, including:
Step 302, judge whether resource is allocated successfully, when the judgment result is yes, enter step 304, work as judging result When being no, terminate process.
Step 304, judge whether data copy completion, when the judgment result is yes, enter step 306, work as judging result When being no, terminate process.
Step 306, original resource is recycled.
Step 308, mapping relations of the rewriting enterprise to resource.
In the technical scheme, it can be carried out dividing adjusting again for resource according to the variation of user demand, for example, certain enterprise Planning only needs 1/2 part of resource, and Cloud Server is just that it distributes 1/2 part of resource, but because of business demand, which wishes to expand Big searching resource is to meet the needs of new, at this point, Cloud Server can take out a resource allocation to this from available resources pond Enterprise then backups to original resource data in newly assigned resource, and recycles original distribution resource, finally, according to adjustment Resource afterwards, the mapping table of modification enterprise to resource, so as to complete the adjustment of resource allocation.
Fig. 4 shows the flow chart according to an embodiment of the invention for adding, modifying or delete this user data.
As shown in figure 4, the process according to an embodiment of the invention added, modify or delete this user data, packet It includes:
Step 402, locating resource block.
Step 404, increase enterprise's mark of data.
Step 406, add, modify or delete this business data in shared resource block.
Fig. 5 shows the flow chart of resource searching according to an embodiment of the invention.
As shown in figure 5, the process of resource searching according to an embodiment of the invention, including:
Step 502, check user the resource whether can be used, that is, confirm the resource whether in available resources pond, when Judging result is when being, to enter step 504, when the judgment result is no, terminates process.
Step 504, Resource orientation.
Step 506, search process.
Fig. 6 shows the flow chart of resource searching according to another embodiment of the invention.
As shown in fig. 6, the process of resource searching according to another embodiment of the invention, including:
Step 602, locating resource block.
Step 604, increase the search condition of limitation enterprise document.
Step 604, it is searched in shared resource block.
As shown in Figures 4 to 6, when user issues searching request, validity checking is carried out to searching request first, if Confirm that the resource in the available resources pond of the user, then carries out Resource orientation.
When carrying out Resource orientation, enterprise is searched first from inner server to the mapping table of searching resource, is somebody's turn to do The address of resource then sends searching request in the resource.Due to for user enterprise, the resource allocation plan of bottom Slightly be it is transparent, therefore, it is necessary to distinguish the data of the different enterprises on same resource block.Thus reach shared Avoid influencing the purpose of respective using effect while resource.Wherein, the additions and deletions of index change also similar to this process.
For example, concrete operations process is as follows so that enterprise e1 searches for contact person " Zhang San " as an example:
Step 1, e1 initiate primary search, and search condition is as follows:
Object properties:Contact person,
Name:Zhang San;
Step 2, server-side receive searching request, carry out validity checking, will if user is examined by legitimacy Request is transmitted to Resource orientation module, otherwise, terminates this and searches for and return to error message;
Step 3, resource module position the specific location where e1 searching resource (index) according to the enterprise Key of e1, and can Thinking that searching request adds restrictive condition --- the enterprise of searched object is expressed as e1, finally, final searching request is passed It is delivered in search module;
Step 4, search module according to searching request find it is qualified as a result, and return to user, if not finding It is qualified as a result, then returning to blank result;
Step 5, search terminate.
Fig. 7 shows the block diagram of resource allocation according to an embodiment of the invention Yu search system 700.
As shown in fig. 7, resource allocation according to an embodiment of the invention and search system 700, including:Allocation unit 702, it is that any user of Cloud Server distributes available resources according to the total resources pond of Cloud Server and the distribution order received Pond;Unit 704 is established in mapping, is reflected for the address foundation search of any resource in the address and available resources pond of any user It penetrates;Address acquisition unit 706 obtains according to search mapping and appoints when receiving searching request of any user to any resource The address of one resource;Data search request is sent to address by transmission unit 708, for obtaining any resource from address.
Resource allocation according to an embodiment of the present invention and search system 700 have searching resource in the resource pool of Cloud Server, When user sends searching request, the ground of the resource needed for being obtained by the address and mapping relations of searching request offer Location, to allow users to rapidly search for required resource information.By the technical solution, Cloud Server can be for not Can fully be using limited resource to positioning of the resource needed for it in shared resource pond with the application request of user More enterprise customers provide cloud application service, realize the shared of enterprise's cloud searching resource, can be according to each cloud application Demand reasonable distribution resource, thus save enterprise cloud application service on expense.In addition, by total resources pond, can be used The distribution of resource pool, the multi-user data being also effectively isolated on shared resource block, improves search efficiency.
According to one embodiment of present invention, with the key assignments of any resource and any resource in available resources pond, and Further include:Search mapping is stored in Cloud Server after establishing search mapping by storage unit 710 in a manner of key-value pair In memory database;And backup units 712, the search mapping being stored in memory database is backed up.
Resource allocation according to an embodiment of the present invention and search system 700, by the mapping relations of user and searching resource with The mode of key-value pair is stored in the memory database of Cloud Server, positions user more quickly by the key assignments of resource Required resource.In addition, due to being backed up in outer deposit data library to search mapping table, even if Cloud Server breaks down Cause the mapping table in memory database to be lost, mapping table can also be restored, enhances the reliability of system.
According to one embodiment of present invention, allocation unit 702 is also used to:According to the distribution order received, available New resource is distributed in resource pool for any user;And resource allocation further includes with search system 700:Adjustment unit 714, will Original available resources of any user are backed up, and original available resources of backup are merged with new resource, are obtained Available resources adjusted.
Resource allocation according to an embodiment of the present invention and search system 700, Cloud Server can also be according to user demand Variation is adjusted the resource of distribution, when the business of user increases, needs to expand searching resource to meet the needs of new, this When, Cloud Server takes out a resource allocation to user from available resources pond.By the technical solution, even user for The demand of resource changes, and Cloud Server can also distribute new resource to user again, realize the need according to each cloud application Reasonable distribution resource is sought, resource is made to be fully used.
According to one embodiment of present invention, further include:Recovery unit 716, after the available resources after being adjusted, Recycle original available resources;And updating unit 718, according to available resources adjusted, the mapping of more new search.
Resource allocation according to an embodiment of the present invention and search system 700, Cloud Server is by original money for distributing to user Source is added in newly assigned resource, and recycles the original resource of user, uses finally, being updated according to available resources adjusted Mapping table between family address and resource address, thus when user being made to carry out resource searching again, moreover it is possible to accurately target be provided Source is positioned.
According to one embodiment of present invention, further include:Determination unit 720 is obtaining any resource according to search mapping Address before, according to the searching request of any user received, determine the resource of any user request search whether can With in resource pool, and when determining resource is any resource in available resources pond, Cloud Server is allowed to be mapped according to search Obtain the address of any resource.
Resource allocation according to an embodiment of the present invention and search system 700, before for user's searching resource, Cloud Server The resource can be also confirmed whether in available resources pond, i.e., whether user can be used the resource, if it is determined that the resource is can With in resource pool, then user is allowed to obtain the address of the resource, otherwise, user is not allowed to use the resource.Pass through the technical side Case can promote the safety of resource allocation and search in Cloud Server, it is ensured that each user can only search in own right Resource avoids resource from maliciously being obtained or distorted.
According to one embodiment of present invention, further include:Condition limiting unit 722 is being searched for when searching for any resource Addition search restrictive condition in request, and any resource is searched for according to search restrictive condition.
Resource allocation according to an embodiment of the present invention and search system 700, user can also add when issuing searching request Search restrictive condition is added to screen the resource for meeting searching request, so that user be allow more quickly and accurately to provide Required resource is searched in the pond of source, improves search efficiency, keeps the distribution of resource more efficient and rational.
Fig. 8 shows the block diagram of the Cloud Server of an embodiment according to the present invention.
As shown in figure 8, any in the Cloud Server 800 of an embodiment according to the present invention, including such as above-mentioned technical proposal Resource allocation and search system 700 described in, therefore, which has and any one of above-mentioned technical proposal institute The resource allocation stated technical effect identical with search system 700, details are not described herein.
Cloud Server of the present invention is described below with reference to a concrete scene.
Under identical hardware environment, scheme 1 is that single resource list enterprise in the prior art monopolizes scheme, and scheme 2 is this The multiple enterprises shared resource scheme of invention, as shown in table 1, it can be seen that using the huge advantage of this programme:
System schema The enterprise's number really supported Maximum supports enterprise's number
Scheme 1 Less than 3,000 Less than 3,000
Scheme 2 More than 20,000 More than 200,000
Table 1
Comparative experiments condition:The search service cluster of the identical server composition of 3 configurations, the configuration of every server is such as Under:
Hardware environment is as follows:
Processor:E5-4600
Memory:32G
Hard disk:4T
Software environment is as follows:
openJDK1.7.0+Solr-4.5.1
It in the technical scheme, can be for up to 20000 enterprises at present using 3 Cloud Servers in cloud platform A certain cloud application provides efficient search service.And if mentioned using way in the prior art for so a large amount of enterprise For search service, then nearly 80 servers are at least needed.Exactly because so few resource can support so many enterprise to search Rope service greatly reduces the expense of individual enterprise compared to individual search server oneself is set up.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, according to the technical solution of the present invention, can be directed to The application request of different user is fully more using limited resources to positioning of the resource needed for it in shared resource pond Enterprise customer provides cloud application service, can be existed according to the demand reasonable distribution resource of each cloud application to save enterprise Expense in cloud application service.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (9)

1. a kind of resource allocation and searching method, which is characterized in that including:
It is that any user distribution of the Cloud Server is available according to the total resources pond of Cloud Server and the distribution order received Resource pool;
Search mapping is established for the address of any resource in the address and the available resources pond of any user;
When receiving searching request of any user to any resource, described appoint, is obtained according to described search mapping The address of one resource;
Described search request is sent to the address, for obtaining any resource from the address;
It is that any user distributes new resource in the available resources pond according to the distribution order received;
Original available resources of any user are backed up, and by original available resources of backup and described new Resource merges, the available resources after being adjusted;
After the available resources after described be adjusted, further include:
Recycle original available resources;And
According to the available resources adjusted, described search mapping is updated.
2. resource allocation according to claim 1 and searching method, which is characterized in that have institute in the available resources pond The key assignments of any resource and any resource is stated, and
After establishing described search mapping, further include:
Described search mapping is stored in the memory database of the Cloud Server in a manner of key-value pair;And
The described search mapping of storage in the memory database is backed up.
3. resource allocation according to claim 1 or 2 and searching method, which is characterized in that described according to described search Before mapping obtains the address of any resource, further include:
It is requested according to the described search of any user received, determines whether any user requests the resource searched for In the available resources pond;
When determining the resource is any resource in the available resources pond, allow the Cloud Server according to Search mapping obtains the address of any resource.
4. resource allocation according to claim 3 and searching method, which is characterized in that when searching for any resource, Further include:
The addition search restrictive condition in described search request, and any resource is searched for according to described search restrictive condition.
5. a kind of resource allocation and search system, which is characterized in that including:
Allocation unit is any use of the Cloud Server according to the total resources pond of Cloud Server and the distribution order received Available resources pond is distributed at family;
Unit is established in mapping, is established and is searched for the address of any user and the address of any resource in the available resources pond Rope mapping;
Address acquisition unit, when receiving searching request of any user to any resource, according to described search Mapping obtains the address of any resource;
Described search request is sent to the address, for obtaining any resource from the address by transmission unit;
The allocation unit is also used to:
It is that any user distributes new resource in the available resources pond according to the distribution order received;With And
The resource allocation further includes with search system:
Adjustment unit backs up original available resources of any user, and by original available resources of backup It is merged with the new resource, the available resources after being adjusted;
Recovery unit recycles original available resources after the available resources after described be adjusted;And
Updating unit updates described search mapping according to the available resources adjusted.
6. resource allocation according to claim 5 and search system, which is characterized in that have institute in the available resources pond The key assignments of any resource and any resource is stated, and
Further include:
Described search mapping is stored in a manner of key-value pair the cloud and taken by storage unit after establishing described search mapping It is engaged in the memory database of device;And
Backup units back up the described search mapping of storage in the memory database.
7. resource allocation according to claim 5 or 6 and search system, which is characterized in that further include:
Determination unit, it is described the address of any resource is obtained according to described search mapping before, according to receiving Any user described search request, determine the resource of any user request search whether in the available resources Chi Zhong, and when determining the resource is any resource in the available resources pond, allow the Cloud Server root The address of any resource is obtained according to described search mapping.
8. resource allocation according to claim 7 and search system, which is characterized in that further include:
Condition limiting unit, when searching for any resource, the addition search restrictive condition in described search request, and according to Described search restrictive condition searches for any resource.
9. a kind of Cloud Server, which is characterized in that including the resource allocation and search as described in any one of claim 5 to 8 System.
CN201410746658.7A 2014-12-08 2014-12-08 Resource allocation and searching method, resource allocation and search system and Cloud Server Active CN104461736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410746658.7A CN104461736B (en) 2014-12-08 2014-12-08 Resource allocation and searching method, resource allocation and search system and Cloud Server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410746658.7A CN104461736B (en) 2014-12-08 2014-12-08 Resource allocation and searching method, resource allocation and search system and Cloud Server

Publications (2)

Publication Number Publication Date
CN104461736A CN104461736A (en) 2015-03-25
CN104461736B true CN104461736B (en) 2018-11-30

Family

ID=52907834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410746658.7A Active CN104461736B (en) 2014-12-08 2014-12-08 Resource allocation and searching method, resource allocation and search system and Cloud Server

Country Status (1)

Country Link
CN (1) CN104461736B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294382A (en) * 2015-05-18 2017-01-04 北大方正集团有限公司 Resource share method, resource shared device and terminal
CN106375132B (en) * 2016-11-01 2021-04-13 Tcl科技集团股份有限公司 Cloud server system and management method thereof
CN106960249B (en) * 2017-02-10 2021-07-23 上海蔚来汽车有限公司 Intelligent resource allocation method and system in energy supplementing and ordering process
CN108388476A (en) * 2018-03-01 2018-08-10 郑州云海信息技术有限公司 A kind of server calculating acceleration resource pool method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076009A (en) * 2006-06-21 2007-11-21 腾讯科技(深圳)有限公司 Method and system for allocating virtual resources
US8255909B2 (en) * 2009-01-28 2012-08-28 International Business Machines Corporation Synchronizing access to resources in a hybrid computing environment
CN102103522A (en) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 Resource management method and system
CN102594852B (en) * 2011-01-04 2016-03-30 中国移动通信集团公司 Data access method, node and system
CN102164186B (en) * 2011-05-31 2013-10-30 互动在线(北京)科技有限公司 Method and system for realizing cloud search service
US20140278924A1 (en) * 2013-03-13 2014-09-18 Wal-Mart Stores, Inc. Selectively altering requests based on comparison of potential value of requests

Also Published As

Publication number Publication date
CN104461736A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN108280365B (en) Data access authority management method, device, terminal device and storage medium
US20130110873A1 (en) Method and system for data storage and management
CN103365929B (en) The management method of a kind of data base connection and system
US9021461B2 (en) Method and system for minimizing or eliminating downtime when updating a website
CN106909451A (en) A kind of distributed task dispatching system and method
US8578460B2 (en) Automating cloud service reconnections
CN104461736B (en) Resource allocation and searching method, resource allocation and search system and Cloud Server
US10949413B2 (en) Method and system for supporting data consistency on an active standby database after DML redirection to a primary database
CN108388604A (en) User right data administrator, method and computer readable storage medium
CN106326226B (en) The method and system of log-on data library service in a kind of public cloud
CN102253869A (en) Scaleable fault-tolerant metadata service
CN105100050A (en) User permission management method and system
CN109150964B (en) Migratable data management method and service migration method
CN104125294A (en) Method and system for big data safety management
CN109857806B (en) Synchronous verification method and device for database table
CN106325909A (en) Method and system for updating multiple images in private cloud system
US10482076B2 (en) Single level, multi-dimension, hash-based table partitioning
CN102968482A (en) Data query method and data query device
CN103207835A (en) Mass data storage method through self-adaptive Range partitions
CN103324732A (en) MySQL database horizontal-sharding method, and MySQL connection establishment method and device
US20080208797A1 (en) Automated record attribute value merging from multiple directory servers
CN107276914B (en) Self-service resource allocation scheduling method based on CMDB
CN108874415A (en) Upgrading recommender system in enterprise's cloud system migration
CN114070847B (en) Method, device, equipment and storage medium for limiting current of server
CN104320457A (en) Network invoice system based on distributed management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant