CN111813549A - Server resource allocation method - Google Patents

Server resource allocation method Download PDF

Info

Publication number
CN111813549A
CN111813549A CN202010647678.4A CN202010647678A CN111813549A CN 111813549 A CN111813549 A CN 111813549A CN 202010647678 A CN202010647678 A CN 202010647678A CN 111813549 A CN111813549 A CN 111813549A
Authority
CN
China
Prior art keywords
access
server
accessed
space
user terminal
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
CN202010647678.4A
Other languages
Chinese (zh)
Other versions
CN111813549B (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.)
Zhejiang Yinmosen Network Energy Technology Co ltd
Original Assignee
Henan University of Urban Construction
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 Henan University of Urban Construction filed Critical Henan University of Urban Construction
Priority to CN202010647678.4A priority Critical patent/CN111813549B/en
Publication of CN111813549A publication Critical patent/CN111813549A/en
Application granted granted Critical
Publication of CN111813549B publication Critical patent/CN111813549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a server resource allocation method, which comprises the following steps: the access server respectively acquires the size of the running space of the running server accessed by all the user terminals to be accessed at the current moment; the access server takes the average value of the operation space size of the operation server accessed by each user terminal as the operation space size of the operation server to be accessed at the current time; the access server sets the current access space distribution proportion according to the size of the operation space of the operation server to be accessed by all the user terminals at this time; and the access server allocates the access space to each user terminal according to the access space allocation proportion. The invention obtains the history of the running servers accessed by all the currently accessed user terminals through the access server, respectively predicts the size of the running space of the running server to be accessed by each user terminal currently, and allocates the access space of each user terminal access server.

Description

Server resource allocation method
Technical Field
The invention relates to the field of network configuration, in particular to a server resource configuration method.
Background
The internet has entered the lives of thousands of households, and people use the internet to access information every day, so that work and life are more convenient. When people use the internet, the resources of the server are essentially accessed, and the server configures the resources of the server according to the needs of users, so that the users can have a good internet experience to the maximum extent.
In the process of accessing the internet, the user terminal sends an access application to an access server in the area where the user terminal is located, the access server transfers the access application to a corresponding operating server according to the access application of the user terminal, and then information interaction is carried out between the user terminal and the operating server, so that the user can finish the access of the internet.
At present, the access space allocated by the access server to each user terminal in the area is consistent, so that although the speed of each user terminal at the access server is consistent, when the access server accesses the operating server, the access speed may have some differences due to the size of the required operating space of the operating server, and therefore, when the user terminal wants to access some operating servers with large operating spaces, it may need to wait for a long time, thereby reducing the internet access experience of the user.
Disclosure of Invention
The present invention aims to overcome the problems in the prior art, and provides a server resource allocation method, in which an access server obtains the history of operating servers accessed by all currently accessed user terminals, respectively predicts the size of the operating space of the operating server currently accessed by each user terminal, and allocates the access space of each user terminal accessed to the server according to the proportion of the size of the operating space corresponding to each user terminal.
Therefore, the invention provides a server resource allocation method, which comprises the following steps:
the access server respectively obtains the size of the running space of the running server visited by all the user terminals to be accessed at the current moment.
And the access server respectively takes the average value of the operation space sizes of the operation servers accessed by each user terminal as the operation space size of the operation server to be accessed at the time.
The access server sets the current access space distribution proportion according to the size of the operation space of the operation server to be accessed by all the user terminals at this time.
And the access server allocates the access space to each user terminal according to the access space allocation proportion.
Further:
the access server distinguishes the user terminals by acquiring the access ID of the user terminals.
And a data storage library is arranged in the access server and is used for storing the access ID of each user terminal, the size of the running space of the running server accessed by the access ID of each user terminal and the access time of the access ID of each user terminal in the running server.
Further, when the access server obtains the size of the operating space of the operating server accessed by the user terminal to be accessed at the current moment, the access server obtains the size of the operating space of the accessed operating server within the set historical time.
And the access server obtains the size of the running space of the running server accessed by the access ID of the user terminal by screening the access ID of the user terminal and the access time of the access ID of the user terminal in the data storage library in accessing the running server.
Further, when the access server obtains the size of the operating space of the operating server accessed by the user terminal to be accessed at the current moment, the access server obtains the size of the operating space of the accessed operating server within the set historical access times.
And the access server screens the access ID of the user terminal in the data storage library, and sorts the access ID according to the access time of the user terminal in accessing the operation server to obtain the size of the operation space of the accessed operation server within the set historical access times.
Further, the access server respectively counts the size of the operating space of the operating server accessed by each user terminal and the number of accessed times.
The access server respectively calculates the sum of the sizes of the operating spaces of the operating servers accessed by each user terminal.
And the access server takes the quotient of the sum of the running space sizes of the running servers accessed by each user terminal and the access times accessed by the user terminal as the average value of the running space sizes of the running servers accessed by the user terminal.
Further, when the access server sets the current access space allocation proportion according to the size of the operating space of the operating server to be accessed by all the user terminals at this time, the method includes:
the access server obtains the size of the operation space of the operation server to be accessed by all the user terminals at this time and obtains the initial proportion.
The access server performs equal ratio simplification on the initial ratio to obtain a final ratio.
The access server sets the final proportion as the current access space allocation proportion.
Further, when a device requests to access the server, the access server respectively obtains the size of the operating space of the operating server accessed by all the user terminals to be accessed at the current moment.
The server resource allocation method provided by the invention has the following beneficial effects:
1. acquiring the history of the operation servers accessed by all currently accessed user terminals through an access server, respectively predicting the size of the operation space of the operation server to be accessed by each user terminal, and distributing the access space of each user terminal access server according to the proportion of the size of the operation space corresponding to each user terminal;
2. when the history of the operation server accessed by the user terminal is predicted, the average value of the operation space of the accessed operation server in the set history time period is used as the prediction of the operation space of the operation server to be accessed at this time.
Drawings
FIG. 1 is a schematic overall flow diagram of the present invention;
FIG. 2 is a schematic flow chart illustrating a process of determining an average value of the size of the operating space of the operating server accessed by the user terminal according to the present invention;
fig. 3 is a flow chart illustrating the allocation ratio of the access space according to the present invention.
Detailed Description
An embodiment of the present invention will be described in detail below with reference to the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the embodiment.
In the present application, the type and structure of components that are not specified are all the prior art known to those skilled in the art, and those skilled in the art can set the components according to the needs of the actual situation, and the embodiments of the present application are not specifically limited.
Specifically, as shown in fig. 1 to 3, an embodiment of the present invention provides a server resource allocation method, including:
the access server respectively obtains the size of the running space of the running server visited by all the user terminals to be accessed at the current moment.
Specifically, the access server searches in a database recording user access history through a user ID of each user terminal to obtain an operating server accessed by each user terminal to be accessed, and obtains the size of an operating space of the operating servers, and meanwhile, when the access server accesses each user terminal to a corresponding operating server each time, the access server counts the access in the database.
And the access server respectively takes the average value of the operation space sizes of the operation servers accessed by each user terminal as the operation space size of the operation server to be accessed at the time.
As described above, the size of the operating space of the operating server accessed by each user terminal accessed at the current time is obtained, the size of the operating space of each accessed operating server is summed, and then an average value is obtained according to the sum, and the average value is used as the size of the operating space of the operating server to be accessed at this time.
The access server sets the current access space distribution proportion according to the size of the operation space of the operation server to be accessed by all the user terminals at this time.
The access server obtains the proportion between each user terminal according to the size of the running space of the running server to be visited by each user terminal at this time, and the proportion is used as the current access space distribution proportion.
And the access server allocates the access space to each user terminal according to the access space allocation proportion. This enables allocation of access space to individual user terminals by pre-estimation.
In this embodiment, the access server distinguishes the user terminals by acquiring the access ID of the user terminals. Each user terminal has a unique machine identification code, which is the access ID corresponding to the user terminal, so that the access ID corresponding to each user terminal is unique.
And a data storage library is arranged in the access server and is used for storing the access ID of each user terminal, the size of the running space of the running server accessed by the access ID of each user terminal and the access time of the access ID of each user terminal in the running server. After each user terminal accesses the running server, the access server records the running space size and the access time of the running server accessed by the user terminal in a list of the access ID of the corresponding user terminal in the data storage.
Meanwhile, in this embodiment, when the access server obtains the size of the operating space of the operating server accessed by the user terminal to be accessed at the current time, the access server obtains the size of the operating space of the accessed operating server within the set historical time.
In the set time period, the accessed time is a limited numerical value, and meanwhile, the statistical number of the access servers can be reduced, so that the calculation amount of the operation servers can be effectively saved, the calculation speed of the access servers is increased, and the speed of the user accessing the internet is also increased. For the set time period, a week period may be selected, or a month period may be selected.
And the access server obtains the size of the running space of the running server accessed by the access ID of the user terminal by screening the access ID of the user terminal and the access time of the access ID of the user terminal in the data storage library in accessing the running server. Therefore, the size of the running space of the running server accessed by the user terminal in the set time period can be counted.
Meanwhile, in this embodiment, when the access server obtains the size of the operating space of the operating server accessed by the user terminal to be accessed at the current time, the access server obtains the size of the operating space of the accessed operating server within the set historical access times.
Through the set access times, the operation space size of the operation server which has a certain amount of access can be obtained, and compared with the set time, the data is more accurate for some user terminals which do not frequently access the Internet. The number of accesses to be set is generally 10, and if the number of accesses is less than 10, the total number is counted, and if the number of accesses exceeds 10, the number of accesses in the latest time is counted.
During statistics, the access server screens the access ID of the user terminal from the data repository, and sorts the access ID according to the access time of the user terminal in accessing the operating server to obtain the size of the operating space of the accessed operating server within the set historical access times.
In this embodiment, the access server respectively counts the size of the operating space of the operating server accessed by each user terminal and the number of accessed times. During statistics, the access server calculates the sum of the size of the operating space of the operating server accessed by each user terminal. And then, the access server takes the quotient of the sum of the size of the running space of the running server accessed by each user terminal and the number of access times accessed by the user terminal as the average value of the size of the running space of the running server accessed by the user terminal. Thus, the size of the running space of the running server accessed by each user terminal and the number of accessed times can be obtained.
In this embodiment, the access server sets the current access space allocation ratio according to the size of the operating space of the operating server to be accessed by all the user terminals at this time. Firstly, the access server obtains the size of the operating space of the operating server to be accessed by all the user terminals at this time and obtains the initial proportion. Secondly, the access server performs equal ratio simplification on the initial ratio to obtain a final ratio. And finally, the access server sets the final proportion as the current access space distribution proportion.
Therefore, when the allocation is carried out, the size of the space accessed at this time can be expected through the size of the space of the operation server accessed historically, and therefore the access speed can be optimized to the maximum extent when the access is carried out by allocating the proper space.
In this embodiment, when a device requests to access a server, the access server respectively obtains the size of the operating space of the operating server accessed by all user terminals to be accessed at the current time. Therefore, the technical scheme provided by the invention can be carried out when an access request exists, and the access server is in a normal working state or a standby state when no access request exists, so that the workload of the access server can be effectively saved.
Meanwhile, the invention can be carried out in a multi-thread mode, each technical scheme flow provided by the invention is a thread, and each thread independently carries out operation.
The above disclosure is only for a few specific embodiments of the present invention, however, the present invention is not limited to the above embodiments, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (7)

1. A method for configuring server resources, comprising:
the access server respectively acquires the size of the running space of the running server accessed by all the user terminals to be accessed at the current moment;
the access server takes the average value of the operation space size of the operation server accessed by each user terminal as the operation space size of the operation server to be accessed at the current time;
the access server sets the current access space distribution proportion according to the size of the operation space of the operation server to be accessed by all the user terminals at this time;
and the access server allocates the access space to each user terminal according to the access space allocation proportion.
2. The method for configuring server resources according to claim 1, wherein:
the access server distinguishes the user terminals by acquiring the access ID of the user terminals;
and a data storage library is arranged in the access server and is used for storing the access ID of each user terminal, the size of the running space of the running server accessed by the access ID of each user terminal and the access time of the access ID of each user terminal in the running server.
3. The method according to claim 2, wherein the access server obtains the size of the running space of the running server accessed by the user terminal to be accessed at the current time, within the set historical time;
and the access server obtains the size of the running space of the running server accessed by the access ID of the user terminal by screening the access ID of the user terminal and the access time of the access ID of the user terminal in the data storage library in accessing the running server.
4. The method according to claim 2, wherein the access server obtains the size of the running space of the running server accessed by the user terminal to be accessed at the current time when obtaining the size of the running space of the running server accessed by the user terminal to be accessed at the current time, and obtains the size of the running space of the running server accessed within the set historical access times;
and the access server screens the access ID of the user terminal in the data storage library, and sorts the access ID according to the access time of the user terminal in accessing the operation server to obtain the size of the operation space of the accessed operation server within the set historical access times.
5. The method according to claim 1, wherein the access server respectively counts the size of the operating space of the operating server accessed by each user terminal and the number of accessed times;
the access server respectively calculates the sum of the sizes of the operating spaces of the operating servers accessed by each user terminal;
and the access server takes the quotient of the sum of the running space sizes of the running servers accessed by each user terminal and the access times accessed by the user terminal as the average value of the running space sizes of the running servers accessed by the user terminal.
6. The method as claimed in claim 1, wherein when the access server sets the current allocation ratio of the access space according to the size of the operating space of the operating server to be accessed by all the user terminals at this time, the method includes:
the access server acquires the size of the operation space of the operation server to be accessed by all the user terminals at this time and acquires an initial proportion;
the access server performs equal ratio simplification on the initial ratio to obtain a final ratio;
the access server sets the final proportion as the current access space allocation proportion.
7. The method as claimed in claim 1, wherein when a device requests to access the server, the access server obtains the size of the operating space of the operating server accessed by all the user terminals to be accessed at the current time.
CN202010647678.4A 2020-07-07 2020-07-07 Server resource allocation method Active CN111813549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010647678.4A CN111813549B (en) 2020-07-07 2020-07-07 Server resource allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010647678.4A CN111813549B (en) 2020-07-07 2020-07-07 Server resource allocation method

Publications (2)

Publication Number Publication Date
CN111813549A true CN111813549A (en) 2020-10-23
CN111813549B CN111813549B (en) 2023-07-25

Family

ID=72841866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010647678.4A Active CN111813549B (en) 2020-07-07 2020-07-07 Server resource allocation method

Country Status (1)

Country Link
CN (1) CN111813549B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716207A (en) * 2005-07-04 2006-01-04 李子木 Method and system for customized network information storage service
CN101068237A (en) * 2006-08-28 2007-11-07 腾讯科技(深圳)有限公司 Data access system and data access method
JP2012073818A (en) * 2010-09-29 2012-04-12 Kddi Corp Access history management server for web site, program and method
WO2015014176A1 (en) * 2013-07-31 2015-02-05 Tencent Technology (Shenzhen) Company Limited Method, device, scheduling server and system for network allocation
CN106293931A (en) * 2015-06-23 2017-01-04 北京神州泰岳软件股份有限公司 A kind of method and apparatus of distribution server resource
CN106776043A (en) * 2017-01-06 2017-05-31 郑州云海信息技术有限公司 A kind of is the method and its device of client distribution caching quota based on file
WO2018018827A1 (en) * 2016-07-25 2018-02-01 深圳市中博科创信息技术有限公司 Data storage control method and data server
CN110247856A (en) * 2019-05-24 2019-09-17 平安科技(深圳)有限公司 Server resource method for releasing and device
CN110781426A (en) * 2019-10-30 2020-02-11 河南广播电视大学 Browser for dynamically allocating space and allocation method thereof
CN110944050A (en) * 2019-11-29 2020-03-31 北京网聘咨询有限公司 Reverse proxy server cache dynamic configuration method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716207A (en) * 2005-07-04 2006-01-04 李子木 Method and system for customized network information storage service
CN101068237A (en) * 2006-08-28 2007-11-07 腾讯科技(深圳)有限公司 Data access system and data access method
JP2012073818A (en) * 2010-09-29 2012-04-12 Kddi Corp Access history management server for web site, program and method
WO2015014176A1 (en) * 2013-07-31 2015-02-05 Tencent Technology (Shenzhen) Company Limited Method, device, scheduling server and system for network allocation
CN106293931A (en) * 2015-06-23 2017-01-04 北京神州泰岳软件股份有限公司 A kind of method and apparatus of distribution server resource
WO2018018827A1 (en) * 2016-07-25 2018-02-01 深圳市中博科创信息技术有限公司 Data storage control method and data server
CN106776043A (en) * 2017-01-06 2017-05-31 郑州云海信息技术有限公司 A kind of is the method and its device of client distribution caching quota based on file
CN110247856A (en) * 2019-05-24 2019-09-17 平安科技(深圳)有限公司 Server resource method for releasing and device
CN110781426A (en) * 2019-10-30 2020-02-11 河南广播电视大学 Browser for dynamically allocating space and allocation method thereof
CN110944050A (en) * 2019-11-29 2020-03-31 北京网聘咨询有限公司 Reverse proxy server cache dynamic configuration method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZOLTAN A. TUZA, ET AL.: "Efficient Computation of All Distinct Realization Structures of Kinetic Systems", 《IFAC-PAPERSONLINE》, vol. 49, no. 26, pages 194 - 200 *
王霓虹等: "分布式爬虫任务调度策略的优化", 《黑龙江大学自然科学学报》, vol. 33, no. 5, pages 671 - 675 *

Also Published As

Publication number Publication date
CN111813549B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN109471727B (en) Task processing method, device and system
CN109597685B (en) Task allocation method, device and server
CN109783237B (en) Resource allocation method and device
US8224938B2 (en) Data processing system and method for iteratively re-distributing objects across all or a minimum number of processing units
US20050198636A1 (en) Dynamic optimization of batch processing
JPH07281982A (en) Client / server data processing system
EP2725862A1 (en) Resource allocation method and resource management platform
US20140089511A1 (en) Client Classification-Based Dynamic Allocation of Computing Infrastructure Resources
US20090055835A1 (en) System and Method for Managing License Capacity in a Telecommunication Network
US20200012602A1 (en) Cache allocation method, and apparatus
US8627330B2 (en) Workload manager managing a workload of an enterprise data warehouse
CN111414070B (en) Case power consumption management method and system, electronic device and storage medium
JP2007299401A (en) Method and system for executing fair share scheduling based on individual user's resource usage and tracking thereof
CN110990138A (en) Resource scheduling method, device, server and storage medium
CN110297698B (en) Multi-priority dynamic current limiting method, device, server and storage medium
CN108874502B (en) Resource management method, device and equipment of cloud computing cluster
CN110955516A (en) Batch task processing method and device, computer equipment and storage medium
CN115952005B (en) Metadata load balancing method, device, equipment and readable storage medium
CN111813549B (en) Server resource allocation method
CN114860449B (en) Data processing method, device, equipment and storage medium
WO2019169998A1 (en) Method, system, and related apparatus for selecting data node
CN115774618A (en) Cloud server iaas layer dynamic resource allocation method and device
KR20150070930A (en) Resource allocation system and method for migration considering optimal cost
CN109992468A (en) A kind of process performance analysis method, device, system and computer storage medium
CN112667392A (en) Cloud computing resource allocation method and device, computer equipment and storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240717

Address after: Room 3A06, Building B, No. 3 Weiye Road, Puyan Street, China (Zhejiang) Pilot Free Trade Zone, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Patentee after: Zhejiang Yinmosen Network Energy Technology Co.,Ltd.

Country or region after: China

Address before: 467000 Henan province Pingdingshan city new city Longxiang Road

Patentee before: Henan University of Urban Construction

Country or region before: China