CN109979109A - Processing method, processor, terminal and the storage medium of rental server - Google Patents
Processing method, processor, terminal and the storage medium of rental server Download PDFInfo
- Publication number
- CN109979109A CN109979109A CN201910190460.8A CN201910190460A CN109979109A CN 109979109 A CN109979109 A CN 109979109A CN 201910190460 A CN201910190460 A CN 201910190460A CN 109979109 A CN109979109 A CN 109979109A
- Authority
- CN
- China
- Prior art keywords
- subset
- resources
- tenant
- processor
- programming interface
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0645—Rental transactions; Leasing transactions
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/0042—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application discloses a kind of processing method of rental server, processor, terminal and storage mediums.This method comprises: marking off multiple service clearances in rental server, multiple service clearances are for loading the target plug-in that tenant custom-configures;At least one first application programming interface is configured for multiple service clearances, wherein for the first application programming interface for controlling the corresponding resource grade of tenant using service clearance, resource sub- grade is the processor resource of the server of tenant lease.By the application, the game for solving rental server type in the related technology lacks game component abundant and does not support user to upload customized plug-in unit and give other clothes main technical problem selected to use for taking main selection and the type game.
Description
Technical field
This application involves server leasing techniques fields, processing method, place in particular to a kind of rental server
Manage device, terminal and storage medium.
Background technique
In some sandbox game, freedom degree is high, has derived a variety of playing methods.Wherein lease clothes are that a kind of player can be by
The small game clothes of moon lease, player oneself lead as clothes, other regular players is invited to carry out game together.
As shown in Figure 1, in some leases clothes, for flexible deployment and management, underlying infrastructure using AWS,
The server of lease clothes is run in the bare machine Docker container in EC2, and player achieves and server-side file deposits in S3, data
Library uses Redis as cache layer using MySQL, and provides Manager component and contract for managing the dilatation of EC2
Hold and Uploader is achieved for player and uploaded.
Lease takes after main player buy and pay, so that it may create and manage oneself in the API that client passes through front end
Oneself lease takes, wherein a kind of existing newly-built process of lease clothes is as shown in Figure 1 and Figure 2.
But existing lease dress system mainly has the drawback that the game of rental server type lacks trip abundant
Play component does not support user to upload customized plug-in unit and take main selection use to other for taking main selection and the type game.
For above-mentioned technical problem in the related technology, currently no effective solution has been proposed.
Summary of the invention
The main purpose of the application is that providing a kind of processing method of rental server, processor, terminal and storage is situated between
Matter, with solve the game of rental server type in the related technology lack game component abundant for take main selection and such
Type game does not support user to upload customized plug-in unit and give other clothes main problem selected to use.
To achieve the goals above, according to the one aspect of the application, a kind of processing method of rental server is provided.
This method comprises: marking off multiple service clearances in rental server, the multiple service clearance is for loading tenant
The target plug-in custom-configured;At least one first application programming interface is configured for the multiple service clearance, wherein
First application programming interface uses the service clearance, institute for controlling the corresponding resource grade of the tenant
State the processor resource for the server that resource sub- grade is the tenant lease.
Optionally, for the multiple service clearance configure at least one first application programming interface include it is following at least
One of: a corresponding application programming is respectively configured for each service clearance in the part or all of service clearance and connects
Mouthful;A shared application programming interface is configured for the partly or entirely described service clearance.
Optionally, the processing method further include: the subset of resources of multiple processing grades is marked off from processor resource;For
The subset of resources of the multiple processing grade configures at least one second application programming interface, wherein uses in the lease
In the case that the subset of resources of the processor is successfully leased at family, second application programming interface is for calling the rent
The corresponding subset of resources of the user that rents.
Optionally, it in the case where the rental server is equipped with multiple processors, is marked off from the processor resource
The subset of resources of multiple processing grades includes: to configure corresponding processing grade for each processor, wherein processing grade packet
Containing a variety of;The processor resource is divided according to the processing grade for being the configuration of each processor, obtains the multiple place
Manage the subset of resources of grade.
Optionally, the processor resource is divided according to the processing grade for being the configuration of each processor, obtains institute
The subset of resources for stating multiple processing grades includes: to determine each processor according to the processing grade for being the configuration of each processor
Timeslice dividing frequency;The processor resource is divided according to the timeslice dividing frequency, obtains the multiple place
Manage the subset of resources of grade.
Optionally, by second application programming interface call the corresponding subset of resources of the tenant it
Before, the method also includes: at least one third application programming, which is configured, for the multiple subset of resources for handling grade connects
Mouthful, wherein the request letter that the third application programming interface is sent for the game client based on the tenant
Breath activates the subset of resources of the tenant request for the tenant, obtains being swashed for what the tenant called
Subset of resources living.
Optionally, the lease in the solicited message that the activation duration of the subset of resources is sent by the tenant
Duration determines.
Optionally, the method also includes at least one of: K8S system passes through first application programming interface
It controls subset of resources corresponding with the tenant and calls the target plug-in;K8S system passes through second application program
Programming interface is that the game client of the tenant calls the corresponding subset of resources of the tenant;K8S system passes through
The subset of resources solicited message that third application programming interface is sent based on the game client of the tenant, is described
Tenant activates the subset of resources of the tenant request.
To achieve the goals above, according to the another aspect of the application, a kind of storage medium, the storage medium are provided
Program including storage, wherein described program executes the processing method of rental server described in above-mentioned any one.
To achieve the goals above, according to the another aspect of the application, a kind of processor is provided, the processor is used for
Run program, wherein described program executes the processing method of rental server described in above-mentioned any one when running.
To achieve the goals above, according to the another aspect of the application, a kind of terminal is provided, comprising: one or more
Processor, memory, display device and one or more programs, wherein one or more of programs are stored in described
It in memory, and is configured as being executed by one or more of processors, one or more of programs include for holding
The processing method of rental server described in the above-mentioned any one of row.
To achieve the goals above, according to the another aspect of the application, provide a kind of electronic equipment, comprising: one or
Multiple processors, memory, display device and one or more programs, wherein one or more of programs are stored in
It in the memory, and is configured as being executed by one or more of processors, one or more of programs include using
In the processing method for executing rental server described in above-mentioned any one.
By the application, using following steps: marking off multiple service clearances, the multiple service in rental server
Space is for loading the target plug-in that the tenant custom-configures;For the multiple service clearance configure at least one
One application programming interface, wherein first application programming interface is for controlling the corresponding money of the tenant
Source sub- grade uses the service clearance, and the resource grade is the processor resource of the server of the tenant lease, solution
The game for the rental server type in the related technology of having determined lacks game component abundant for taking main selection and the type game
User is not supported to upload customized plug-in unit and give other clothes main technical problem selected to use.
That is, being marked off by the storage organization for redefining rental server for loading the customized plug-in unit of user
Service clearance, and the first application programming interface is configured for the service clearance, reached user first can be applied by this
Program Interfaces use the service clearance, and then call customized target plug-in, and the customized target plug-in of storage,
Enable the type game that multiplicity, user's Custom component abundant can be supported for taking the technical effect of main selection.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, the schematic reality of the application
Example and its explanation are applied for explaining the application, is not constituted an undue limitation on the present application.In the accompanying drawings:
Fig. 1 is the schematic diagram one that newly-built process is taken according to lease in the prior art;
Fig. 2 is the schematic diagram two that newly-built process is taken according to lease in the prior art;
Fig. 3 is the flow chart one according to the processing method of rental server provided by the embodiments of the present application;
Fig. 4 is the flowchart 2 according to the processing method of rental server provided by the embodiments of the present application;
Fig. 5 is a kind of schematic diagram of optional activation subset of resources process;
Fig. 6 is a kind of schematic diagram for the process that optional user enters game;
Fig. 7 is a kind of schematic diagram for optionally reactivating subset of resources process;
Fig. 8 is a kind of optionally to the schematic diagram of subset of resources Reconfiguration Procedure.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
According to an embodiment of the present application, a kind of processing method of rental server is provided.
Fig. 3 is the flow chart one according to the processing method of the rental server of the embodiment of the present application.As shown in figure 3, the party
Method the following steps are included:
Step S102, marks off multiple service clearances in rental server, and the multiple service clearance is rented for loading
The target plug-in that the user that rents custom-configures;
Step S104 configures at least one first application programming interface for the multiple service clearance, wherein described
First application programming interface uses the service clearance, the money for controlling the corresponding resource grade of the tenant
Source sub- grade is the processor resource of the server of the tenant lease.
The processing method of rental server provided by the embodiments of the present application, by marking off multiple clothes in rental server
Business space, the multiple service clearance is for loading the target plug-in that the tenant custom-configures;For the multiple clothes
Business at least one first application programming interface of space configuration, wherein first application programming interface is for controlling
The corresponding resource grade of the tenant uses the service clearance, and the resource grade is the clothes of the tenant lease
The processor resource of business device, the game for solving rental server type in the related technology lack game component abundant and lead for clothes
Selection and the type game do not support user to upload customized plug-in unit and give other clothes main technical problem selected to use.
That is, being marked off customized slotting for loading user by the storage object construction for redefining rental server
Part stores the service clearance memory space of the customized plug-in unit of user, and applies journey for service clearance memory space configuration first
Sequence programming interface, having reached user can call any calling/storage target plug-in to make by first application programming interface
With the service clearance, and then customized target plug-in is called, and the customized target plug-in of storage, enables the type game can
To support multiplicity, user's Custom component abundant for taking the technical effect of main selection.
It should be understood that above-mentioned service clearance be also used to store each server version of official, official it is each pre-
If plug-in unit and user achieve.At this point, the processing method of rental server provided by the embodiments of the present application, having also achieved order should
Type game can support multiple official's server versions (such as: multiple Server versions) come for taking main selection, and enable such
Type game can support multiplicity, game official abundant component come for the technical effect for taking main selection.
In a kind of optional example, it is above-mentioned multiple service clearances are marked off in the storage organization of rental server can be with
Be achieved in the following manner: redefine storage catalogue structure (such as: object storage service (S3) that AWS is provided is deposited
Store up bibliographic structure), make the storage catalogue structure redefined can store each server version of official, each preset plug-in of official,
Player's archive and the customized target plug-in of user etc..
It is above-mentioned to configure at least one first application program volume for the multiple service clearance in another optional example
Journey interface can also be able to reality so that the corresponding subset of resources of tenant is able to use the service clearance in the following manner
It is existing: the front end programming interface logic of reconfiguring application (such as: reconstruct API logic), fine-grained lease, which is provided, for user grasps
It instructs, so that user selects multiple official's server versions and plug-in unit (official's preset plug-in and the customized plug-in unit of user)
It selects.
Specifically, for each service clearance in the part or all of service clearance be respectively configured one it is corresponding using journey
Sequence programming interface;Or, configuring a shared application programming interface for the partly or entirely described service clearance.
In conclusion the embodiment of the present application realizes: the clothes master (tenant) of renting games server being enabled to have more
Right to choose, game play obtains extreme enrichment, attract more multiplayer become subset of resources tenant (rental server
Clothes master) technical effect.
Fig. 4 is the flowchart 2 according to the processing method of the rental server of the embodiment of the present application.As shown in figure 4, the party
Method is further comprising the steps of:
Step S202 marks off the subset of resources of multiple processing grades from the processor resource;
Step S204 configures at least one second application programming for the multiple subset of resources for handling grade and connects
Mouthful, wherein in the case where the tenant successfully leases the subset of resources of the processor, second application program is compiled
Journey interface is for calling the corresponding subset of resources of the tenant.
The processing method of rental server provided by the embodiments of the present application, it is multiple by being marked off from the processor resource
Handle the subset of resources of grade;At least one second application programming is configured for the multiple subset of resources for handling grade to connect
Mouthful, wherein in the case where the tenant successfully leases the subset of resources of the processor, second application program is compiled
Journey interface solves lease in the related technology and takes processor and use density for calling the corresponding subset of resources of the tenant
It is lower, the not high technical problem of resource utilization.
That is, the subset of resources of multiple processing grades is obtained, so as to user by advance dividing processor resource
When leasing processor resource, ready-portioned subset of resources can be called directly, and then reaches efficient and rational allocation processing device money
The technical effect in source, at this point, user can also arbitrarily handle the money of grade based on pre-set processing grade, flexible choice
Source subset.
In an optional example, in the case where the rental server is equipped with multiple processors, from the processing
The subset of resources that device resource marks off multiple processing grades can be achieved in the following manner: be matched for each processor
Set corresponding processing grade, wherein processing grade includes a variety of;According to the processing grade for the configuration of each processor to the place
Reason device resource is divided, and the subset of resources of the multiple processing grade is obtained.
Such as: there are processor A, B, C tri-, wherein A processor configuration processing grade a, B processor configuration processing etc.
Grade b, C processor configuration processing grade c.At this point, A processor resource is divided, the resource that multiple processing grades are a is obtained
Subset divides B processor resource, obtains the subset of resources that multiple processing grades are b, C processor resource is drawn
Point, obtain the subset of resources that multiple processing grades are c.
That is, by being arrived for different processor configuration processing grades convenient for the resource dispatching strategy of predefined processor
Efficient and high-density distribution processor resource technical effect is reached.It is to be mentioned that: the processing mode make it is currently processed
The utilization rate of device resource improves 80%.
In addition, Current resource subset does not set multiple processing grades, i.e. Current resource subset only has a standard class,
The embodiment of the present application allows the more flexible progress server rental operations of user by pre-defining multiple processing grades,
User experience has greatly been turned up.
It should be understood that sharing multiple subset of resources of a processor can be provided using sharing CPU timeslice
Source distribution, wherein the allocation plan of CPU time slice can be with are as follows: determined according to the processing grade for being the configuration of each processor each
The timeslice dividing frequency of processor;The processor resource is divided according to the timeslice dividing frequency, obtains institute
State the subset of resources of multiple processing grades.
Specifically, the processing grade according to processor configuration determines that the processor divides resulting subset of resources quantity, according to
Resulting subset of resources quantity is divided according to the processor, determines the timeslice dividing frequency of the processor, and then provide to processor
Source divides processing to obtain multiple subset of resources.At this point, the allocation plan of processor resource is optimised, user experience is more suitable
Freely.
It is being the trip of the tenant by second application programming interface in another optional example
Before the corresponding subset of resources of tenant described in client call of playing, the method also includes: for the multiple processing grade
Subset of resources configure at least one third application programming interface, wherein the third application programming interface is used for
The solicited message that game client based on the tenant is sent activates the tenant request for the tenant
Subset of resources, obtain for the tenant call the subset of resources being activated.
It should be understood that in the solicited message that the activation duration of the subset of resources is sent by the tenant
Lease duration determine.
For example: if party A-subscriber will lease the subset of resources that processing grade is a, at this point, party A-subscriber is sent out by client
Solicited message is sent, to lease and (that is: activate) subset of resources that processing grade is a.Hereafter, party A-subscriber logs on resource
When collection, does not then have to re-start and leases/open clothes operation, avoid user's unnecessary waiting time, improve user experience,
Realize the subset of resources (lease clothes) being leased for technical effect continuously available in lease duration.
Finally, the processing method of rental server provided by the embodiments of the present application is managed by K8S system
Operation, that is, the processing method of rental server provided by the embodiments of the present application is that K8S system is enabled to apply by described first
Program Interfaces control subset of resources corresponding with the tenant and call the target plug-in;The embodiment of the present application provides
Rental server processing method enable K8S system by second application programming interface be the tenant
Game client calls the corresponding subset of resources of the tenant;The processing side of rental server provided by the embodiments of the present application
Method is resource for enabling K8S system send by third application programming interface based on the game client of the tenant
Collect solicited message, the subset of resources of the tenant request is activated for the tenant.
It should be understood that K8S cluster itself is exactly a resource pool, if being managed operation using K8S system,
The then automatic telescopic without voluntarily realization computing resource, and framework can be also simplified.
That is, the layout of processor resource and scheduling are managed using K8S system, the activation of subset of resources, start and stop, tune
With, destroy can be handled by K8S systematic difference routine interface (API).Its specific manifestation is as follows:
Shown in application programming interfaces (API) are listed as follows:
Query resource availability GET/worlds/availability
Apply for World server POST/worlds
Initialize World server POST/worlds/ { world_id }/initialize
Open world PUT/worlds/ { world_id }/open
Close world PUT/worlds/ { world_id }/close
Start game garment PUT/worlds/ { world_id }/start
Stop game garment PUT/worlds/ { world_id }/stop
Inquire game garment information GET/worlds/ { world_id }/info
Modify World server PUT/worlds/ { world_id }/setting
Player achieves PUT/worlds/ { world_id }/save
It updates World and achieves PUT/worlds/ { world_id }/update
It deletes World and achieves DELETE/worlds/ { world_id }/archive
Inquire online players number GET/worlds/ { world_id }/live/players/count.
Wherein, user is in the process of client initial activation subset of resources (opening up new demand servicing device) as shown in figure 5, specifically such as
Under:
Player initiates to open lease clothes request to Web service end on starter;
Web service end takes front-end A PI to lease and initiates creation lease clothes request;
After creating successfully, player selects version, component, plug-in unit etc. on starter, starts to initialize game garment;
After initializing successfully, player selects to open lease clothes.
Wherein, user enters the process of game as shown in fig. 6, specific as follows on the client:
Player clicks to enter lease on starter and takes game;
Backstage starts to query going game list of players, judges whether player can enter;
If player can enter, background query game garment link information;
After starter takes link information, start local game client, subsequently into the game garment.
Wherein, as shown in fig. 7, subset of resources (lease clothes) can be closed after expiring by system, if user is in subset of resources
It continues to pay dues again after closing, then reactivates the original subset of resources of the user (lease clothes) at this time, detailed process is as follows:
Starter can inquire the lease to Web service end first and take original configuration information;
Starter initiates reconstruction request according to these configuration informations, to server-side;
Lease dress system can take the lease and reinitialize;
Player can apply again uploading to the archive of oneself in game garment;
After everything is ready, player can open original game garment;
The information such as the archive of the game garment can be done again primary backup by lease dress system, pass to S3;
It is then turned on game, player is waited to enter.
Wherein, as shown in figure 8, the processing method of rental server provided by the embodiments of the present application also allows to take master to this money
Source subset (lease clothes) is reset, and process is as follows:
First game garment is stopped;
The component list is currently available that server-side inquiry;
Clothes are main to be changed in starter selection other assemblies;
After dress system change is leased in rear end, game can be started, player is waited to enter.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The processing method of the existing rental server.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation
The processing method of rental server described in Shi Zhihang.
The embodiment of the invention provides a kind of terminals, comprising: one or more processors, memory, display device and
One or more programs, wherein one or more of programs are stored in the memory, and are configured as by described
One or more processors execute, and one or more of programs include for executing lease service described in above-mentioned any one
The processing method of device.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of when executing program and mark off multiple clothes in rental server
Business space, the multiple service clearance is for loading the target plug-in that tenant custom-configures;It is empty for the multiple service
Between configure at least one first application programming interface, wherein first application programming interface is described for controlling
The corresponding resource grade of tenant uses the service clearance, and the resource grade is the server of the tenant lease
Processor resource.
Optionally, for the multiple service clearance configure at least one first application programming interface include it is following at least
One of: a corresponding application programming is respectively configured for each service clearance in the part or all of service clearance and connects
Mouthful;A shared application programming interface is configured for the partly or entirely described service clearance.
Optionally, the processing method further include: the subset of resources of multiple processing grades is marked off from processor resource;For
The subset of resources of the multiple processing grade configures at least one second application programming interface, wherein uses in the lease
In the case that the subset of resources of the processor is successfully leased at family, second application programming interface is for calling the rent
The corresponding subset of resources of the user that rents.
Optionally, it in the case where the rental server is equipped with multiple processors, is marked off from the processor resource
The subset of resources of multiple processing grades includes: to configure corresponding processing grade for each processor, wherein processing grade packet
Containing a variety of;The processor resource is divided according to the processing grade for being the configuration of each processor, obtains the multiple place
Manage the subset of resources of grade.
Optionally, the processor resource is divided according to the processing grade for being the configuration of each processor, obtains institute
The subset of resources for stating multiple processing grades includes: to determine each processor according to the processing grade for being the configuration of each processor
Timeslice dividing frequency;The processor resource is divided according to the timeslice dividing frequency, obtains the multiple place
Manage the subset of resources of grade.
Optionally, by second application programming interface call the corresponding subset of resources of the tenant it
Before, the method also includes: at least one third application programming, which is configured, for the multiple subset of resources for handling grade connects
Mouthful, wherein the request letter that the third application programming interface is sent for the game client based on the tenant
Breath activates the subset of resources of the tenant request for the tenant, obtains being swashed for what the tenant called
Subset of resources living.
Optionally, the lease in the solicited message that the activation duration of the subset of resources is sent by the tenant
Duration determines.
Optionally, the method also includes at least one of: K8S system passes through first application programming interface
It controls subset of resources corresponding with the tenant and calls the target plug-in;K8S system passes through second application program
Programming interface is that the game client of the tenant calls the corresponding subset of resources of the tenant;K8S system passes through
The subset of resources solicited message that third application programming interface is sent based on the game client of the tenant, is described
Tenant activates the subset of resources of the tenant request.Equipment herein can be server, PC, PAD, mobile phone
Deng.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step: marking off multiple service clearances in rental server, and the multiple service clearance is used
In the target plug-in that loading tenant custom-configures;At least one first application program is configured for the multiple service clearance
Programming interface, wherein first application programming interface is used for controlling the corresponding resource grade of the tenant
The service clearance, the resource grade are the processor resource of the server of the tenant lease.
Optionally, for the multiple service clearance configure at least one first application programming interface include it is following at least
One of: a corresponding application programming is respectively configured for each service clearance in the part or all of service clearance and connects
Mouthful;A shared application programming interface is configured for the partly or entirely described service clearance.
Optionally, the processing method further include: the subset of resources of multiple processing grades is marked off from processor resource;For
The subset of resources of the multiple processing grade configures at least one second application programming interface, wherein uses in the lease
In the case that the subset of resources of the processor is successfully leased at family, second application programming interface is for calling the rent
The corresponding subset of resources of the user that rents.
Optionally, it in the case where the rental server is equipped with multiple processors, is marked off from the processor resource
The subset of resources of multiple processing grades includes: to configure corresponding processing grade for each processor, wherein processing grade packet
Containing a variety of;The processor resource is divided according to the processing grade for being the configuration of each processor, obtains the multiple place
Manage the subset of resources of grade.
Optionally, the processor resource is divided according to the processing grade for being the configuration of each processor, obtains institute
The subset of resources for stating multiple processing grades includes: to determine each processor according to the processing grade for being the configuration of each processor
Timeslice dividing frequency;The processor resource is divided according to the timeslice dividing frequency, obtains the multiple place
Manage the subset of resources of grade.
Optionally, by second application programming interface call the corresponding subset of resources of the tenant it
Before, the method also includes: at least one third application programming, which is configured, for the multiple subset of resources for handling grade connects
Mouthful, wherein the request letter that the third application programming interface is sent for the game client based on the tenant
Breath activates the subset of resources of the tenant request for the tenant, obtains being swashed for what the tenant called
Subset of resources living.
Optionally, the lease in the solicited message that the activation duration of the subset of resources is sent by the tenant
Duration determines.
Optionally, the method also includes at least one of: K8S system passes through first application programming interface
It controls subset of resources corresponding with the tenant and calls the target plug-in;K8S system passes through second application program
Programming interface is that the game client of the tenant calls the corresponding subset of resources of the tenant;K8S system passes through
The subset of resources solicited message that third application programming interface is sent based on the game client of the tenant, is described
Tenant activates the subset of resources of the tenant request.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (12)
1. a kind of processing method of rental server, which is characterized in that the treating method comprises:
Multiple service clearances are marked off in rental server, tenant is customized to match the multiple service clearance for loading
The target plug-in set;
At least one first application programming interface is configured for the multiple service clearance, wherein first application program
For programming interface for controlling the corresponding resource grade of the tenant using the service clearance, the resource grade is described
The processor resource of the server of tenant lease.
2. first being answered the method according to claim 1, wherein configuring at least one for the multiple service clearance
Include at least one of with Program Interfaces:
A corresponding application programming interface is respectively configured for each service clearance in the part or all of service clearance;
A shared application programming interface is configured for the partly or entirely described service clearance.
3. the method according to claim 1, wherein the processing method further include:
The subset of resources of multiple processing grades is marked off from processor resource;
Subset of resources for the multiple processing grade configures at least one second application programming interface, wherein described
In the case that tenant successfully leases the subset of resources of the processor, second application programming interface is for calling
The corresponding subset of resources of the tenant.
4. according to the method described in claim 3, it is characterized in that, the case where the rental server is equipped with multiple processors
Under, the subset of resources for marking off multiple processing grades from the processor resource includes:
Corresponding processing grade is configured for each processor, wherein processing grade includes a variety of;
The processor resource is divided according to the processing grade for being the configuration of each processor, obtains the multiple processing etc.
The subset of resources of grade.
5. according to the method described in claim 4, it is characterized in that, according to being the processing grade of each processor configuration to described
Processor resource is divided, and the subset of resources for obtaining the multiple processing grade includes:
According to the processing grade for being the configuration of each processor, the timeslice dividing frequency of each processor is determined;
The processor resource is divided according to the timeslice dividing frequency, obtains the resource of the multiple processing grade
Subset.
6. according to the method described in claim 3, it is characterized in that, calling institute by second application programming interface
Before stating the corresponding subset of resources of tenant, the method also includes:
Subset of resources for the multiple processing grade configures at least one third application programming interface, wherein described the
The solicited message that three application programming interfaces are sent for the game client based on the tenant is used for the lease
The subset of resources of the tenant request is activated at family, obtains the subset of resources being activated called for the tenant.
7. according to the method described in claim 6, it is characterized in that, the activation duration of the subset of resources is by the tenant
The lease duration in the solicited message sent determines.
8. according to the method described in claim 6, it is characterized in that, the method also includes at least one of:
K8S system controls subset of resources corresponding with the tenant by first application programming interface and calls institute
State target plug-in;
K8S system calls the lease by the game client that second application programming interface is the tenant
The corresponding subset of resources of user;
The subset of resources that K8S system is sent by third application programming interface based on the game client of the tenant
Solicited message activates the subset of resources of the tenant request for the tenant.
9. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 8 described in rental server processing method.
10. a kind of terminal characterized by comprising one or more processors, memory, display device and one or more
A program, wherein one or more of programs are stored in the memory, and are configured as by one or more
A processor executes, and one or more of programs include for lease clothes described in any one of perform claim requirement 1 to 8
The processing method of business device.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution
Benefit require any one of 1 to 8 described in rental server processing method.
12. a kind of electronic equipment characterized by comprising one or more processors, memory, display device and one
Or multiple programs, wherein one or more of programs are stored in the memory, and are configured as by one
Or multiple processors execute, one or more of programs include for rent described in any one of perform claim requirement 1 to 8
It rents the processing method of server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910190460.8A CN109979109B (en) | 2019-03-13 | 2019-03-13 | Rental server processing method, processor, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910190460.8A CN109979109B (en) | 2019-03-13 | 2019-03-13 | Rental server processing method, processor, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109979109A true CN109979109A (en) | 2019-07-05 |
CN109979109B CN109979109B (en) | 2021-04-27 |
Family
ID=67078751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910190460.8A Active CN109979109B (en) | 2019-03-13 | 2019-03-13 | Rental server processing method, processor, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109979109B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101410839A (en) * | 2006-04-12 | 2009-04-15 | 国际商业机器公司 | Method and system for adjusting environment settings to the capabilities of a client device |
CN102279711A (en) * | 2011-08-09 | 2011-12-14 | 青岛海信网络科技股份有限公司 | Plug-in-based real-time data storage method and device |
CN102365630A (en) * | 2009-01-28 | 2012-02-29 | 海德沃特合作I有限公司 | Device assisted service profile management with user preference, adaptive policy, network neutrality, and user privacy |
CN103514563A (en) * | 2012-06-22 | 2014-01-15 | 国际商业机器公司 | Method and system for consumption based digital content rental expiration |
US20140207628A1 (en) * | 2013-01-18 | 2014-07-24 | Loop Commerce, Inc. | Gift transaction system architecture |
CN104052796A (en) * | 2014-04-23 | 2014-09-17 | 小米科技有限责任公司 | Plug-in processing method, device, system and terminal |
US20160100053A1 (en) * | 2014-10-06 | 2016-04-07 | At&T Mobility Ii Llc | Multiple Persona Support for Communications |
CN106462472A (en) * | 2014-06-23 | 2017-02-22 | 微软技术许可有限责任公司 | Acquiring resource lease using multiple lease servers |
CN108111629A (en) * | 2018-01-19 | 2018-06-01 | 京东方科技集团股份有限公司 | Application Programming Interface service unit and Application Programming Interface service system |
CN109045707A (en) * | 2018-06-27 | 2018-12-21 | 深圳开黑科技有限公司 | It is a kind of to accompany technical ability creation method, equipment and the system for playing platform based on game |
-
2019
- 2019-03-13 CN CN201910190460.8A patent/CN109979109B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101410839A (en) * | 2006-04-12 | 2009-04-15 | 国际商业机器公司 | Method and system for adjusting environment settings to the capabilities of a client device |
CN102365630A (en) * | 2009-01-28 | 2012-02-29 | 海德沃特合作I有限公司 | Device assisted service profile management with user preference, adaptive policy, network neutrality, and user privacy |
CN107425988A (en) * | 2009-01-28 | 2017-12-01 | 海德沃特研究有限责任公司 | Roaming service network and stacking network |
CN102279711A (en) * | 2011-08-09 | 2011-12-14 | 青岛海信网络科技股份有限公司 | Plug-in-based real-time data storage method and device |
CN103514563A (en) * | 2012-06-22 | 2014-01-15 | 国际商业机器公司 | Method and system for consumption based digital content rental expiration |
US20140207628A1 (en) * | 2013-01-18 | 2014-07-24 | Loop Commerce, Inc. | Gift transaction system architecture |
CN104052796A (en) * | 2014-04-23 | 2014-09-17 | 小米科技有限责任公司 | Plug-in processing method, device, system and terminal |
CN106462472A (en) * | 2014-06-23 | 2017-02-22 | 微软技术许可有限责任公司 | Acquiring resource lease using multiple lease servers |
US20160100053A1 (en) * | 2014-10-06 | 2016-04-07 | At&T Mobility Ii Llc | Multiple Persona Support for Communications |
CN108111629A (en) * | 2018-01-19 | 2018-06-01 | 京东方科技集团股份有限公司 | Application Programming Interface service unit and Application Programming Interface service system |
CN109045707A (en) * | 2018-06-27 | 2018-12-21 | 深圳开黑科技有限公司 | It is a kind of to accompany technical ability creation method, equipment and the system for playing platform based on game |
Also Published As
Publication number | Publication date |
---|---|
CN109979109B (en) | 2021-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107070705B (en) | A kind of method of combination of cloud resource | |
CN105812171B (en) | A kind of the network function VNF control method and equipment of virtualization | |
CN110399307A (en) | A kind of test method, test platform and destination server | |
US20170083292A1 (en) | Visual content development | |
CN102725733A (en) | Porting virtual machine images between platforms | |
CN106548262A (en) | For the dispatching method of the resource of process task, device and system | |
CN107077385B (en) | For reducing system, method and the storage medium of calculated examples starting time | |
CN103020223B (en) | File-sharing disposal route, device and system | |
CN109067827A (en) | Based on Kubernetes and OpenStack container cloud platform multi-tenant construction method, medium, equipment | |
CN107066242A (en) | Determine the method and system of the mark of software in software container | |
CN111027921A (en) | Business processing method and device, electronic equipment and storage medium | |
CN107222753A (en) | Virtual present loading method and device | |
CN104160374A (en) | Cloud bursting and management of cloud-bursted applications | |
TWI781535B (en) | Resource library management system, resource library management method and program product | |
CN108399101A (en) | The methods, devices and systems of scheduling of resource | |
CN106293753A (en) | The development approach of editing machine and device, edit methods and editing machine | |
WO2023045467A1 (en) | Container cpu resource scheduling and isolation method and apparatus, and storage medium and electronic device | |
CN104468759B (en) | The method and apparatus that application migration is realized in PaaS platform | |
CN108351810A (en) | Extension for virtualizing graphics processing | |
CN112099917B (en) | Regulation and control system containerized application operation management method, system, equipment and medium | |
CN109032820A (en) | The compatible processing method and processing device of application version | |
CN110490459A (en) | A kind of protocol managerial approach and device | |
CN105391774B (en) | Resource request method and device based on amazon network server | |
CN106897115A (en) | SaaS software deployments method and device under a kind of cloud environment | |
US20220300296A1 (en) | Method and apparatus for constructing a network service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |