CN104461736A - Resource allocation and search method and system and cloud server - Google Patents
Resource allocation and search method and system and cloud server Download PDFInfo
- Publication number
- CN104461736A CN104461736A CN201410746658.7A CN201410746658A CN104461736A CN 104461736 A CN104461736 A CN 104461736A CN 201410746658 A CN201410746658 A CN 201410746658A CN 104461736 A CN104461736 A CN 104461736A
- Authority
- CN
- China
- Prior art keywords
- resource
- search
- available resources
- arbitrary
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Computer And Data Communications (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a resource allocation and search method and system and a cloud server. The method includes according to a main resource pool of the cloud server and a received allocation command, allocating a usable resource pool for an operation user of the cloud server; establishing research mapping for an optional resource address of the usable resource pool and the address for the optional user; when receiving the research request on an optional resource from the optional user, and acquiring the address of the optional resource according to the research mapping; transmitting a data search request to the address, and acquiring the optional resource from the address. By the aid of the technical scheme, according to the application requests of different users, the required resource can be positioned in the shared resource pool, the limited resource can be utilized completely to provide the cloud application service for more enterprise users, the resource can be allocated reasonably according to the requirements of the cloud application, and the cost of the enterprises for the cloud application service is saved.
Description
Technical field
The present invention relates to cloud applied technical field, in particular to a kind of Resourse Distribute and searching method, a kind of Resourse Distribute and search system and a kind of Cloud Server.
Background technology
At present, cloud application can make enterprise obtain more cheap search service under unified framework, and search system need not be built voluntarily, and, for search service end, rational resource sharing means the more reasonably utilization of resources, under limited resources supplIes, search service end can provide search service for more cloud application, thus makes search service end can play larger value.
Due to all many-sided factors such as equipment and maintenance, some non-core services of oneself have been put into the enterprising row relax of cloud that public cloud service provider provides by increasing medium-sized and small enterprises selection, wherein, the cloud that public cloud service provider provides comprises calculating cloud, stores cloud etc.For medium-sized and small enterprises, the expense of maintenance service aspect can be made like this to reduce many, but, even if like this, for medium-sized and small enterprises, the expense of maintenance service can be still a no small spending, if cloud application service can not be made full use of, just mean the waste of spending.And for cloud application service, unified platform search service can economize on resources effectively.
Therefore a kind of new technical scheme is needed, the demand reasonable distribution resource can applied according to each cloud, thus the expense that reduction enterprise invests in cloud application service.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of new technical scheme, the demand reasonable distribution resource can applied according to each cloud, thus the expense that reduction enterprise invests in cloud application service.
In view of this, the embodiment of a first aspect of the present invention proposes a kind of Resourse Distribute and searching method, comprising: according to total resources pond and the assignment commands received of Cloud Server, for arbitrary user of described Cloud Server distributes available resources pond; Address for the arbitrary resource in the address of described arbitrary user and described available resources pond is set up search and is mapped; When receiving the searching request of described arbitrary user to described arbitrary resource, map according to described search the described address obtaining described arbitrary resource; Described data search request is sent to described address, for from arbitrary resource described in described address acquisition.
According to Resourse Distribute and the searching method of the embodiment of the present invention, searching resource is had in the resource pool of Cloud Server, when user sends searching request, the address of the resource needed for the address that can be provided by searching request and mapping relations are obtained, thus enable user search required resource information rapidly.By this technical scheme, Cloud Server can for the application request of different user, to the location of its resource requirement in shared resource pond, limited resource can be utilized fully to provide cloud application service for more enterprise customer, achieve sharing of enterprise's high in the clouds searching resource, the demand reasonable distribution resource can applied according to each cloud, thus save the expense of enterprise in cloud application service.In addition, by the distribution in total resources pond, available resources pond, also effectively isolate the multi-user data on shared resource block, improved search efficiency.
According to one embodiment of present invention, there is in described available resources pond the key assignments of described arbitrary resource and described arbitrary resource, and after setting up described search mapping, also comprise: described search is mapped and is stored in the memory database of described Cloud Server in the mode of key-value pair; And the described search mapping be stored in described memory database is backed up.
According to Resourse Distribute and the searching method of the embodiment of the present invention, the mapping relations of user and searching resource are left in the memory database of Cloud Server in the mode of key-value pair, make user can locate required resource more quickly by the key assignments of resource.In addition, owing to backing up search mapping table in deposit data storehouse outside, cause the mapping table in memory database to be lost even if Cloud Server breaks down, also can recover mapping table, enhance the reliability of system.
According to one embodiment of present invention, also comprise: according to the described assignment commands received, in described available resources pond, distribute new resource for described arbitrary user; Original available resources of described arbitrary user are backed up, and described original available resources of backup and described new resource is merged, the available resources after being adjusted.
According to Resourse Distribute and the searching method of the embodiment of the present invention, Cloud Server also can adjust the resource of distributing according to the change of user's request, when the business of user increases, need to expand searching resource to meet new demand, now, Cloud Server takes out a Resourse Distribute to user from available resources pond.By this technical scheme, even user changes for the demand of resource, Cloud Server also can distribute new resource to user again, achieves the demand reasonable distribution resource applied according to each cloud, resource is fully used.
According to one embodiment of present invention, after the available resources after described being adjusted, also comprise: reclaim described original available resources; And according to the described available resources after adjustment, upgrade described search and map.
According to Resourse Distribute and the searching method of the embodiment of the present invention, the resource of original user of distributing to is added in newly assigned resource by Cloud Server, and reclaim the original resource of user, finally, the mapping table between station address and resource address is upgraded according to the available resources after adjustment, thus when making user again carry out resource searching, can also position target resource exactly.
According to one embodiment of present invention, before the described described address according to the described arbitrary resource of described search mapping acquisition, also comprise: according to the described searching request of the described arbitrary user received, determine that resource that described arbitrary user asks to search for is whether in described available resources pond; When determining that described resource is the described arbitrary resource in described available resources pond, described Cloud Server is allowed to map according to described search the described address obtaining described arbitrary resource.
According to Resourse Distribute and the searching method of the embodiment of the present invention, before for user search resource, Cloud Server also can confirm this resource whether in available resources pond, namely whether user can use this resource, if determine that this resource is in available resources pond, user is then allowed to obtain the address of this resource, otherwise, do not allow user to use this resource.By this technical scheme, the security of Resourse Distribute and search in Cloud Server can be promoted, guarantee that each user can only search resource in its own right, avoid resource maliciously to be obtained or distort.
According to one embodiment of present invention, when searching for described arbitrary resource, also comprise: in described searching request, add search restrictive condition, and according to the described arbitrary resource of described search restrictive condition search.
According to Resourse Distribute and the searching method of the embodiment of the present invention, user is when sending searching request, search restrictive condition can also be added screen the resource meeting searching request, thus make user can search required resource more quickly and accurately in resource pool, improve search efficiency, make the distribution of resource more efficient and rational.
The embodiment of a second aspect of the present invention proposes a kind of Resourse Distribute and search system, comprising: allocation units, according to total resources pond and the assignment commands received of Cloud Server, for arbitrary user of described Cloud Server distributes available resources pond; Unit is set up in mapping, and the address for the arbitrary resource in the address of described arbitrary user and described available resources pond is set up search and mapped; Address acquisition unit, when receiving the searching request of described arbitrary user to described arbitrary resource, maps according to described search the described address obtaining described arbitrary resource; Transmitting element, is sent to described address by described data search request, for from arbitrary resource described in described address acquisition.
According to Resourse Distribute and the search system of the embodiment of the present invention, searching resource is had in the resource pool of Cloud Server, when user sends searching request, the address of the resource needed for the address that can be provided by searching request and mapping relations are obtained, thus enable user search required resource information rapidly.By this technical scheme, Cloud Server can for the application request of different user, to the location of its resource requirement in shared resource pond, limited resource can be utilized fully to provide cloud application service for more enterprise customer, achieve sharing of enterprise's high in the clouds searching resource, the demand reasonable distribution resource can applied according to each cloud, thus save the expense of enterprise in cloud application service.In addition, by the distribution in total resources pond, available resources pond, also effectively isolate the multi-user data on shared resource block, improved search efficiency.
According to one embodiment of present invention, there is in described available resources pond the key assignments of described arbitrary resource and described arbitrary resource, and also comprise: storage unit, after setting up described search mapping, described search is mapped and is stored in the memory database of described Cloud Server in the mode of key-value pair; And backup units, the described search mapping be stored in described memory database is backed up.
According to Resourse Distribute and the search system of the embodiment of the present invention, the mapping relations of user and searching resource are left in the memory database of Cloud Server in the mode of key-value pair, make user can locate required resource more quickly by the key assignments of resource.In addition, owing to backing up search mapping table in deposit data storehouse outside, cause the mapping table in memory database to be lost even if Cloud Server breaks down, also can recover mapping table, enhance the reliability of system.
According to one embodiment of present invention, described allocation units also for: according to the described assignment commands received, in described available resources pond, distribute new resource for described arbitrary user; And described Resourse Distribute and search system also comprise: adjustment unit, original available resources of described arbitrary user are backed up, and described original available resources of backup and described new resource are merged, the available resources after being adjusted.
According to Resourse Distribute and the search system of the embodiment of the present invention, Cloud Server also can adjust the resource of distributing according to the change of user's request, when the business of user increases, need to expand searching resource to meet new demand, now, Cloud Server takes out a Resourse Distribute to user from available resources pond.By this technical scheme, even user changes for the demand of resource, Cloud Server also can distribute new resource to user again, achieves the demand reasonable distribution resource applied according to each cloud, resource is fully used.
According to one embodiment of present invention, also comprise: recovery unit, after the available resources after described being adjusted, reclaim described original available resources; And updating block, according to the described available resources after adjustment, upgrade described search and map.
According to Resourse Distribute and the search system of the embodiment of the present invention, the resource of original user of distributing to is added in newly assigned resource by Cloud Server, and reclaim the original resource of user, finally, the mapping table between station address and resource address is upgraded according to the available resources after adjustment, thus when making user again carry out resource searching, can also position target resource exactly.
According to one embodiment of present invention, also comprise: determining unit, before the described described address according to the described arbitrary resource of described search mapping acquisition, according to the described searching request of the described arbitrary user received, determine that resource that described arbitrary user asks to search for is whether in described available resources pond, and when determining that described resource is the described arbitrary resource in described available resources pond, allow described Cloud Server to map according to described search the described address obtaining described arbitrary resource.
According to Resourse Distribute and the search system of the embodiment of the present invention, before for user search resource, Cloud Server also can confirm this resource whether in available resources pond, namely whether user can use this resource, if determine that this resource is in available resources pond, user is then allowed to obtain the address of this resource, otherwise, do not allow user to use this resource.By this technical scheme, the security of Resourse Distribute and search in Cloud Server can be promoted, guarantee that each user can only search resource in its own right, avoid resource maliciously to be obtained or distort.
According to one embodiment of present invention, also comprising: condition limiting unit, when searching for described arbitrary resource, in described searching request, adding search restrictive condition, and according to the described arbitrary resource of described search restrictive condition search.
According to Resourse Distribute and the search system of the embodiment of the present invention, user is when sending searching request, search restrictive condition can also be added screen the resource meeting searching request, thus make user can search required resource more quickly and accurately in resource pool, improve search efficiency, make the distribution of resource more efficient and rational.
The embodiment of a third aspect of the present invention proposes a kind of Cloud Server, comprise the Resourse Distribute according to any one of technique scheme and search system, therefore, this server has the technique effect identical with search system with the Resourse Distribute according to any one of technique scheme, does not repeat them here.
By technical scheme of the present invention, can for the application request of different user, to the location of its resource requirement in shared resource pond, limited resources are utilized to provide cloud application service for more multiple enterprises user fully, the demand reasonable distribution resource can applied according to each cloud, thus save the expense of enterprise in cloud application service.
Accompanying drawing explanation
Fig. 1 shows the particular flow sheet of Resourse Distribute according to an embodiment of the invention and searching method;
Fig. 2 shows the process flow diagram carrying out Resourse Distribute according to an embodiment of the invention;
Fig. 3 shows the process flow diagram that adjustresources according to an embodiment of the invention distributes;
Fig. 4 shows interpolation according to an embodiment of the invention, amendment or deletes the process flow diagram of this user data;
Fig. 5 shows the process flow diagram of resource searching according to an embodiment of the invention;
Fig. 6 shows the process flow diagram of resource searching according to another embodiment of the invention;
Fig. 7 shows the block diagram of Resourse Distribute according to one embodiment of the invention and search system;
Fig. 8 shows the block diagram of the Cloud Server according to one embodiment of the invention.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Fig. 1 shows the particular flow sheet of Resourse Distribute according to an embodiment of the invention and searching method.
As shown in Figure 1, Resourse Distribute according to an embodiment of the invention and searching method, comprising:
Step 102, according to total resources pond and the assignment commands received of Cloud Server, for arbitrary user of Cloud Server distributes available resources pond.
Step 104, the address for the arbitrary resource in the address of arbitrary user and available resources pond is set up search and is mapped.
Step 106, when receiving the searching request of arbitrary user to arbitrary resource, maps the address obtaining arbitrary resource according to search.
Step 108, is sent to address by data search request, for from the arbitrary resource of address acquisition.
According to Resourse Distribute and the searching method of the embodiment of the present invention, searching resource is had in the resource pool of Cloud Server, when user sends searching request, the address of the resource needed for the address that can be provided by searching request and mapping relations are obtained, thus enable user search required resource information rapidly.By this technical scheme, Cloud Server can for the application request of different user, to the location of its resource requirement in shared resource pond, limited resource can be utilized fully to provide cloud application service for more enterprise customer, achieve sharing of enterprise's high in the clouds searching resource, the demand reasonable distribution resource can applied according to each cloud, thus save the expense of enterprise in cloud application service.In addition, by the distribution in total resources pond, available resources pond, also effectively isolate the multi-user data on shared resource block, improved search efficiency.
According to one embodiment of present invention, there is in available resources pond the key assignments of arbitrary resource and arbitrary resource, and after step 104, also comprise: search is mapped and is stored in the memory database of Cloud Server in the mode of key-value pair; And the search mapping be stored in memory database is backed up.
According to Resourse Distribute and the searching method of the embodiment of the present invention, the mapping relations of user and searching resource are left in the memory database of Cloud Server in the mode of key-value pair, make user can locate required resource more quickly by the key assignments of resource.In addition, owing to backing up search mapping table in deposit data storehouse outside, cause the mapping table in memory database to be lost even if Cloud Server breaks down, also can recover mapping table, enhance the reliability of system.
According to one embodiment of present invention, also comprise: according to the assignment commands received, in available resources pond, distribute new resource for arbitrary user; Original available resources of arbitrary user are backed up, and original available resources of backup and new resource is merged, the available resources after being adjusted.
According to Resourse Distribute and the searching method of the embodiment of the present invention, Cloud Server also can adjust the resource of distributing according to the change of user's request, when the business of user increases, need to expand searching resource to meet new demand, now, Cloud Server takes out a Resourse Distribute to user from available resources pond.By this technical scheme, even user changes for the demand of resource, Cloud Server also can distribute new resource to user again, achieves the demand reasonable distribution resource applied according to each cloud, resource is fully used.
According to one embodiment of present invention, also comprise: after the available resources after being adjusted, reclaim original available resources; And according to the available resources after adjustment, more new search maps.
According to Resourse Distribute and the searching method of the embodiment of the present invention, the resource of original user of distributing to is added in newly assigned resource by Cloud Server, and reclaim the original resource of user, finally, the mapping table between station address and resource address is upgraded according to the available resources after adjustment, thus when making user again carry out resource searching, can also position target resource exactly.
According to one embodiment of present invention, before step 106, also comprise: according to the searching request of the arbitrary user received, determine that resource that arbitrary user asks to search for is whether in available resources pond; When determining that resource is the arbitrary resource in available resources pond, Cloud Server is allowed to map the address obtaining arbitrary resource according to search.
According to Resourse Distribute and the searching method of the embodiment of the present invention, before for user search resource, Cloud Server also can confirm this resource whether in available resources pond, namely whether user can use this resource, if determine that this resource is in available resources pond, user is then allowed to obtain the address of this resource, otherwise, do not allow user to use this resource.By this technical scheme, the security of Resourse Distribute and search in Cloud Server can be promoted, guarantee that each user can only search resource in its own right, avoid resource maliciously to be obtained or distort.
According to one embodiment of present invention, step 108 also comprises: in searching request, add search restrictive condition, and searches for arbitrary resource according to search restrictive condition.
According to Resourse Distribute and the searching method of the embodiment of the present invention, user is when sending searching request, search restrictive condition can also be added screen the resource meeting searching request, thus make user can search required resource more quickly and accurately in resource pool, improve search efficiency, make the distribution of resource more efficient and rational.
Fig. 2 shows the process flow diagram carrying out Resourse Distribute according to an embodiment of the invention.
As shown in Figure 2, flow process of carrying out Resourse Distribute according to an embodiment of the invention, comprising:
Step 202, judges whether to there is allowable resource, when judged result is for being, enters step 204, when judged result is no, terminates process.
Step 204, in conjunction with demand and current actual loading situation Resources allocation.
In this technical scheme, Cloud Server according to the demand of enterprise customer self to searching resource, can provide the distribution of suitable searching resource.When carrying out Resourse Distribute, first searching resource is divided into N part of equivalent, use management module safeguards a total resource pool, a current spendable resource pool and enterprise mapping table to its corresponding resource pool, wherein, the resource Key (key assignments) of all resources is recorded in total resources pond, and current available resource pond have recorded current assignable resource and resource Key; Enterprise have recorded the mapping of an enterprise ID to the resource ID distributed to the mapping table of resource.
In this technical scheme, can determine every a resource by which enterprise is shared according to the demand of user enterprise, after the corresponding relation determining enterprise and resource, enterprise is left in memory database (Redis) to the mapping relations of searching resource in the mode of KV (key-value pair), when enterprise initiates searching request, to carry out accurate quick position to the resource of enterprise search., back up in mapping table outside deposit data storehouse meanwhile, so just can recover the mapping table lost easily when the system failure, greatly strengthen the reliability of system.
Fig. 3 shows the process flow diagram that adjustresources according to an embodiment of the invention distributes.
As shown in Figure 3, the flow process that adjustresources according to an embodiment of the invention distributes, comprising:
Step 302, judging whether resource is allocated successfully, when judged result is for being, entering step 304, when judged result is no, terminates process.
Step 304, judging whether data have copied, when judged result is for being, entering step 306, when judged result is no, terminates process.
Step 306, reclaims original resource.
Step 308, rewrites the mapping relations of enterprise to resource.
In this technical scheme, can carry out dividing adjusting again of resource according to the change of user's request, such as, certain corporate planning only needs 1/2 part of resource, Cloud Server is just for it distributes 1/2 part of resource, but because business demand, this enterprise wishes expand searching resource to meet new demand, now, Cloud Server can take out a Resourse Distribute to this enterprise from available resources pond, then, original resource data is backuped in newly assigned resource, and reclaim original Resources allocation, finally, according to the resource after adjustment, amendment enterprise is to the mapping table of resource, thus complete the adjustment of Resourse Distribute.
Fig. 4 shows interpolation according to an embodiment of the invention, amendment or deletes the process flow diagram of this user data.
As shown in Figure 4, interpolation according to an embodiment of the invention, amendment or delete the flow process of this user data, comprising:
Step 402, locating resource block.
Step 404, increases the corporate identify of data.
Step 406, adds, revises or delete this business data in shared resource block.
Fig. 5 shows the process flow diagram of resource searching according to an embodiment of the invention.
As shown in Figure 5, the flow process of resource searching according to an embodiment of the invention, comprising:
Step 502, checks whether user can use this resource, namely confirming this resource whether in available resources pond, when judged result is for being, entering step 504, when judged result is no, terminates process.
Step 504, Resource orientation.
Step 506, search process.
Fig. 6 shows the process flow diagram of resource searching according to another embodiment of the invention.
As shown in Figure 6, the flow process of resource searching according to another embodiment of the invention, comprising:
Step 602, locating resource block.
Step 604, increases the search condition of restriction enterprise document.
Step 604, searches in shared resource block.
As shown in Figures 4 to 6, when user sends searching request, first validity checking is carried out to searching request, if confirm that this resource is in the available resources pond of this user, then carry out Resource orientation.
When carrying out Resource orientation, from inner server, first searching the mapping table of enterprise to searching resource, obtain the address of this resource, then searching request being sent in this resource.Due to for user enterprise, the resource allocation policy of bottom is transparent, therefore, needs the data of the different enterprises on same Resource Block to distinguish.While shared resource, avoid affecting the object of respective result of use like this with regard to reaching.Wherein, the additions and deletions of index change also this flow process similar.
Such as, for enterprise e1 searching for contact persons " Zhang San ", concrete operations flow process is as follows:
Step one, e1 initiates once to search for, and search condition is as follows:
Object properties: contact person,
Name: Zhang San;
Step 2, service end receives searching request, carries out validity checking, if user is examined by legitimacy, then by request forwarding to Resource orientation module, otherwise, terminate this and search for and return error message;
Step 3, resource module locates the particular location at e1 searching resource (index) place according to the enterprise Key of e1, and can for searching request add restrictive condition---the enterprise of searched object is expressed as e1, finally, final searching request is delivered in search module;
Step 4, search module finds qualified result according to searching request, and returns to user, if do not find qualified result, then returns blank result;
Step 5, search terminates.
Fig. 7 shows the block diagram of Resourse Distribute according to an embodiment of the invention and search system 700.
As shown in Figure 7, Resourse Distribute according to an embodiment of the invention and search system 700, comprising: allocation units 702, according to total resources pond and the assignment commands received of Cloud Server, for arbitrary user of Cloud Server distributes available resources pond; Unit 704 is set up in mapping, and the address for the arbitrary resource in the address of arbitrary user and available resources pond is set up search and mapped; Address acquisition unit 706, when receiving the searching request of arbitrary user to arbitrary resource, maps the address obtaining arbitrary resource according to search; Transmitting element 708, is sent to address by data search request, for from the arbitrary resource of address acquisition.
According to Resourse Distribute and the search system 700 of the embodiment of the present invention, searching resource is had in the resource pool of Cloud Server, when user sends searching request, the address of the resource needed for the address that can be provided by searching request and mapping relations are obtained, thus enable user search required resource information rapidly.By this technical scheme, Cloud Server can for the application request of different user, to the location of its resource requirement in shared resource pond, limited resource can be utilized fully to provide cloud application service for more enterprise customer, achieve sharing of enterprise's high in the clouds searching resource, the demand reasonable distribution resource can applied according to each cloud, thus save the expense of enterprise in cloud application service.In addition, by the distribution in total resources pond, available resources pond, also effectively isolate the multi-user data on shared resource block, improved search efficiency.
According to one embodiment of present invention, there is in available resources pond the key assignments of arbitrary resource and arbitrary resource, and also comprise: storage unit 710, after foundation search maps, search is mapped and is stored in the memory database of Cloud Server in the mode of key-value pair; And backup units 712, the search be stored in memory database is mapped and backs up.
According to Resourse Distribute and the search system 700 of the embodiment of the present invention, the mapping relations of user and searching resource are left in the memory database of Cloud Server in the mode of key-value pair, make user can locate required resource more quickly by the key assignments of resource.In addition, owing to backing up search mapping table in deposit data storehouse outside, cause the mapping table in memory database to be lost even if Cloud Server breaks down, also can recover mapping table, enhance the reliability of system.
According to one embodiment of present invention, allocation units 702 also for: according to the assignment commands received, in available resources pond, distribute new resource for arbitrary user; And Resourse Distribute and search system 700 also comprise: adjustment unit 714, original available resources of arbitrary user are backed up, and original available resources of backup and new resource are merged, the available resources after being adjusted.
According to Resourse Distribute and the search system 700 of the embodiment of the present invention, Cloud Server also can adjust the resource of distributing according to the change of user's request, when the business of user increases, need to expand searching resource to meet new demand, now, Cloud Server takes out a Resourse Distribute to user from available resources pond.By this technical scheme, even user changes for the demand of resource, Cloud Server also can distribute new resource to user again, achieves the demand reasonable distribution resource applied according to each cloud, resource is fully used.
According to one embodiment of present invention, also comprise: recovery unit 716, after the available resources after being adjusted, reclaim original available resources; And updating block 718, according to the available resources after adjustment, more new search maps.
According to Resourse Distribute and the search system 700 of the embodiment of the present invention, the resource of original user of distributing to is added in newly assigned resource by Cloud Server, and reclaim the original resource of user, finally, the mapping table between station address and resource address is upgraded according to the available resources after adjustment, thus when making user again carry out resource searching, can also position target resource exactly.
According to one embodiment of present invention, also comprise: determining unit 720, before map the address obtaining arbitrary resource according to search, according to the searching request of the arbitrary user received, determine that resource that arbitrary user asks to search for is whether in available resources pond, and when determining that resource is the arbitrary resource in available resources pond, allow Cloud Server to map the address obtaining arbitrary resource according to search.
According to Resourse Distribute and the search system 700 of the embodiment of the present invention, before for user search resource, Cloud Server also can confirm this resource whether in available resources pond, namely whether user can use this resource, if determine that this resource is in available resources pond, user is then allowed to obtain the address of this resource, otherwise, do not allow user to use this resource.By this technical scheme, the security of Resourse Distribute and search in Cloud Server can be promoted, guarantee that each user can only search resource in its own right, avoid resource maliciously to be obtained or distort.
According to one embodiment of present invention, also comprise: condition limiting unit 722, when searching for arbitrary resource, in searching request, add search restrictive condition, and search for arbitrary resource according to search restrictive condition.
According to Resourse Distribute and the search system 700 of the embodiment of the present invention, user is when sending searching request, search restrictive condition can also be added screen the resource meeting searching request, thus make user can search required resource more quickly and accurately in resource pool, improve search efficiency, make the distribution of resource more efficient and rational.
Fig. 8 shows the block diagram of the Cloud Server according to one embodiment of the invention.
As shown in Figure 8, according to the Cloud Server 800 of one embodiment of the invention, comprise the Resourse Distribute according to any one of technique scheme and search system 700, therefore, this Cloud Server 800 has the technique effect identical with search system 700 with the Resourse Distribute according to any one of technique scheme, does not repeat them here.
Below in conjunction with a concrete scene description Cloud Server of the present invention.
Under identical hardware environment, scheme 1 monopolizes scheme for single resource list enterprise of the prior art, and scheme 2 is multiple enterprises shared resource scheme of the present invention, as shown in table 1, can see the huge advantage adopting this programme:
System schema | Enterprise's number of true support | Maximum support enterprise number |
Scheme 1 | Be less than 3,000 | Be less than 3,000 |
Scheme 2 | More than 20,000 | More than 200,000 |
Table 1
Contrast experiment's condition: 3 search service clusters configuring identical server and form, the configuration of every station server is as follows:
Hardware environment is as follows:
Processor:
e5-4600
Internal memory: 32G
Hard disk: 4T
Software environment is as follows:
openJDK1.7.0+Solr-4.5.1
In this technical scheme, cloud platform use 3 Cloud Servers just can provide efficient search service for a certain cloud application reaching 20000 enterprises at present.And if adopt way of the prior art, for so a large amount of enterprises provides search service, then at least need nearly 80 station servers.Exactly because so few resource can support so many enterprise search service, just make the expense of individual enterprise compare oneself to set up independent search server to obtain and greatly reduce.
More than be described with reference to the accompanying drawings technical scheme of the present invention, by technical scheme of the present invention, can for the application request of different user, to the location of its resource requirement in shared resource pond, limited resources are utilized to provide cloud application service for more multiple enterprises user fully, the demand reasonable distribution resource can applied according to each cloud, thus save the expense of enterprise in cloud application service.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (13)
1. Resourse Distribute and a searching method, is characterized in that, comprising:
According to total resources pond and the assignment commands received of Cloud Server, for arbitrary user of described Cloud Server distributes available resources pond;
Address for the arbitrary resource in the address of described arbitrary user and described available resources pond is set up search and is mapped;
When receiving the searching request of described arbitrary user to described arbitrary resource, map according to described search the described address obtaining described arbitrary resource;
Described data search request is sent to described address, for from arbitrary resource described in described address acquisition.
2. Resourse Distribute according to claim 1 and searching method, is characterized in that, has the key assignments of described arbitrary resource and described arbitrary resource in described available resources pond, and
After setting up described search mapping, also comprise:
Described search being mapped is stored in the memory database of described Cloud Server in the mode of key-value pair; And
The described search mapping be stored in described memory database is backed up.
3. Resourse Distribute according to claim 2 and searching method, is characterized in that, also comprises:
According to the described assignment commands received, in described available resources pond, distribute new resource for described arbitrary user;
Original available resources of described arbitrary user are backed up, and described original available resources of backup and described new resource is merged, the available resources after being adjusted.
4. Resourse Distribute according to claim 3 and searching method, is characterized in that, after the available resources after described being adjusted, also comprises:
Reclaim described original available resources; And
According to the described available resources after adjustment, upgrade described search and map.
5. Resourse Distribute according to any one of claim 1 to 4 and searching method, is characterized in that, before the described described address according to the described arbitrary resource of described search mapping acquisition, also comprises:
According to the described searching request of the described arbitrary user received, determine that resource that described arbitrary user asks to search for is whether in described available resources pond;
When determining that described resource is the described arbitrary resource in described available resources pond, described Cloud Server is allowed to map according to described search the described address obtaining described arbitrary resource.
6. Resourse Distribute according to claim 5 and searching method, is characterized in that, when searching for described arbitrary resource, also comprises:
Search restrictive condition is added in described searching request, and according to the described arbitrary resource of described search restrictive condition search.
7. Resourse Distribute and a search system, is characterized in that, comprising:
Allocation units, according to total resources pond and the assignment commands received of Cloud Server, for arbitrary user of described Cloud Server distributes available resources pond;
Unit is set up in mapping, and the address for the arbitrary resource in the address of described arbitrary user and described available resources pond is set up search and mapped;
Address acquisition unit, when receiving the searching request of described arbitrary user to described arbitrary resource, maps according to described search the described address obtaining described arbitrary resource;
Transmitting element, is sent to described address by described data search request, for from arbitrary resource described in described address acquisition.
8. Resourse Distribute according to claim 7 and search system, is characterized in that, has the key assignments of described arbitrary resource and described arbitrary resource in described available resources pond, and
Also comprise:
Storage unit, after setting up described search mapping, maps described search and is stored in the memory database of described Cloud Server in the mode of key-value pair; And
Backup units, backs up the described search mapping be stored in described memory database.
9. Resourse Distribute according to claim 8 and search system, is characterized in that, described allocation units also for:
According to the described assignment commands received, in described available resources pond, distribute new resource for described arbitrary user; And
Described Resourse Distribute and search system also comprise:
Original available resources of described arbitrary user are backed up by adjustment unit, and described original available resources of backup and described new resource are merged, the available resources after being adjusted.
10. Resourse Distribute according to claim 9 and search system, is characterized in that, also comprises:
Recovery unit, after the available resources after described being adjusted, reclaims described original available resources; And
Updating block, according to the described available resources after adjustment, upgrades described search and maps.
11. Resourse Distribute according to any one of claim 7 to 10 and search system, is characterized in that, also comprise:
Determining unit, before the described described address according to the described arbitrary resource of described search mapping acquisition, according to the described searching request of the described arbitrary user received, determine that resource that described arbitrary user asks to search for is whether in described available resources pond, and when determining that described resource is the described arbitrary resource in described available resources pond, allow described Cloud Server to map according to described search the described address obtaining described arbitrary resource.
12. Resourse Distribute according to claim 11 and search systems, is characterized in that, also comprise:
Condition limiting unit, when searching for described arbitrary resource, adds search restrictive condition in described searching request, and according to the described arbitrary resource of described search restrictive condition search.
13. 1 kinds of Cloud Servers, is characterized in that, comprise the Resourse Distribute according to any one of claim 7 to 12 and search system.
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 true CN104461736A (en) | 2015-03-25 |
CN104461736B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294382A (en) * | 2015-05-18 | 2017-01-04 | 北大方正集团有限公司 | Resource share method, resource shared device and terminal |
CN106375132A (en) * | 2016-11-01 | 2017-02-01 | Tcl集团股份有限公司 | Managing method for cloud server system, and cloud server system |
CN106960249A (en) * | 2017-02-10 | 2017-07-18 | 上海蔚来汽车有限公司 | Complementary energy place an order during intelligent resource allocation methods and system |
CN108388476A (en) * | 2018-03-01 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of server calculating acceleration resource pool method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101076009A (en) * | 2006-06-21 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for allocating virtual resources |
US20100191711A1 (en) * | 2009-01-28 | 2010-07-29 | 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 |
CN102164186A (en) * | 2011-05-31 | 2011-08-24 | 互动在线(北京)科技有限公司 | Method and system for realizing cloud search service |
CN102594852A (en) * | 2011-01-04 | 2012-07-18 | 中国移动通信集团公司 | Data access method, node and system |
EP2778920A1 (en) * | 2013-03-13 | 2014-09-17 | Wal-Mart Stores, Inc. | Selectively altering requests based on comparison of potential value of requests |
-
2014
- 2014-12-08 CN CN201410746658.7A patent/CN104461736B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101076009A (en) * | 2006-06-21 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for allocating virtual resources |
US20100191711A1 (en) * | 2009-01-28 | 2010-07-29 | 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 |
CN102594852A (en) * | 2011-01-04 | 2012-07-18 | 中国移动通信集团公司 | Data access method, node and system |
CN102164186A (en) * | 2011-05-31 | 2011-08-24 | 互动在线(北京)科技有限公司 | Method and system for realizing cloud search service |
EP2778920A1 (en) * | 2013-03-13 | 2014-09-17 | Wal-Mart Stores, Inc. | Selectively altering requests based on comparison of potential value of requests |
Non-Patent Citations (1)
Title |
---|
(美)THOMAS M.THOMAS,(美)ADAM QUIGGLE著;师夷工作室译: "《BCRAN:建立Cisco远程访问网络》", 31 March 2001 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294382A (en) * | 2015-05-18 | 2017-01-04 | 北大方正集团有限公司 | Resource share method, resource shared device and terminal |
CN106375132A (en) * | 2016-11-01 | 2017-02-01 | Tcl集团股份有限公司 | Managing method for cloud server system, and cloud server system |
CN106375132B (en) * | 2016-11-01 | 2021-04-13 | Tcl科技集团股份有限公司 | Cloud server system and management method thereof |
CN106960249A (en) * | 2017-02-10 | 2017-07-18 | 上海蔚来汽车有限公司 | Complementary energy place an order during intelligent resource allocation methods and system |
CN108388476A (en) * | 2018-03-01 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of server calculating acceleration resource pool method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104461736B (en) | 2018-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102982141B (en) | A kind of method and device realizing distributed data base agency | |
CN102053982B (en) | A kind of database information management method and equipment | |
US8832130B2 (en) | System and method for implementing on demand cloud database | |
US10922303B1 (en) | Early detection of corrupt data partition exports | |
CN103067525B (en) | A kind of cloud storing data backup method of feature based code | |
CN104683161B (en) | Network management and device based on SaaS | |
US8578460B2 (en) | Automating cloud service reconnections | |
US8661055B2 (en) | File server system and storage control method | |
CN102202087B (en) | Method for identifying storage equipment and system thereof | |
CN103200020A (en) | Resource allocating method and resource allocating system | |
CN110727738B (en) | Global routing system based on data fragmentation, electronic equipment and storage medium | |
CN104461736A (en) | Resource allocation and search method and system and cloud server | |
CN103064757A (en) | Method and system for backing up data | |
CN108111628B (en) | Dynamic capacity-expansion storage method and system | |
US20090077201A1 (en) | Root node for integrating nas of different user name spaces | |
CN111385370B (en) | ID allocation method, device, storage medium and ID allocation system | |
CN105095103A (en) | Storage device management method and device used for cloud environment | |
CN109150964B (en) | Migratable data management method and service migration method | |
CN112539757B (en) | Target map determining method, system, device, equipment and readable storage medium | |
CN114064073A (en) | Software version upgrading method and device, computer equipment and storage medium | |
CN107566470B (en) | Method and device for managing virtual machine in cloud data system | |
CN104516744A (en) | Software updating method and system | |
CN103365740A (en) | Data cold standby method and device | |
CN105975614A (en) | Cluster configuration device and data updating method and device | |
CN104424020A (en) | Application service management system and method |
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 |