CN109173246B - The method and system of auto-erecting game server - Google Patents

The method and system of auto-erecting game server Download PDF

Info

Publication number
CN109173246B
CN109173246B CN201810974059.9A CN201810974059A CN109173246B CN 109173246 B CN109173246 B CN 109173246B CN 201810974059 A CN201810974059 A CN 201810974059A CN 109173246 B CN109173246 B CN 109173246B
Authority
CN
China
Prior art keywords
host
game server
game
idle
erecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810974059.9A
Other languages
Chinese (zh)
Other versions
CN109173246A (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.)
Friendship time Technology Co.,Ltd.
Original Assignee
Suzhou Playing Friends Era Polytron Technologies Inc
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 Suzhou Playing Friends Era Polytron Technologies Inc filed Critical Suzhou Playing Friends Era Polytron Technologies Inc
Priority to CN201810974059.9A priority Critical patent/CN109173246B/en
Publication of CN109173246A publication Critical patent/CN109173246A/en
Application granted granted Critical
Publication of CN109173246B publication Critical patent/CN109173246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • A63F13/358Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • A63F2300/531Server assignment

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of method and system of auto-erecting game server, method is the following steps are included: obtain the quantity for the server that this needs is set up;Judge whether host resource pond is sufficient;When the host resource pond abundance, then host most idle in resource pool is obtained;Judge whether the most idle host is already allocated to a game server;When the most idle host is not allocated to a upper game server, then predistribution queue is added in the most idle host;Whether the game server that this described needs of judgement are set up all distributes;It is assigned when the game server that this described needs are set up is whole, then exports the queue distributed and end.Thus, it is possible to reduce error rate, and one key of resource allocation process generates, and solves the problems, such as inefficiency.

Description

The method and system of auto-erecting game server
Technical field
The present invention relates to game on line server technology field more particularly to a kind of methods of auto-erecting game server And system.
Background technique
With the nearest explosive increase of game on line, some games on line have been undergone very high for their server Requirement.Many gaming network companies have initially disposed many servers fully thus just to deposit for the Demand and service The problem of being managed to server resource.In the prior art, Saltstack is the tool of a bulk management host, The batch for realizing order issues and file transmitting function.But it logs in Verification System with system wide of the mark, right of execution Limiting ambassador itself just becomes a Backdoor Software.And in the case where certification error, it may appear that the problem of leakage executes, And do not prompt, many drawbacks make its use and it is unfriendly.In addition, being all by artificial when realizing that game garment is set up Distribution port, perform script pass the method for ginseng to realize, the assets information maintenance of game garment is leaned on manually entirely, inefficiency thus And error rate is high.
Summary of the invention
The present invention is directed to above-mentioned existing problem, a kind of method for proposing auto-erecting game server.
According to an aspect of the present invention, the method for auto-erecting game server is provided, comprising the following steps:
Obtain the quantity for the server that this needs is set up;
Judge whether host resource pond is sufficient;
When the host resource pond abundance, then host most idle in resource pool is obtained;
Judge whether the most idle host is already allocated to a game server;
When the most idle host is not allocated to a upper game server, then the most idle host is added pre- Distribution queue;
Whether the game server that this described needs of judgement are set up all distributes;
It is assigned when the game server that this described needs are set up is whole, then exports the queue distributed and end.
In some embodiments, when judging result is that the host resource pond is inadequate, then suggestion content is exported simultaneously Terminate.
In some embodiments, when judging result is that the most idle host is already allocated to a upper game services Device, then the most idle host is temporarily rejected from the resource pool, chooses most idle host again and predistribution team is added Column.
In some embodiments, host resource pond whether Chong Zu condition are as follows:: setting up on every host of setting The upper limit value of the quantity of server;Determine that the quantity summation for the game server that can be set up on All hosts is less than or equal to this The quantity for the game server for needing to set up.
In some embodiments, most idle host is the host of the game server minimum number set up.
In some embodiments, queue refers to: the JSON data of maintenance game garment and the host corresponding relationship distributed Structure.
In some embodiments, the step of predistribution queue is added refers to: every sub-distribution is by game server and phase Corresponding host id is added in a JSON data structure.
In some embodiments, when all game garment weapons are not fully assigned, then continue to distribute next group of game Server, and reacquire host most idle in resource pool.
According to another aspect of the present invention, a kind of game server resource construction system is provided, comprising:
Frame takes quantity and monitors module, needs to set up the quantity of game server for monitoring;
Resource load judgment module, for judging whether the host in host resource pond is sufficient;
Source obtaining module, for obtaining host most idle in resource pool;
It is adjacent to take judgment module, for judging whether most free host distributes to a upper game server;
Asynchronous buffer module, for calculating predistribution game server;
Distribution terminates judgment module, for judging whether all game servers are all assigned;
Output module, for exporting the game garment queue distributed.
In some embodiments, host resource pond whether Chong Zu condition are as follows: setting up on every host of setting The upper limit value of the quantity of server;Determine that the quantity summation for the game server that can be set up on All hosts is less than or equal to this The quantity for the game server for needing to set up, most idle host are the host of the game garment minimum number set up.
Above-mentioned technical proposal of the invention has the advantage that compared with the existing technology
The method and system of auto-erecting game server provided by the invention, it is only necessary to which the quantity that input needs frame to take is then May be implemented the automatic management of game server, i.e., the process of manual allocation resource in need all automate, to drop Low error rate, and one key of resource allocation process generates, and solves the problems, such as inefficiency.
Detailed description of the invention
Fig. 1 is the logical construction schematic diagram of the method for auto-erecting game server of the present invention;
Fig. 2 is the flow diagram of the method for auto-erecting game server of the present invention;
The flow diagram of Fig. 3 auto-erecting game server system of the present invention;
Fig. 4 is a kind of logic judgment figure of embodiment of the method for auto-erecting game server of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Embodiment 1.
Present invention generally provides a kind of methods of auto-erecting game server, as shown in Figure 1.The following steps are included:
S11: by the quantity 3 for the server that administrative staff need to set up from interface input.
S12: judging whether host resource pond is sufficient, and when determining that host resource is inadequate, output host resource is insufficient Suggestion content simultaneously terminates.
Embodiment 2.
Present invention generally provides a kind of methods of auto-erecting game server.As shown in Fig. 1,2 and Fig. 4, including it is following Step:
S11: when the quantity 3 for needing frame to take from interface input by administrative staff, the then clothes that this available needs are set up The quantity of business device is 3.
S12: judge host resource pond abundance:
When specifically judging whether host resource pond is sufficient: the load of all available hosts in crawl resource pool chooses one It criticizes the lower host of load and distributes idle port.
For example, it is desired to which the quantity of frame clothes is 3, resource pool has the host of 100 operations, and every can only set up 4 game garments Business device, has 80 hosts to set up 4 game garments at present, and there are also 20 hosts all not to reach upper limit value, it is determined that main Machine resource pool is sufficient.
S13: host most idle in resource pool is obtained;
For example, in above-mentioned steps, 3 game garments have been set up in 20 hosts on other 17 platforms, remaining 3 points 1,2 and 2 game server has not been set up, wherein this 3 hosts are then followed successively by the most idle host.
S14: determine that the host is not allocated to a game server;
S15: predistribution queue is added;
Wherein, queue refers to: the JSON data structure of maintenance game garment and the host corresponding relationship distributed.Every sub-distribution Game server and corresponding host id are added in a JSON data structure.
S16: determine that all game garments all distribute;
S17: the queue distributed and end are exported.
Specific as shown in Figure 1 and Figure 4, it is 3 that administrative staff, which input the game server quantity for needing to set up from interface, respectively Number is 1001,1002 and 1003.The game server upper limit set up on every host is 4.By the master from resource abundance 3, most idle host is confirmed and obtained in machine, and number is respectively as follows: 01,02 and 03, wherein the game run on No. 01 host Clothes are 2, and the game garment run on No. 02 host is 1, and the game garment run on No. 03 host is 3.When giving No. 1001 It when game garment is allocated host, is preferentially assigned on No. 02 most idle host, game garment quantity increases on No. 02 host at this time It is added to 2.When to give No. 1002 game garments to be allocated host, then obtaining the most idle host is 01, determines No. 01 host A game garment is not distributed to, so No. 1002 game garments are then assigned on No. 01 host, at this time on No. 01 host Game server quantity is 3.When to give No. 1003 game servers to be allocated host, most idle host is only left No. 02 Host, and No. 02 host is not allocated to a game server 1002, i.e., No. 1001 game services run on the host Device and No. 1003 game servers are non-conterminous, and therefore, No. 1003 game servers can distribute to No. 02 host.At this point, all Host be all added predistribution queue, when all game garments all distribute, all game garments are all distributed, then Export the queue distributed and end.
Embodiment 3
S11: being needed to set up the quantity 3 of game server by administrative staff from interface input, then this available needs The quantity of the game server of erection is 3.
S12: host resource pond abundance is determined:
S13: host most idle in resource pool is obtained;
S14: determining that the host is already allocated to a game garment, then temporarily reject the host from resource pool, weight It is new to choose most idle host;
S15: predistribution queue is added;
S16: determine that all game garments all distribute;
S17: the queue distributed and end are exported.
Specific as shown in Figure 1 and Figure 4, it is 3 that administrative staff, which input the game server quantity for needing to set up from interface, respectively Number is 1001,1002 and 1003.The game server upper limit set up on every host is 4.By the master from resource abundance 3, most idle host is confirmed and obtained in machine, and number is respectively as follows: 01,02 and 03, wherein the game run on No. 01 host Clothes are 2, and the game garment run on No. 02 host is 1, and the game garment run on No. 03 host is 3.When giving No. 1001 It when game garment is allocated host, is preferentially assigned on No. 02 most idle host, game garment quantity increases on No. 02 host at this time It is added to 2.When to give No. 1002 game garments to be allocated host, then obtaining the most idle host is No. 01 and No. 02, thereon The quantity of game server is 2.Wherein, No. 02 host is determined as being already allocated to a game server 1001, then will No. 02 host is temporarily rejected from the resource pool, is chosen most idle No. 01 host of host from new, is determined No. 01 host not A game garment is distributed to, so No. 1002 game garments are then assigned on No. 01 host, the game on No. 01 host at this time Number of servers is 3.When to give No. 1003 game servers to be allocated host, most idle host is only left No. 02 master Machine, and determine that No. 02 host is not allocated to a game server 1002, i.e., No. 1001 game garments run on the host Business device and No. 1003 game servers are non-conterminous, and therefore, No. 1003 game servers can distribute to No. 02 host.At this point, institute Predistribution queue is all added in some hosts, and when all game garments all distribute, all game garments are all distributed, Then export the queue distributed and end.
Embodiment 4
Present embodiments provide the system for realizing the method for the auto-erecting game services module in above-described embodiment.Such as figure Shown in 3, which includes that frame takes quantity and monitors module 101, needs to set up the quantity of server for monitor, resource load judges Module 102, for judging whether the host in host resource pond is sufficient;Source obtaining module 103, for obtaining in resource pool most Idle host;It is adjacent to take judgment module 104, for judging whether host distributes to a upper game server;Asynchronous buffer Module 105, for calculating predistribution game server;Distribution terminates judgment module 106, for judging that all game servers are No all distribution;Output module 107, for exporting the game garment queue distributed.
Administrative staff are 3 from the quantity that interface input needs frame to take, and frame, which takes quantity and monitors module 101 and monitor, needs frame to take The quantity of business device is 3, and number is 1001,1002 and 1003 respectively.Resource load judgment module 102 judges whether host is sufficient. By source obtaining module 103, by 3, most idle host, number difference are confirmed and obtained from the host of resource abundance Are as follows: 01,02 and 03, wherein the game server run on No. 01 host is 2, the game server run on No. 02 host It is 1, the game server run on No. 03 host is 3.When to give No. 1001 game servers to be allocated host, lead to It crosses the adjacent judgment module 104 that takes and judges whether above-mentioned 3 hosts distribute to adjacent game server, be then preferentially assigned to No. 02 master On machine, game server quantity is 2 on No. 02 host at this time.When to give No. 1002 game servers to be allocated host, together Obtaining most idle host by source obtaining module 103 to sample is No. 01 and No. 02, is judged by the adjacent judgment module 104 that takes Know and be already allocated to 1001 game servers adjacent with No. 1002 game garments in No. 02 host, then by No. 02 host temporarily from money Source is rejected in pond, and choosing most idle host again is No. 01 host, so No. 1002 game servers are then assigned to No. 01 master On machine, the game server quantity on No. 01 host is 3 at this time.When to give No. 1003 game servers to be allocated host, Most idle No. 02 host of host is obtained by source obtaining module 103, judges to learn this No. 02 by the adjacent judgment module 104 that takes No. 1001 game servers and No. 1003 game garments run on host are non-conterminous, and therefore, No. 1003 game garments can be distributed to No. 02 host.Asynchronous buffer module 105 is all added in all hosts, after confirming that all game garments all distribute, passes through Distribution terminates judgment module 106 and terminates distribution, exports the queue distributed and end by output module 107.
The method and system of above-mentioned auto-erecting game server, are packaged based on saltstack, on its basis On done automation node distribution program and close friend user interface.It is operated after encapsulation by web page, it can be right It executes order and carries out stringent standardized management, avoids the execution of dangerous order.By encapsulation, method of the invention is utilized It constructs standard set game server and sets up task, and task is taken to large batch of frame and has done queue management, to prevent from transporting Row load too high and there is abnormal situation.It sets up all implementation procedures of game garment and has all carried out condition managing, all execute is appointed Business is traceable, after mission dispatching, the execution state of task can be clearly seen that by web page, is found at the first time Execute the node of failure, and repeatable execution.Simultaneously, it is only necessary to which game server then may be implemented in the quantity that input needs frame to take Automatic management, i.e., the process of manual allocation resource in need all automate, to reduce error rate, and resource point It is generated with one key of process, solves the problems, such as inefficiency.
Queue refers to: the JSON data structure of maintenance game garment and the host corresponding relationship distributed.Every sub-distribution will be swum Play server and corresponding host id are added in a JSON data structure.
Above-described is only some embodiments of the present invention.For those of ordinary skill in the art, not Under the premise of being detached from the invention design, various modifications and improvements can be made, these belong to protection model of the invention It encloses.

Claims (10)

1. the method for auto-erecting game server, which comprises the following steps:
Obtain the quantity for the server that this needs is set up;
Judge whether host resource pond is sufficient;
When the host resource pond abundance, then host most idle in resource pool is obtained;
Judge whether the most idle host is already allocated to a game server;
When the most idle host is not allocated to a upper game server, then predistribution is added in the most idle host Queue;
Whether the game server that this described needs of judgement are set up all distributes;
It is assigned when the game server that this described needs are set up is whole, then exports the queue distributed and end.
2. the method for auto-erecting game server according to claim 1, which is characterized in that when judging result is described When host resource pond is inadequate, then exports suggestion content and terminate.
3. the method for auto-erecting game server according to claim 1, which is characterized in that
Most idle host described in being when judging result is already allocated to a upper game server, then the most idle host It is temporarily rejected from the resource pool, chooses most idle host again and predistribution queue is added.
4. the method for auto-erecting game server according to claim 1, which is characterized in that the host resource pond is The condition of no abundance are as follows:
The upper limit value of the quantity of the server set up on every host is set;
Determine that the quantity summation for the game server that can be set up on All hosts is less than or equal to this game garment for needing to set up The quantity of business device.
5. the method for auto-erecting game server according to claim 1, which is characterized in that the most idle host For the host of the game server minimum number set up.
6. the method for auto-erecting game server according to claim 1, which is characterized in that the queue refers to: dimension The JSON data structure of shield game garment and the host corresponding relationship distributed.
7. the method for auto-erecting game server according to claim 1, which is characterized in that the addition pre-allocates team The step of column refers to: game server and corresponding host id are added in a JSON data structure by every sub-distribution.
8. the method for auto-erecting game server according to claim 1, which is characterized in that when judging result is to have trip Play server is not fully assigned, then continues to distribute next group of game server, and reacquire most idle in resource pool Host.
9. a kind of game server resource construction system characterized by comprising
Frame takes quantity and monitors module, needs to set up the quantity of game server for monitoring;
Resource load judgment module, for judging whether the host in host resource pond is sufficient;
Source obtaining module, for obtaining host most idle in resource pool;
It is adjacent to take judgment module, for judging whether most free host distributes to a upper game server;
Asynchronous buffer module, for calculating predistribution game server;
Distribution terminates judgment module, for judging whether all game servers are all assigned;
Output module, for exporting the game garment queue distributed.
10. game server resource construction system according to claim 9, which is characterized in that the host resource pond is The condition of no abundance are as follows:
The upper limit value of the quantity of the server set up on every host is set;
Determine that the quantity summation for the game server that can be set up on All hosts is less than or equal to this game garment for needing to set up The quantity of business device;
The most idle host are as follows: the host of the game garment minimum number set up.
CN201810974059.9A 2018-08-24 2018-08-24 The method and system of auto-erecting game server Active CN109173246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810974059.9A CN109173246B (en) 2018-08-24 2018-08-24 The method and system of auto-erecting game server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810974059.9A CN109173246B (en) 2018-08-24 2018-08-24 The method and system of auto-erecting game server

Publications (2)

Publication Number Publication Date
CN109173246A CN109173246A (en) 2019-01-11
CN109173246B true CN109173246B (en) 2019-06-28

Family

ID=64919790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810974059.9A Active CN109173246B (en) 2018-08-24 2018-08-24 The method and system of auto-erecting game server

Country Status (1)

Country Link
CN (1) CN109173246B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260713A (en) * 2010-10-20 2013-08-21 索尼电脑娱乐美国公司 Resource management of server hosts in online game environment
CN103685355A (en) * 2012-09-05 2014-03-26 云联(北京)信息技术有限公司 Method for achieving online game operation based on cloud computing
CN103873457A (en) * 2012-12-17 2014-06-18 人人游戏网络科技发展(上海)有限公司 Method and equipment for balancing loads among game servers
CN106506670A (en) * 2016-11-21 2017-03-15 北京永信至诚科技股份有限公司 A kind of cloud platform virtual resource high speed dispatching method and system
CN107147730A (en) * 2017-06-02 2017-09-08 北京畅游天下网络技术有限公司 Game scene management method and scene management server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260713A (en) * 2010-10-20 2013-08-21 索尼电脑娱乐美国公司 Resource management of server hosts in online game environment
CN103685355A (en) * 2012-09-05 2014-03-26 云联(北京)信息技术有限公司 Method for achieving online game operation based on cloud computing
CN103873457A (en) * 2012-12-17 2014-06-18 人人游戏网络科技发展(上海)有限公司 Method and equipment for balancing loads among game servers
CN106506670A (en) * 2016-11-21 2017-03-15 北京永信至诚科技股份有限公司 A kind of cloud platform virtual resource high speed dispatching method and system
CN107147730A (en) * 2017-06-02 2017-09-08 北京畅游天下网络技术有限公司 Game scene management method and scene management server

Also Published As

Publication number Publication date
CN109173246A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN104298593B (en) SOA system reliability evaluation method based on complex network theory
CN116166280A (en) Block chain open platform and issuing method of block chain application
CN105404952A (en) Approval workflow dynamic configuration method and system based on SAP platform
CN106385329A (en) Processing method and device of resource pool and equipment
CN104270421B (en) A kind of multi-tenant cloud platform method for scheduling task for supporting Bandwidth guaranteed
CN105610654A (en) Server, and policy online test method and system
CN109729068B (en) Security vulnerability auditing system based on block chain technology
CN107590075A (en) A kind of method for testing software and device
CN107370796A (en) A kind of intelligent learning system based on Hyper TF
CN105956481A (en) Data processing method and device
CN110505100A (en) Network work order configuration method, device, electronic equipment and computer-readable medium
CN106020936A (en) Virtual machine dispatching method and device for financial cloud platform on basis of operating loads
CN109173246B (en) The method and system of auto-erecting game server
CN111142929A (en) Firmware configuration method, device, equipment and medium in equipment production process
CN114579469A (en) Full link interface test method and device, electronic equipment and storage medium
CN111124642A (en) Automatic flow method and system allowing cloud management platform to be customized
CN106412088A (en) Data synchronization method and terminal
CN117608761A (en) Kubernetes cluster deployment method, device, equipment and storage medium
CN106445776A (en) Transaction processing method and system
CN109118065A (en) A kind of interactive mode Workflow system and its operation method
CN109697117A (en) Terminal control method, device and computer readable storage medium
CN107766154A (en) The conversion method and device of server
CN106709051A (en) Method, equipment and system for displaying comparison information
CN115330337B (en) Data content processing method and device, electronic equipment and storage medium
US20200183737A1 (en) Coordinating processes with interfering external actions

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 No.68, Qitai Road, Suzhou Industrial Park, Suzhou area, Suzhou pilot Free Trade Zone, Jiangsu Province

Patentee after: Friendship time Technology Co.,Ltd.

Address before: Building 18, Suhua Science Park, 208 Tongyuan Road, Suzhou Industrial Park, 215000, Jiangsu Province

Patentee before: SUZHOU WANYOU SHIDAI TECHNOLOGY Co.,Ltd.