CN107423136A - Resource instances distribution method and device - Google Patents

Resource instances distribution method and device Download PDF

Info

Publication number
CN107423136A
CN107423136A CN201710672370.3A CN201710672370A CN107423136A CN 107423136 A CN107423136 A CN 107423136A CN 201710672370 A CN201710672370 A CN 201710672370A CN 107423136 A CN107423136 A CN 107423136A
Authority
CN
China
Prior art keywords
client
resource instances
pond
resource
account number
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
Application number
CN201710672370.3A
Other languages
Chinese (zh)
Other versions
CN107423136B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710672370.3A priority Critical patent/CN107423136B/en
Publication of CN107423136A publication Critical patent/CN107423136A/en
Application granted granted Critical
Publication of CN107423136B publication Critical patent/CN107423136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of resource instances distribution method and device, belong to field of computer technology.Methods described includes:The user account number logged in client identification and client that reception client is sent;It is determined that resource instances pond corresponding with user account number, resource instances pond is used to provide resource instances for each client in the multiple client of login user account number simultaneously;Unassigned resource instances are selected to distribute to the client indicated by client identification from resource instances pond.The application by resource instances according to client identification by distributing to each client, so as to distribute to the resource instances of each client by client identification to identify, so, when multiple client in public places is required for being allocated resource instances, same user account number can be logged in these clients, avoiding each client needs to log in different user account numbers, the problem of causing the management of user account number excessively complicated, has reached the effect of the management of simplified user account number.

Description

Resource instances distribution method and device
Technical field
The application is related to field of computer technology, more particularly to a kind of resource instances distribution method and device.
Background technology
In the terminal for supporting Multi-User Multi-Task system, it is same that each user can use respective user account number to log in Terminal, terminal determine desktop example corresponding to each user account number, and the desktop of terminal is configured using the desktop example, from And different desktops is provided for each user.Wherein, desktop is logged on the main screen area shown after terminal.Desktop example can be with The file that is had permission to access including the user that is shown on desktop background, screen protection program, desktop, file etc..
Under the application scenarios of cloud desktop, terminal can obtain desktop example from the server in high in the clouds.Specifically, service The mapping of one group of user account number and one group of desktop example is stored with device, is sent when the client that server is received in terminal During user account number, one group of unassigned desktop example is selected from one group of desktop example corresponding to the user account number, by the table Face example allocation gives the client.
A desktop example is distributed because server is only each user account number, for public affairs such as library, student instructions With terminal, keeper needs to log in different user account numbers in different terminals, and so, each terminal can just be assigned to desktop Example, cause the management of user account number excessively complicated.
The content of the invention
Just desktop example can be assigned in order to solve different terminals and need to log in different user account numbers, cause user's account Number management it is excessively complicated the problem of, the embodiments of the invention provide a kind of resource instances distribution method and device.The technology Scheme is as follows:
First aspect, there is provided a kind of resource instances distribution method, methods described include:Management equipment receives client hair The user account number logged in the client identification and client that send;Resource instances pond corresponding with the user account number is determined again, should Resource instances pond is used to provide resource instances for each client in the multiple client of login user account number simultaneously;Finally, Unassigned resource instances are selected to distribute to the client indicated by client identification from resource instances pond.
When a user account number is logged in by multiple client simultaneously, management equipment is according to client identification by resource instances Each client is distributed to, so as to distribute to the resource instances of each client by client identification to identify, so, in public affairs When the multiple client in place is required for being allocated resource instances altogether, same user's account can be logged in these clients Number, avoiding each client needs to log in different user account numbers, the problem of causing the management of user account number excessively complicated, reaches The effect of the management of simplified user account number is arrived.
It is simultaneously real for the multiple identical resources of client distribution when forbidding in the first possible realization of first aspect During example, selected from resource instances pond unassigned resource instances distribute to client indicated by client identification it Before, in addition to:Management equipment detects whether to distribute resource instances for client;When be not client distributed resource instances When, triggering performs selects unassigned resource instances to distribute to the client indicated by client identification from resource instances pond The step of.
With reference to the first possible realization of first aspect, in second of possible realization of first aspect, detecting Whether it is that client was distributed after resource instances, in addition to:When distributing resource instances for client, management equipment will provide Source instance feeds back to client.
When management equipment distributed resource instances for client, management equipment will be what the client was distributed before Resource instances are sent to the client, can both save and distribute the processing shared by identical resource instances again for the client Resource, the client can also be avoided to take multiple identical resource instances, to improve resource utilization.
With reference to second of possible realization of first aspect, in the third possible realization of first aspect, work as user When account number corresponds at least two resource instances ponds, before resource instances are fed back into client, in addition to:Management equipment is examined Survey whether the resource instances pond belonging to the resource instances distributed for the client includes the indicated resource of pond mark Instances Pool;When the resource instances pond belonging to the resource instances distributed for the client includes the indicated money of pond mark During source instance pond, triggering performs the step of resource instances are fed back into client.
With reference to the third possible realization of first aspect, in the 4th kind of possible realization of first aspect, detecting The indicated resource instances pond of pond mark and the resource instances pond belonging to the resource instances distributed for client whether phase With after, in addition to:When belonging to the indicated resource instances pond of pond mark and the resource instances distributed for client During the difference of resource instances pond, management equipment triggering performs selects unassigned resource instances to distribute to visitor from resource instances pond Family end identifies the step of indicated client.
Generally, all resource instances in same resource instances pond are identical, and the resource in different resource instances ponds is real Example is different, is received when the pond mark in the resource instances pond being already allocated to belonging to the resource instances of client does not include management equipment During the pond mark arrived, illustrate that client wants will change different resource instances, now need to distribute resource reality again for client Example, to meet user's request.
In the 5th kind of possible realization of first aspect, it is determined that resource instances pond corresponding with user account number, including:Will The pond mark at least one resource instances pond corresponding with user account number is sent to client;Receive the pond mark that client is sent Know, pond mark is that selection obtains in being identified from least one pond that client receives;The indicated resource of pond mark is real Example pond is defined as resource instances pond corresponding with user account number.
With reference to any one realization in the first of first aspect or first aspect to the 5th kind of possible realization, the In 6th kind of possible realization of one side, unassigned resource instances are being selected to distribute to client from resource instances pond After the indicated client of mark, in addition to:Whether detection client completes the operation to resource instances;When client is completed During operation to resource instances, resource instances are discharged.
After client is completed to the operation of resource instances, management equipment release resource instances subsequently can be by the resource Example allocation gives other clients, to improve resource utilization.
With reference to the 6th kind of possible realization of first aspect, in the 7th kind of possible realization of first aspect, detection visitor Whether family end completes the operation to resource instances, including:Detect whether to receive the resource release request of client transmission, when connecing When receiving resource release request, determine that client completes the operation to resource instances;Or detect whether within a predetermined period of time Heartbeat message is received, when not receiving heartbeat message within a predetermined period of time, determines that client is completed to resource instances Operation, heartbeat message are used to indicate to be in connection status between client and the server for providing resource instances.
Management equipment can actively discharge resource instances according to heartbeat message, avoid user and forget to control client release During resource instances, the resource instances occupied problem always, resource utilization is improved.
Second aspect, there is provided a kind of resource instances distribution method, methods described include:Client obtains client identification The user account number logged in the client;Client identification and user account number are sent to management equipment again;Finally, reception pipe The resource instances that equipment is client distribution are managed, the resource instances are that management equipment determines resource instances corresponding with user account number Pond, the unassigned resource instances selected from resource instances pond, the resource instances pond are used for for login user account number simultaneously Multiple client in each client provide resource instances.
When a user account number is logged in by multiple client simultaneously, management equipment is according to client identification by resource instances Each client is distributed to, so as to distribute to the resource instances of each client by client identification to identify, so, in public affairs When the multiple client in place is required for being allocated resource instances altogether, same user's account can be logged in these clients Number, avoiding each client needs to log in different user account numbers, the problem of causing the management of user account number excessively complicated, reaches The effect of the management of simplified user account number is arrived.
In the first possible realization of second aspect, client identification and the user's account logged in the client are obtained Number, including:Obtain the user account number logged in client;Client identification is calculated according to the physical label of client, or, root Client identification is calculated according to random number.
With reference to the first possible realization of second aspect, in second of possible realization of second aspect, visitor is obtained The user account number logged in the end of family, including:The input frame of user account number is shown, using the information inputted in input frame as in visitor The user account number logged in the end of family;Or using with the user account number that client is bound as the user's account logged in the client Number.
Client can directly read the user account number of binding, be inputted without user, simplify the acquisition side of user account number Formula.
In the third possible realization of second aspect, receive management equipment be client distribution resource instances it Afterwards, in addition to:When completing the operation to resource instances, client sends resource release request to management equipment, and the resource is released Request is put to be used to indicate that management equipment discharges resource instances.
After client is completed to the operation of resource instances, management equipment release resource instances subsequently can be by the resource Example allocation gives other clients, to improve resource utilization.
With reference to any one realization in the first of second aspect or second aspect to the third realization, in second aspect The 4th kind of possible realization in, receive management equipment be client distribution resource instances before, in addition to:Receive management The pond mark at least one resource instances pond corresponding with user account number that equipment is sent;At least one pond received is identified The pond mark of middle selection is sent to management equipment, and pond is identified for determining resource instances corresponding with user account number for management equipment Pond.
It should be noted that the pond mark selected during at least one pond received is identified is sent to management equipment, wrap Include:When the pond that client receives a resource instances pond identifies, pond mark is sent to management equipment by client.
When user account number corresponds only to a resource instances pond, pond mark directly can be sent to management by client Equipment, selected without user, can both simplify user's operation, user's operation shared time can also be saved, so as to Improve the efficiency of distribution resource instances.
The third aspect, there is provided a kind of resource instances distributor, the device include at least one unit, and this is at least one Unit is used to realize the resource instances distribution side provided at least one implementation of above-mentioned first aspect or first aspect Method.
Fourth aspect, there is provided a kind of resource instances distributor, the device include at least one unit, and this is at least one Unit is used to realize the resource instances distribution side provided at least one implementation of above-mentioned second aspect or second aspect Method.
5th aspect, there is provided a kind of management equipment, the management equipment include:Processor and the receipts being connected with processing Send out device;
The transceiver is configured as being controlled by processor, and the processor is used to realize above-mentioned first aspect or first aspect Resource instances distribution method provided at least one realization.
6th aspect, there is provided a kind of terminal for being provided with client, the terminal include:Processor and with handle phase Transceiver even;
The transceiver is configured as being controlled by processor, and the processor is used to realize above-mentioned second aspect or second aspect Resource instances distribution method provided at least one realization.
Brief description of the drawings
Fig. 1 is the structural representation for the resource instances distribution system that an exemplary embodiment of the invention provides;
Fig. 2 is the structural representation for the electronic equipment that an exemplary embodiment of the invention provides;
Fig. 3 is the flow chart for the resource instances distribution method that an exemplary embodiment of the invention provides;
Fig. 4 is the flow chart for the resource instances distribution method that an exemplary embodiment of the invention provides;
Fig. 5 is the structure chart for the resource instances distributor that an exemplary embodiment of the invention provides;
Fig. 6 is the structure chart for the resource instances distributor that an exemplary embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with accompanying drawing to the application embodiment party Formula is described in further detail.
Referenced herein " unit " refers to the functional structure logically divided, and being somebody's turn to do " unit " can be by pure hardware Realize, or, software and hardware is implemented in combination with.
The noun that the application is related to is explained below.
Resource instances:Terminal provides the user the set of the resource used required for a service.
Wherein, the application can apply in desktop cloud system, can also be applied to injection office automation (Office Automation, OA), Enterprise Resources Plan (Enterprise Resource Planning, ERP), website, desktop management journey In the terminal of sequence etc., the present embodiment is not construed as limiting to the application scenarios of resource instances.
In different application scenarios, resource instances can be specially different nouns.Such as the applied field in desktop cloud Under scape, resource instances can be specially desktop example, i.e., terminal provides the set of the resource used required for desktop services, including File that desktop background, screen protection program, the user that shows on desktop have permission to access, file etc..Again for example, in net Stand under the application scenarios of forum, resource instances can be specially plate example, i.e., terminal is provided needed for a certain plate in forum The set for the resource to be used, including plate background, typesetting format, typesetting content etc..
Resource instances pond:Resource instances pond includes at least two resource instances, and all moneys in same resource instances pond Source instance is identical, and the resource instances in different resource Instances Pool are different.
Fig. 1 is refer to, the knot of the resource instances distribution system 100 provided it illustrates an illustrative embodiment of the invention Structure schematic diagram.The resource instances distribution system 100 includes terminal 120, management equipment 140 and server 160.Terminal 120 and pipe Manage equipment 140 to be connected, management equipment 140 is connected with server 160.
Client is installed in terminal 120, the client is used to communicate with management equipment 140.Terminal 120 can be mobile Phone (English:Cellphone), smart mobile phone (English:Smartphone), computer (English:Computer), tablet personal computer (English:Tablet computer), wearable device (English:Wearable device), personal digital assistant's (English: Personal digital assistant, PDA), mobile internet device (English:Mobile Internet device, MID) and E-book reader is (English:E-book reader) etc..
Management equipment 140 includes access entrance (Access Portal) 142, accesses gateway (Access Gateway) 144th, resource management (Resource Management) 146 and user management (User Management) 148.Wherein, access Entrance 142 obtains user account number and client identification to client, and user account number is sent into user management 148 and reflected Authenticating result is sent to access entrance 142 by power, user management 148.Upon successful authentication, access entrance 142 is managed by user The pond that reason 148 obtains the resource instances pond that user has permission to access to resource management 146 identifies, by pond identification feedback to client End.Client selects pond mark from the pond mark received, and the pond mark of selection is sent into resource management 146, resource pipe The selection resource instances from the indicated resource instances pond of pond mark of reason 146 distribute to client.Client is by accessing gateway 144 establish interface channel with server 160, and the resource instances in server are operated.Completed in client real to resource During the operation of example, resource management 146 discharges the resource instances.
Multiple resource instances are stored with server 160, and by resource instances logical partitioning into resource instances pond.
Fig. 2 is refer to, it illustrates the structural representation of the electronic equipment 200 shown in another exemplary embodiment of the invention Figure.The electronic equipment 200 can be the terminal 120 or management equipment 140 shown in Fig. 1, and the electronic equipment 200 includes:Place Reason device 220, the transceiver 240 being connected with processor 220.
The transceiver 240 can be made up of one or more antennas, and the antenna enables electronic equipment 200 to send or receive Radio signal.
Transceiver 240 may be connected to telecommunication circuit 260, the telecommunication circuit 260 can to received via transceiver 240 or via The signal that transceiver 240 is sent performs various processing, such as:The signal that modulation is sent via transceiver 240, is demodulated via transceiver 240 signals received, when actually realizing, the telecommunication circuit 260 can be by radio frequency (English:Radio frequency, RF) chip Formed with baseband chip.
Telecommunication circuit 260 may be connected to processor 220.The interchangeable telecommunication circuit 260 may alternatively be integrated within processor 220 In.Processor 220 is the control centre of electronic equipment 200, and the processor 220 can be central processing unit (English:central Processing unit, CPU), network processing unit (English:Network processor, NP) or CPU and NP combination. Processor 220 can further include hardware chip.Above-mentioned hardware chip can be application specific integrated circuit (English: Application-specific integrated circuit, ASIC), PLD (English: Programmable logic device, PLD) or its combination.Above-mentioned PLD can be CPLD (English: Complex programmable logic device, CPLD), field programmable gate array (English:field- Programmable gate array, FPGA), GAL (English:Generic array logic, GAL) or its Any combination.
Memory 280 is connected with bus or other means with processor 220, and memory 280 can be volatile memory (English:Volatile memory), nonvolatile memory (English:Non-volatile memory) or their group Close.Volatile memory can be random access memory (English:Random-access memory, RAM), for example, it is static with Machine access memory (English:Static random access memory, SRAM), dynamic random access memory (English: Dynamic random access memory, DRAM).Nonvolatile memory can be read-only storage (English:read Only memory image, ROM), such as programmable read only memory (English:programmable read only Memory, PROM), Erasable Programmable Read Only Memory EPROM (English:erasable programmable read only Memory, EPROM), Electrically Erasable Read Only Memory (English:electrically erasable Programmable read-only memory, EEPROM).Nonvolatile memory can also be flash memory (English: Flash memory), magnetic memory, such as tape (English:Magnetic tape), floppy disk (English:Floppy disk), firmly Disk.Nonvolatile memory can also be CD.
When electronic equipment 200 is terminal 120, can be stored in memory 280 with client binding user account number and Client identification.Wherein, user account number includes username and password.
When electronic equipment 200 is management equipment 140, can be stored in memory 280 be already registered for user account number, User is real to the access rights table in resource instances pond (mapping i.e. between the mark of the pond in user account number and resource instances pond), resource Example pond state table (the i.e. resource identification and resource status for the resource instances that the pond mark in resource instances pond, resource instances pond include Between mapping), access allocation table of the user to resource instances pond (user account number, client identification and distribute to the client Mapping between the resource identification of the resource instances at end).
Fig. 3 is refer to, the flow chart of the resource instances distribution method provided it illustrates an exemplary embodiment of the invention. The present embodiment is used in resource instances distribution system as shown in Figure 1 come for example, by the client in terminal in this way Following step is performed with management equipment, user account number and client identification are sent jointly to management and set by client in the present embodiment Standby, this method includes following steps:
Step 301, client obtains client identification and the user account number logged in the client.
Client identification is used for unique mark client.When client obtains client identification, in the first realization, visitor Family end calculates client identification according to the physical label of client;In second is realized, client calculates visitor according to random number Family end identifies.
In the first realization, the physical label of client is indicated for being provided with the physical property of the terminal of client Mark, can include Internet protocol (Internet Protocol, IP) address, medium access control (Media Access Control, MAC) address, CPU (Central Processing Unit, CPU) mark, hard disk mark etc.. By above-mentioned enumerated physical label is all unique, therefore, client can be directly using above-mentioned physical label as client End mark;Or client can also input above-mentioned enumerated physical label in pre-defined algorithm, by the defeated of the pre-defined algorithm Go out and be not construed as limiting as client identification, the present embodiment.
In second of implementation, random number can be terminal start after automatically generate or client open Automatically generated after dynamic, can also be that user triggers generation, the present embodiment is not construed as limiting.Client can be directly by random number As client identification, random number can also be inputted in pre-defined algorithm, using the output of the pre-defined algorithm as client identification, The present embodiment is not construed as limiting.
When client obtains user account number, in the first realization, client shows the input frame of user account number, will be defeated Enter the information inputted in frame as the user account number logged in the client;In second is realized, client will be with client The user account number of binding is as the user account number logged in the client.
In the first realization, access entrance of the client into management equipment sends the server address for needing to access, Access entrance returns to client includes the login page of input frame, client display login page, and user is defeated in input frame Access customer account number.
In second is realized, the binding relationship of client and user account number is pre-set, so, is starting client Afterwards, client can directly read the user account number of binding, be inputted without user, simplify the acquisition modes of user account number.
Step 302, client identification and user account number are sent to management equipment by client.
It should be noted that client identification and user account number can be sent to management equipment by client respectively, also may be used So that client identification and user account number are sent jointly into management equipment, the present embodiment is not construed as limiting.
It should be noted that client also needs to the address of the server where resource instances being sent to management equipment, So as to management equipment according to the address search of server to server, acquisition resource instances distribute to client from the server End.
In an illustrative examples, the information that client is sent to management equipment includes:Server address http:// Somedomain/, user name User001, password 1234 and client identification 192168000131.
Step 303, the user account number logged in management equipment reception client is sent client identification and client.
Step 304, the pond mark at least one resource instances pond corresponding with user account number is sent to visitor by management equipment Family end.
After access entrance in management equipment receives user account number, user account number is sent to user management and reflected Power, and authenticating result is sent to access entrance.In authenticating result for when authenticating successfully, access entrance is by user management to money Source control sends the resource request for carrying user account number, and resource management is searched in access rights table corresponding to the user account number At least one resource instances pond pond mark, by user management by the pond found mark be sent to access entrance, access into Pond mark is sent to client by mouth.When authenticating result is failed authentication, access entrance returns to log in page to client again Face, client obtain the user account number of user's input again.
In an illustrative examples, access rights table is as shown in Table 1.
Table one
User name Pond identifies
User001 PoolA
User002 PoolA
User003 PoolB
Resource instances pond is used to provide resource reality for each client in the multiple client of login user account number simultaneously Example.Wherein, each resource instances pond can be given and provide a resource instances for client, or client provides multiple phases Same resource instances, the present embodiment are not construed as limiting.
When a user account number is logged in by multiple client simultaneously, management equipment is according to client identification by resource instances Each client is distributed to, so as to distribute to the resource instances of each client by client identification to identify, so, in public affairs When the multiple client in place is required for being allocated resource instances altogether, same user's account can be logged in these clients Number, avoiding each client needs to log in different user account numbers, the problem of causing the management of user account number excessively complicated, reaches The effect of the management of simplified user account number is arrived.
It should be noted that when resource management does not find resource reality corresponding to the user account number in access rights table Example pond, i.e. when not authorizing the authority for accessing resource instances ponds for the user, by user management and access entrance to client The notification message of feedback allocation failure.
Step 305, client receives at least one resource instances pond corresponding with user account number that management equipment is sent Pond identifies, and the pond mark selected during at least one pond received is identified is sent to management equipment.
Client is identified at least one pond received and shown, and according to selected by the operation of user determines user Pond mark, by user selection pond mark be sent to management equipment.Specifically, when client receives a resource instances pond Pond mark when, user directly select the pond mark, client by the pond mark be sent to management equipment;When client receives During the pond mark at least two resource instances ponds, user can select a pond mark, multiple ponds can also be selected to identify, client The pond mark of user's selection is sent to management equipment by end.
Optionally, when the pond that client receives a resource instances pond identifies, client can also be directly by the pond Mark is sent to management equipment.That is, when user account number corresponds only to a resource instances pond, client can be directly by the pond Mark is sent to management equipment, is selected without user, can both simplify user's operation, can also save shared by user's operation Time, so as to improve the efficiency of distribution resource instances.
Step 306, management equipment receives the pond mark that client is sent, and pond is identified into indicated resource instances pond determines For resource instances pond corresponding with user account number.
Optionally, access entrance by user management receive resource management send it is corresponding with user account number at least Whether can be 1 with the quantity that detection cell identifies during one pond mark;When the quantity of pond mark is 1, step is directly performed 307, step 304-306 is not performed, to simplify implementation process;When the quantity of pond mark is more than 1, step 304-306 is performed.
Step 307, management equipment selects unassigned resource instances to distribute to client identification from resource instances pond Indicated client.
Resource instances pond state table is stored with resource management in management equipment, record has each resource in the state table The distribution state of all resource instances in Instances Pool, the resource instances indicated by resource management from each pond that user selects mark It is unassigned resource instances that a state is selected in pond, and the resource instances are distributed into client.
In an illustrative examples, state table is as shown in Table 2.
Table two
Pond identifies Resource identification Distribution state
PoolA Res001 It can distribute
PoolA Res002 Distribute
PoolA Res003 Distribute
…… …… ……
PoolB Res00n It can distribute
It is being client into after the distribution of work each resource instances, resource management can all increase one newly in allocation table is accessed The mapping of the resource identification of group user account number, client identification and resource instances.
In an illustrative examples, allocation table is accessed as shown in Table 3.
Table three
User name Client identification Resource identification
User001 Client001 Res001
User002 Client002 Res002
User003 Client003 Res003
User004 Client004 Res004
…… …… ……
If all resource instances are all allocated in state table, resource management distributes failure to client feedback Notification message.
During client and resource management communications, client can also continue to communicate with access entrance.In one kind In realization, management equipment allows to distribute multiple identical resource instances simultaneously for client, and now, client is receiving management Equipment distribution resource instances after, can also again to management equipment ask distribution identical resource instances, management equipment no matter Whether resource instances were distributed for client, and directly distributed resource instances again for client.In another implementation, manage Reason equipment forbids distributing multiple identical resource instances simultaneously for client, now, in order to prevent client from receiving resource After the resource instances for managing distribution, distribution identical resource instances are asked to cause the wasting of resources to access entrance again, from money Selected in source instance pond before unassigned resource instances distribute to the client indicated by client identification, management equipment inspection Whether survey is that client distributed resource instances;When not distributing resource instances for client, triggering performs step 307.When When distributing resource instances for client, the resource instances are fed back into client.
Specifically, resource management can search client identification in allocation table is accessed, and not find client identification When, perform step 307;When finding client identification, by the resource indicated by resource identification corresponding to the client identification Example feeds back to client.
It is a kind of it is possible realize scene, a user account number corresponds at least two resource instances ponds, resource management Be assigned with the resource instances in one of resource instances pond for client, and user want the resource instances being replaced by it is another Resource instances in resource instances pond, then before resource instances are fed back into client, management equipment detection has been client Hold whether the resource instances pond belonging to the resource instances distributed includes the indicated resource instances pond of pond mark;It is visitor when When resource instances pond belonging to the resource instances that family end was distributed includes pond mark indicated resource instances pond, triggering perform general Resource instances feed back to the step of client.When the resource instances pond belonging to the resource instances distributed for client is not wrapped When including the resource instances pond indicated by the mark of pond, triggering performs step 307.
When management equipment distributed resource instances for client, management equipment will be what the client was distributed before Resource instances are sent to the client, can both save and distribute the process resource shared by resource instances again for the client, The client can also be avoided to take multiple resource instances, to improve resource utilization.
Step 308, client receives the resource instances that management equipment is client distribution.
Client can operate after resource instances are received to resource instances.Completed in client real to resource During the operation of example, management equipment also needs to detect whether client completes operation to resource instances;When client is completed to money During the operation of source instance, management equipment release resource instances, the resource instances are subsequently distributed into other clients again, to improve Resource utilization.
When whether detection client completes the operation to resource instances, the first is embodied as:Management equipment detects whether The resource release request of client transmission is received, when receiving resource release request, it is real to resource to determine that client is completed The operation of example, resource release request are used to indicate that management equipment discharges resource instances.Client active request pipe in this realization Manage equipment release resource instances.It is embodied as second:Management equipment detects whether to receive heartbeat message within a predetermined period of time, When not receiving heartbeat message within a predetermined period of time, determine that client completes the operation to resource instances, the heartbeat message For indicating to be in connection status between client and the server for providing resource instances.Management equipment is actively released in this realization Put resource instances.
In second is realized, when maintaining connection between client and server, server can send out heartbeat message Resource management is given, resource management determines client also in operating resource example when having not timed out the heartbeat message received; When time-out does not receive heartbeat message also, determine that client completes the operation to resource instances, actively discharge resource instances.
Management equipment can actively discharge resource instances according to heartbeat message, avoid user and forget to control client release During resource instances, the resource instances occupied problem always, resource utilization is improved.
In summary, resource instances distribution method provided in an embodiment of the present invention, when a user account number is by multiple clients End logs in simultaneously when, resource instances are distributed to each client by management equipment according to client identification, so as to pass through client Identify and distribute to the resource instances of each client to identify, so, in public places in multiple client be required for being divided During with resource instances, same user account number can be logged in these clients, avoiding each client needs to log in difference User account number, the problem of causing the management of user account number excessively complicated, reached the effect of the management of simplified user account number.
Fig. 4 is refer to, the flow chart of the resource instances distribution method provided it illustrates an exemplary embodiment of the invention. User account number is first sent to management equipment by client in the present embodiment, then by the pond mark in the resource instances pond of user's selection and Client identification sends jointly to management equipment, and this method includes following steps:
Step 401, client obtains the user account number logged in the client.
The flow of client acquisition user account number refers to the description in step 301, does not repeat herein.
Step 402, user account number is sent to management equipment by client.
Client also needs to the address of the server where resource instances being sent to management equipment, so as to management equipment root According to the address search of server to server, acquisition resource instances distribute to client from the server.
In an illustrative examples, the information that client is sent to management equipment includes:Server address http:// Somedomain/, user name User001 and password 1234.
Step 403, management equipment receives the user account number logged in the client that client is sent.
Step 404, the pond mark at least one resource instances pond corresponding with user account number is sent to visitor by management equipment Family end.
Resource instances pond is used to provide resource reality for each client in the multiple client of login user account number simultaneously Example.
The flow that pond mark is sent to client by management equipment refers to description in step 304, does not repeat herein.
Step 405, client receives at least one resource instances pond corresponding with user account number that management equipment is sent Pond identifies, and the client identification that the pond selected during at least one pond received is identified identifies and got is sent to management and set It is standby.
The flow of client acquisition client identification refers to the description in step 301, does not repeat herein.
Client identification and pond mark can will be sent to management equipment by client respectively, can also be by client identification Management equipment is sent jointly to pond mark, the present embodiment is not construed as limiting.
Step 406, management equipment receives pond mark and the client identification that client is sent, and pond is identified to indicated money Source instance pond is defined as resource instances pond corresponding with user account number.
Optionally, access entrance by user management receive resource management send it is corresponding with user account number at least Whether can be 1 with the quantity that detection cell identifies during one pond mark;When the quantity of pond mark is 1, step 404 can be replaced It is changed to management equipment and sends configured information to client, the configured information is used to indicate that client sends client to management equipment Mark, step 405 could alternatively be client and send client identification to management equipment, real to simplify without sending pond mark Existing flow;When the quantity of pond mark is more than 1, step 404-406 is performed.
Step 407, management equipment selects unassigned resource instances to distribute to client identification from resource instances pond Indicated client.
Management equipment refers to the description in step 307 for the flow of client distribution resource instances, does not repeat herein.
Step 408, client receives the resource instances that management equipment is client distribution.
Management equipment and client interaction refer to description in step 308 to discharge the flow of resource instances, do not make herein Repeat.
In summary, resource instances distribution method provided in an embodiment of the present invention, when a user account number is by multiple clients End logs in simultaneously when, resource instances are distributed to each client by management equipment according to client identification, so as to pass through client Identify and distribute to the resource instances of each client to identify, so, in public places in multiple client be required for being divided During with resource instances, same user account number can be logged in these clients, avoiding each client needs to log in difference User account number, the problem of causing the management of user account number excessively complicated, reached the effect of the management of simplified user account number.
Fig. 5 is refer to, the block diagram of the resource instances distributor provided it illustrates one embodiment of the invention.The resource Example allocation device can pass through all or part being implemented in combination with as management equipment of software, hardware or both. The resource instances distributor can include:Receiving unit 510 and processing unit 520.
Receiving unit 510, for realizing the function of above-mentioned steps 303.
The resource instances distributor can also include transmitting element 530, for realizing the function of above-mentioned steps 304.
Receiving unit 510, for realizing the function of reception tank mark in above-mentioned steps 306.
Processing unit 520, the function in resource instances pond is determined in above-mentioned steps 306 for realizing.
Transmitting element 530, for realizing the function of above-mentioned steps 307.
Correlative detail can combine embodiment of the method described in reference diagram 3.
Or
Receiving unit 510, for realizing the function of above-mentioned steps 403.
The resource instances distributor can also include transmitting element 530, for realizing the function of above-mentioned steps 404.
Receiving unit 510, for realizing reception tank mark and the function of client identification in above-mentioned steps 406.
Processing unit 520, the function in resource instances pond is determined in above-mentioned steps 406 for realizing.
Transmitting element 530, for realizing the function of above-mentioned steps 407.
Correlative detail can combine embodiment of the method described in reference diagram 4.
No matter receiving unit 510, processing unit 520 and transmitting element 530 perform the embodiment of the method described in Fig. 3 or schemed Embodiment of the method described in 4, it can also all realize following functions.
Processing unit 520, for when forbidding distributing multiple identical resource instances simultaneously for client, real from resource Select before unassigned resource instances distribute to the client indicated by client identification, to detect whether as client in example pond Resource instances were distributed at end;When be not client distributed resource instances when, triggering perform selected from resource instances pond not by The resource instances of distribution distribute to the step of client indicated by client identification.
Transmitting element 530, for when distributing resource instances for client, resource instances to be fed back into client.
Processing unit 520, for when user account number corresponds at least two resource instances ponds, being fed back by resource instances Before client, detect whether the resource instances pond belonging to the resource instances distributed for client includes pond mark institute The resource instances pond of instruction;When the resource instances pond belonging to the resource instances distributed for client includes pond mark meaning During the resource instances pond shown, triggering performs the step of resource instances are fed back into client.When what is distributed for client When resource instances pond belonging to resource instances does not include the indicated resource instances pond of pond mark, triggering is performed from resource instances pond The step of unassigned resource instances of middle selection distribute to the client indicated by client identification.
Processing unit 520, for selecting unassigned resource instances to distribute to client mark from resource instances pond After knowing indicated client, whether detection client completes the operation to resource instances;When client is completed to resource reality During the operation of example, resource instances are discharged.
Processing unit 520, for detecting whether receiving the resource release request of client transmission, released when receiving resource When putting request, determine that client completes the operation to resource instances;Or detect whether to receive heartbeat within a predetermined period of time Message, when not receiving heartbeat message within a predetermined period of time, determine that client completes the operation to resource instances, heartbeat disappears Cease for indicating to be in connection status between client and resource instances.
It should be noted that above-mentioned receiving unit 510 can be realized by the transceiver in management equipment;Above-mentioned Processing unit 520 can be realized by the processor in management equipment;Above-mentioned transmitting element 530 can be by management equipment Processor determine transmission opportunity, realization is sent by transceiver.
Fig. 6 is refer to, the block diagram of the resource instances distributor provided it illustrates one embodiment of the invention.The resource Example allocation device can pass through all or part being implemented in combination with as terminal of software, hardware or both.The money Source instance distributor can include:Processing unit 610, transmitting element 620 and receiving unit 630.
Processing unit 610, for realizing the function of above-mentioned steps 301.
Transmitting element 620, for realizing the function of above-mentioned steps 302.
Receiving unit 630, for realizing the function of reception tank mark in above-mentioned steps 305.
Transmitting element 620, the function of pond mark is sent in above-mentioned steps 305 for realizing.
Receiving unit 630, for realizing the function of above-mentioned steps 308.
Correlative detail can combine embodiment of the method described in reference diagram 3.
Or
Processing unit 610, for realizing the function of above-mentioned steps 401.
Transmitting element 620, for realizing the function of above-mentioned steps 402.
Receiving unit 630, for realizing the function of reception tank mark in above-mentioned steps 405.
Transmitting element 620, the function of pond mark and client identification is sent in above-mentioned steps 405 for realizing.
Receiving unit 630, for realizing the function of above-mentioned steps 408.
Correlative detail can combine embodiment of the method described in reference diagram 4.
No matter processing unit 610, transmitting element 620 and receiving unit 630 perform the embodiment of the method described in Fig. 3 or schemed Embodiment of the method described in 4, it can also all realize following functions.
Processing unit 610, for obtaining the user account number logged in client;Visitor is calculated according to the physical label of client Family end identifies, or, client identification is calculated according to random number.
Processing unit 610, for showing the input frame of user account number, using the information inputted in input frame as in client The user account number logged in end;Or using with the user account number that client is bound as the user account number logged in the client.
Transmitting element 620, for when completing the operation to resource instances, resource release request to be sent to management equipment, Resource release request is used to indicate that management equipment discharges resource instances.
It should be noted that above-mentioned processing unit 610 can be realized by the processor in terminal;Above-mentioned transmission list Member 620 can determine transmission opportunity by the processor in terminal, and realization is sent by transceiver;Above-mentioned receiving unit 630 It can be realized by the transceiver in terminal.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.
Those of ordinary skill in the art can be understood that, for convenience and simplicity of description, the device of foregoing description With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, can be only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (15)

1. a kind of resource instances distribution method, it is characterised in that methods described includes:
The user account number logged in the client identification of reception client transmission and the client;
It is determined that resource instances pond corresponding with the user account number, the resource instances pond is used for log in user's account simultaneously Number multiple client in each client provide resource instances;
Selected from the resource instances pond described in unassigned resource instances are distributed to indicated by the client identification Client.
2. according to the method for claim 1, it is characterised in that when forbidding distributing multiple identicals simultaneously for the client During resource instances, unassigned resource instances are selected to distribute to the client identification from the resource instances pond described Before the indicated client, in addition to:
Detect whether to distribute resource instances for the client;
When not distributing resource instances for the client, select not divided from the resource instances pond described in triggering execution The resource instances matched somebody with somebody distribute to the step of client indicated by the client identification.
3. according to the method for claim 2, it is characterised in that detect whether to distribute resource for the client described After example, in addition to:
When distributing resource instances for the client, the resource instances are fed back into the client.
4. according to the method for claim 3, it is characterised in that when the user account number corresponds at least two resource instances Chi Shi, it is described the resource instances are fed back into the client before, in addition to:
Detect whether the resource instances pond belonging to the resource instances distributed for the client includes pond mark institute The resource instances pond of instruction;
When the resource instances pond belonging to the resource instances distributed for the client is included indicated by the mark of the pond During resource instances pond, triggering performs the described the step of resource instances are fed back into the client.
5. according to the method for claim 4, it is characterised in that in the indicated resource instances of the detection pond mark After whether pond and the resource instances pond belonging to the resource instances distributed for the client are identical, in addition to:
When the money belonging to the indicated resource instances pond of pond mark and the resource instances distributed for the client Unassigned resource instances are selected to distribute to from the resource instances pond during difference of source instance pond, described in triggering execution described The step of client indicated by client identification.
6. according to the method for claim 1, it is characterised in that described to determine resource instances corresponding with the user account number Pond, including:
The pond mark at least one resource instances pond corresponding with the user account number is sent to the client;
The pond mark that the client is sent is received, the pond mark is identified from least one pond that the client receives It is middle to select what is obtained;
Mark indicated resource instances pond in the pond is defined as resource instances pond corresponding with the user account number.
7. according to the method described in any one of claim 1 to 6, it is characterised in that selected described from the resource instances pond After selecting the client that unassigned resource instances are distributed to indicated by the client identification, in addition to:
Detect whether the client completes operation to the resource instances;
When the client completes the operation to the resource instances, the resource instances are discharged.
8. according to the method for claim 7, it is characterised in that whether the detection client is completed to the resource The operation of example, including:
Detect whether to receive the resource release request that the client is sent, when receiving the resource release request, really The fixed client completes the operation to the resource instances;Or
Detect whether to receive heartbeat message within a predetermined period of time, when not receiving heartbeat message within a predetermined period of time, Determine that the client completes the operation to the resource instances, the heartbeat message is used to indicate the client and the money Connection status is between source instance.
9. a kind of resource instances distribution method, it is characterised in that methods described includes:
Obtain client identification and the user account number logged in the client;
The client identification and the user account number are sent to management equipment;
The resource instances that the management equipment is client distribution are received, the resource instances are that the management equipment determines Resource instances pond corresponding with the user account number, the unassigned resource instances selected from the resource instances pond, institute State each client that resource instances pond is used for for while logged in the multiple client of the user account number and resource instances are provided.
10. according to the method for claim 9, it is characterised in that described to obtain client identification and in the client The user account number of login, including:
Obtain the user account number logged in the client;
The client identification is calculated according to the physical label of the client, or, the client is calculated according to random number Mark.
11. according to the method for claim 10, it is characterised in that described to obtain the user's account logged in the client Number, including:
The input frame of user account number is shown, using the information inputted in the input frame as the use logged in the client Family account number;Or
Using the user account number bound with the client as the user account number logged in the client.
12. according to the method for claim 9, it is characterised in that to receive the management equipment be the client described After the resource instances of distribution, in addition to:
When completing the operation to the resource instances, resource release request, the resource release are sent to the management equipment Ask to be used to indicate that the management equipment discharges the resource instances.
13. according to the method described in any one of claim 9 to 12, it is characterised in that be in the reception management equipment Before the resource instances of the client distribution, in addition to:
Receive the pond mark at least one resource instances pond corresponding with the user account number that the management equipment is sent;
The pond mark selected during at least one pond received is identified is sent to the management equipment, and the pond is identified for supplying The management equipment determines resource instances pond corresponding with the user account number.
14. a kind of resource instances distributor, it is characterised in that described device includes:
Receiving unit, for receive client transmission client identification and the client in the user account number that logs in;
Processing unit, it is described for determining resource instances pond corresponding with the user account number that the receiving unit receives Resource instances pond is used to provide resource instances to log in each client in the multiple client of the user account number simultaneously;
The processing unit, it is additionally operable to select unassigned resource instances to distribute to the client from the resource instances pond The indicated client of end mark.
15. a kind of resource instances distributor, it is characterised in that described device includes:
Processing unit, for the user account number for obtaining client identification and being logged in the client;
Transmitting element, the client identification and the user account number for the processing unit to be obtained are sent to management and set It is standby;
Receiving unit, for receiving the resource instances that the management equipment is client distribution, the resource instances are institutes State management equipment and determine resource instances pond corresponding with the user account number, selected from the resource instances pond unassigned Resource instances, the resource instances pond is used for log in each client in the multiple client of the user account number simultaneously Resource instances are provided.
CN201710672370.3A 2017-08-08 2017-08-08 Resource instance allocation method and device Active CN107423136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710672370.3A CN107423136B (en) 2017-08-08 2017-08-08 Resource instance allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710672370.3A CN107423136B (en) 2017-08-08 2017-08-08 Resource instance allocation method and device

Publications (2)

Publication Number Publication Date
CN107423136A true CN107423136A (en) 2017-12-01
CN107423136B CN107423136B (en) 2020-06-26

Family

ID=60437618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710672370.3A Active CN107423136B (en) 2017-08-08 2017-08-08 Resource instance allocation method and device

Country Status (1)

Country Link
CN (1) CN107423136B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108400986A (en) * 2018-02-28 2018-08-14 上海康斐信息技术有限公司 A kind of wireless router and the more account management methods of APP based on wireless router

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685357A (en) * 2012-09-06 2014-03-26 深圳市快播科技有限公司 Account multi-open message processing method and system
CN104077123A (en) * 2013-12-11 2014-10-01 腾讯科技(深圳)有限公司 Interface display method, device, terminal and server
CN104461744A (en) * 2014-12-18 2015-03-25 曙光云计算技术有限公司 Resource allocation method and device
US10097420B2 (en) * 2013-04-10 2018-10-09 Tencent Technology (Shenzhen) Company Limited Method and apparatus for determining area in which IP address is located

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685357A (en) * 2012-09-06 2014-03-26 深圳市快播科技有限公司 Account multi-open message processing method and system
US10097420B2 (en) * 2013-04-10 2018-10-09 Tencent Technology (Shenzhen) Company Limited Method and apparatus for determining area in which IP address is located
CN104077123A (en) * 2013-12-11 2014-10-01 腾讯科技(深圳)有限公司 Interface display method, device, terminal and server
CN104461744A (en) * 2014-12-18 2015-03-25 曙光云计算技术有限公司 Resource allocation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108400986A (en) * 2018-02-28 2018-08-14 上海康斐信息技术有限公司 A kind of wireless router and the more account management methods of APP based on wireless router

Also Published As

Publication number Publication date
CN107423136B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US20220100541A1 (en) Virtual provisioning with implementation resource boundary awareness
US20200067726A1 (en) Iot provisioning service
US10057251B2 (en) Provisioning account credentials via a trusted channel
CN110896355B (en) Network slice selection method and device
US10013662B2 (en) Virtual resource cost tracking with dedicated implementation resources
CN103841134B (en) Based on API transmission, the method for receive information, apparatus and system
CN109246201B (en) Cloud resource delivery method, processor and storage medium
CN103384237A (en) Method for sharing IaaS cloud account, shared platform and network device
CN105991694B (en) A kind of method and apparatus realizing Distributed Services and calling
CN105099984A (en) Method and device for account intercommunication among APPs (applications)
US20230130682A1 (en) Techniques for accessing logical networks via a virtualized gateway
US10049078B1 (en) Accessing a memory location using a two-stage hash scheme
CN108243266A (en) Canonical name processing method, configuration method and device
CN110457629A (en) Permission processing, authority control method and device
CN109088812A (en) Information processing method, device, computer equipment and storage medium
CN106909325A (en) Daily record Method of printing and device and daily record print system
CN104426742A (en) Group access method, server, client-side, and system
CN110839007B (en) Cloud network security processing method and device and computer storage medium
CN103023684A (en) Method, device and system for network information management
CN106469091B (en) For distributing the method and apparatus of available area
CN107423136A (en) Resource instances distribution method and device
CN111241523B (en) Authentication processing method, device, equipment and storage medium
CN109479214B (en) Load balancing method and related device
CN107124310A (en) The collocation method and device of a kind of authority
CN110445858A (en) Server-side connects client approach and device, equipment, medium simultaneously

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220223

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right