CN105791381A - Access control method and apparatus - Google Patents

Access control method and apparatus Download PDF

Info

Publication number
CN105791381A
CN105791381A CN201511031547.9A CN201511031547A CN105791381A CN 105791381 A CN105791381 A CN 105791381A CN 201511031547 A CN201511031547 A CN 201511031547A CN 105791381 A CN105791381 A CN 105791381A
Authority
CN
China
Prior art keywords
server
load information
current load
access request
weights
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.)
Pending
Application number
CN201511031547.9A
Other languages
Chinese (zh)
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.)
Dongguan Guangxin Intellectual Property Services Limited
Original Assignee
DONGGUAN QINGMAITIAN DIGITAL TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DONGGUAN QINGMAITIAN DIGITAL TECHNOLOGY Co Ltd filed Critical DONGGUAN QINGMAITIAN DIGITAL TECHNOLOGY Co Ltd
Priority to CN201511031547.9A priority Critical patent/CN105791381A/en
Publication of CN105791381A publication Critical patent/CN105791381A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides an access control method and apparatus. The access control apparatus is used on a network device, the network device is connected with at least one server, and the method comprises the steps of receiving current load information from the server; determining an available weighted value of each server by a preset invoking rule in combination with the current load information; and when an access request from a client is received, sending the access request to the server according to the available weighted value. By adopting the embodiment of the invention, the access condition can be forwarded according to the current load information actively sent by the server, and a target server of the access request is determined to reduce the complexity of the complexity, improve the operation speed, accelerate the access feedback speed and enhance the user experience.

Description

Access the method and device that control
Technical field
The present invention relates to communication technical field, particularly relate to and access the method and device controlled.
Background technology
Owing to each core of current existing network is along with the quick growth of the raising of portfolio, visit capacity and data traffic, its disposal ability also correspondingly increases with calculating intensity so that single server apparatus cannot undertake at all.A kind of cheap effectively transparent method being derived for this situation is exactly load balancing (LoadBalance) to extend the bandwidth of conventional network equipment and server, increase handling capacity, Strengthens network data-handling capacity, the motility of raising network and the technology of availability.
Load-balancing algorithm in correlation technique will constantly read the load data of server background, then carries out loading commissions distribution, and therefore algorithm is more complicated, and arithmetic speed is slow, makes the data that load-balancing algorithm itself becomes server cluster system process bottleneck.
Summary of the invention
In view of this, the present invention provides a kind of method accessing control and device, and load-balancing device, without constantly reading the load data of server, improves arithmetic speed.
Specifically, the present invention is achieved through the following technical solutions:
According to an aspect of the present invention, it is provided that a kind of method accessing control, on network devices, the described network equipment connects at least one server, and described method includes in application:
Receive the current load information from server;
In conjunction with described current load information, preset schedule rule is utilized to determine the available weights of each described server;
When receiving the access request from client, according to described available weights, described access request is sent to server.
According to another aspect of the present invention, it is provided that a kind of device accessing control, described device is applied on network devices, and the described network equipment connects at least one server, and described device includes:
Receive unit, for receiving the current load information from server;
Available weights determine unit, are used for, in conjunction with described current load information, utilizing preset schedule rule to determine the available weights of each described server;
Transmitting element, for when receiving the access request from client, being sent to server according to described available power by described for value access request.
The application embodiment of the present invention, it is possible to according to the current load information that server actively sends, forwards access situation, it is determined that the destination server of access request, reduces the complexity of algorithm, improve arithmetic speed, accelerates to access feedback speed, strengthens Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method accessing control shown in the present invention one exemplary embodiment;
Fig. 2 is a kind of hardware structure diagram that the present invention accesses the device place equipment of control;
Fig. 3 is the structured flowchart of a kind of device accessing control shown in the present invention one exemplary embodiment.
Detailed description of the invention
Here in detail exemplary embodiment being illustrated, its example representation is in the accompanying drawings.When as explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with in appended claims describe in detail, the present invention some in the example of consistent apparatus and method.
The term used in the present invention is only merely for the purpose describing specific embodiment, and is not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the present invention and appended claims is also intended to include most form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and comprises any or all of one or more project of listing being associated and be likely to combination.
Although should be appreciated that and be likely to adopt term first, second, third, etc. to describe various information in the present invention, but these information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other out same type of information.Such as, without departing from the present invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... " or " in response to determining ".
Fig. 1 is the schematic flow sheet of a kind of method accessing control shown in the present invention one exemplary embodiment.
As it is shown in figure 1, a kind of method accessing control, on network devices, the described network equipment connects at least one server, and described method comprises the steps: in application
Step 110, receives the current load information from server.
Exemplarily, the network equipment is (such as, load-balancing device) can when arriving Preset Time, Query Information is sent (such as to each server connected, query message), server can according to the performance of self and actual loading situation when receiving Query Information, for instance, the current terminal quantity connected, sends load information to load-balancing device.In another example, the network equipment can receive the Query Information that each server sends when arriving Preset Time, server can ask to determine load value, i.e. a load information according to the performance of self and actual loading, by the form of message, load information is sent to the network equipment.
Step 120, in conjunction with current load information, utilizes preset schedule rule to determine the available weights of each server.
Exemplarily, in this step, the network equipment can be that each server determines available weights based on current load information according to preset schedule rule, and such as, the present load pressure of server is more little, and its available weights are more high.
According to one embodiment of the invention, access the method controlled and can also comprise the steps: to obtain the configuration information of each server, based on this step, step 120 can include being combined the configuration information of server with current load information, the available weights of server are determined by preset schedule rule, wherein, current load information includes the current CPU occupation rate of server, current memory utilization rate, at least one in I/O utilization rate and bandwidth utilization rate, configuration information includes the memory size of server, at least one in cpu frequency and the network bandwidth, and can be combined with the dynamic of current load information in some time period, summary information finally gives reasonably available weights, realize the load balancing in network.
Exemplarily, step 120 can include following sub-step:
Step 121: be respectively provided with a weighted value for each current load information and each configuration information.
Step 123: the product addition of all current load information Yu respective weights value is obtained the first usable levels, and the product addition of all configuration informations Yu respective weights value is obtained the second usable levels;
Step 125: determine available weights in conjunction with the first usable levels and the second usable levels.
For example, assume that current load information includes the current CPU occupation rate of server, current memory utilization rate, configuration information includes the memory size of server, cpu frequency, set current CPU occupation rate A respectively, current memory utilization rate B, memory size C and cpu frequency D, respective weighted value respectively 0.3, 0.2, 0.4, 0.1, then the first usable levels=0.3*A+B*0.2, second usable levels=0.4*C+0.1*D, the weighted value setting the first usable levels and the second usable levels again is 0.5, then obtain available weights=0.5((0.3*A+B*0.2)+(0.4*C+0.1*D)).It is understood that each value is only schematic in above-mentioned example, and not causing limitation of the present invention, the value of each value can be configured according to practical application, it is achieved load balancing.
Step 130, when receiving the access request from client, is sent to server according to available weights by access request.
Exemplarily, step 130 may include steps of:
Step 131: the available weights of calculated Servers-all are ranked up according to order from big to small.
Step 133: access request is sent to the server of available maximum weight.
The application embodiment of the present invention, it is possible to according to the current load information that server actively sends, forwards access situation, it is determined that the destination server of access request, reduces the complexity of algorithm, improve arithmetic speed, accelerates to access feedback speed, strengthens Consumer's Experience.
Corresponding with the embodiment of the method that aforementioned access controls, present invention also offers the embodiment accessing the device controlled.
The present invention accesses the embodiment of the device 300 of control can on content-switch.Device embodiment can be realized by software, it is also possible to is realized by the mode of hardware or software and hardware combining.Implemented in software for example, as the device on a logical meaning, it is that computer program instructions corresponding in nonvolatile memory is read to run in internal memory and formed by the processor by its place switch.Say from hardware view, as shown in Figure 2, a kind of hardware structure diagram of the device place equipment of control is accessed for the present invention, except the processor shown in Fig. 2, internal memory, network interface and nonvolatile memory, in embodiment, the equipment at device place is generally according to the actual functional capability of this equipment, other hardware can also be included, this is repeated no more.
Fig. 3 is the structured flowchart of a kind of device accessing control shown in the present invention one exemplary embodiment.
As he is shown in 3, a kind of device 300 accessing control, on network devices, the network equipment connects at least one server in application, and device 300 includes receiving unit 301, available weights determine unit 302 and transmitting element 303.
Receive unit 301 for receiving the current load information from server;
Available weights determine that unit 302 is in conjunction with described current load information, utilizing preset schedule rule to determine the available weights of each described server;
Transmitting element 303 is for when receiving the access request from client, being sent to server according to described available weights by described access request.
What in said apparatus, the function of unit and the process that realizes of effect specifically referred in said method corresponding step realizes process, does not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part illustrates referring to the part of embodiment of the method.Device embodiment described above is merely schematic, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present invention program.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.

Claims (8)

1. the method accessing control, it is characterised in that on network devices, the described network equipment connects at least one server, and described method includes in application:
Receive the current load information from server;
In conjunction with described current load information, preset schedule rule is utilized to determine the available weights of each described server;
When receiving the access request from client, according to described available weights, described access request is sent to server.
2. method according to claim 1, it is characterised in that described reception from the load information of server, including:
When arriving Preset Time, send Query Information to each server;
Receive the load information that server returns according to described Query Information.
3. method according to claim 1, it is characterised in that described reception from the load information of server, including:
Receive the load information that server sends when arriving Preset Time.
4. method according to claim 1, it is characterised in that described method also includes:
Obtain the configuration information of each server;
Current load information described in described combination, utilizes preset schedule rule to determine the available weights of each described server, including:
Current load information and configuration information are combined, and is determined the available weights of corresponding server by described preset schedule rule.
5. method according to claim 4, it is characterised in that
Described current load information includes in the current CPU occupation rate of server, current memory utilization rate, I/O utilization rate and bandwidth utilization rate at least one;
Described configuration information includes in the memory size of server, cpu frequency and the network bandwidth at least one.
6. method according to claim 5, it is characterised in that described current load information and configuration information are combined, and the available weights of corresponding server are determined by described preset schedule rule, including:
It is respectively provided with a weighted value for each current load information and each configuration information;
The product addition of all current load information Yu respective weights value is obtained the first usable levels, and the product addition of all configuration informations Yu respective weights value is obtained the second usable levels;
Described available weights are determined in conjunction with described first usable levels and the second usable levels.
7. method according to claim 1, it is characterised in that described when receiving the access request from client, is sent to server according to described available weights by described access request, including:
The available weights of calculated Servers-all are ranked up according to order from big to small;
Described access request is sent to the server of available maximum weight.
8. the device accessing control, it is characterised in that described device is applied on network devices, and the described network equipment connects at least one server, and described device includes:
Receive unit, for receiving the current load information from server;
Available weights determine unit, are used for, in conjunction with described current load information, utilizing preset schedule rule to determine the available weights of each described server;
Transmitting element, for when receiving the access request from client, being sent to server according to described available weights by described access request.
CN201511031547.9A 2015-12-30 2015-12-30 Access control method and apparatus Pending CN105791381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511031547.9A CN105791381A (en) 2015-12-30 2015-12-30 Access control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511031547.9A CN105791381A (en) 2015-12-30 2015-12-30 Access control method and apparatus

Publications (1)

Publication Number Publication Date
CN105791381A true CN105791381A (en) 2016-07-20

Family

ID=56390411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511031547.9A Pending CN105791381A (en) 2015-12-30 2015-12-30 Access control method and apparatus

Country Status (1)

Country Link
CN (1) CN105791381A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071002A (en) * 2017-03-22 2017-08-18 山东中创软件商用中间件股份有限公司 A kind of application server cluster request scheduling method and device
CN108235059A (en) * 2018-03-09 2018-06-29 网宿科技股份有限公司 A kind of method and system for distributing transcoding task
CN108307206A (en) * 2017-12-25 2018-07-20 北京奇艺世纪科技有限公司 A kind of distribution method and device of live streaming encoding tasks
CN108418708A (en) * 2018-02-01 2018-08-17 天津麒麟信息技术有限公司 A kind of cloudy management scheduling system for supporting FT and X86 mixed architectures
CN109347842A (en) * 2018-10-26 2019-02-15 深圳点猫科技有限公司 A kind of collecting method and device for educational system
CN110471761A (en) * 2019-07-24 2019-11-19 中南民族大学 Control method, user equipment, storage medium and the device of server
CN111338776A (en) * 2017-12-28 2020-06-26 中科寒武纪科技股份有限公司 Scheduling method and related device
CN114492660A (en) * 2022-02-14 2022-05-13 深圳市伊登软件有限公司 Service management method and system of multi-cloud management platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611735A (en) * 2011-12-21 2012-07-25 奇智软件(北京)有限公司 Load balancing method and system of application services
CN102970379A (en) * 2012-12-19 2013-03-13 中国电子科技集团公司第十五研究所 Method for realizing load balance among multiple servers
CN103036979A (en) * 2012-12-12 2013-04-10 广州尚融网络科技有限公司 Server loading balancing method and loading balancer
CN104038525A (en) * 2013-03-07 2014-09-10 深圳市金证科技股份有限公司 Load balancing method of server system and apparatus
CN105072182A (en) * 2015-08-10 2015-11-18 北京佳讯飞鸿电气股份有限公司 Load balancing method, load balancer and user terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611735A (en) * 2011-12-21 2012-07-25 奇智软件(北京)有限公司 Load balancing method and system of application services
CN103036979A (en) * 2012-12-12 2013-04-10 广州尚融网络科技有限公司 Server loading balancing method and loading balancer
CN102970379A (en) * 2012-12-19 2013-03-13 中国电子科技集团公司第十五研究所 Method for realizing load balance among multiple servers
CN104038525A (en) * 2013-03-07 2014-09-10 深圳市金证科技股份有限公司 Load balancing method of server system and apparatus
CN105072182A (en) * 2015-08-10 2015-11-18 北京佳讯飞鸿电气股份有限公司 Load balancing method, load balancer and user terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071002A (en) * 2017-03-22 2017-08-18 山东中创软件商用中间件股份有限公司 A kind of application server cluster request scheduling method and device
CN108307206A (en) * 2017-12-25 2018-07-20 北京奇艺世纪科技有限公司 A kind of distribution method and device of live streaming encoding tasks
CN111338776A (en) * 2017-12-28 2020-06-26 中科寒武纪科技股份有限公司 Scheduling method and related device
CN111338776B (en) * 2017-12-28 2023-11-28 中科寒武纪科技股份有限公司 Scheduling method and related device
CN108418708A (en) * 2018-02-01 2018-08-17 天津麒麟信息技术有限公司 A kind of cloudy management scheduling system for supporting FT and X86 mixed architectures
CN108235059A (en) * 2018-03-09 2018-06-29 网宿科技股份有限公司 A kind of method and system for distributing transcoding task
CN109347842A (en) * 2018-10-26 2019-02-15 深圳点猫科技有限公司 A kind of collecting method and device for educational system
CN110471761A (en) * 2019-07-24 2019-11-19 中南民族大学 Control method, user equipment, storage medium and the device of server
CN114492660A (en) * 2022-02-14 2022-05-13 深圳市伊登软件有限公司 Service management method and system of multi-cloud management platform

Similar Documents

Publication Publication Date Title
CN105791381A (en) Access control method and apparatus
US10853142B2 (en) Stateless instance backed mobile devices
US10333864B2 (en) Adaptive service chain management
CN107590001B (en) Load balancing method and device, storage medium and electronic equipment
CN106899680B (en) The fragment treating method and apparatus of multi-tiling chain
US10044797B2 (en) Load balancing of distributed services
US20170193416A1 (en) Reducing costs related to use of networks based on pricing heterogeneity
CN102119512A (en) Distributed load balancer
US11005925B2 (en) Load balancing with power of random choices
US20170078207A1 (en) Network prioritization based on node-level attributes
US20210337452A1 (en) Sharing geographically concentrated workload among neighboring mec hosts of multiple carriers
CN110650209B (en) Method and device for realizing load balancing
US10983828B2 (en) Method, apparatus and computer program product for scheduling dedicated processing resources
US20200320154A1 (en) A webpage loading method, webpage loading system and server
US11922059B2 (en) Method and device for distributed data storage
CN112600761A (en) Resource allocation method, device and storage medium
US11323534B2 (en) Concurrency reduction through publish-subscribe patterns
CN113268329A (en) Request scheduling method, device and storage medium
KR102622252B1 (en) Apparatus and method for transmitting contents
CN112839071B (en) Training system, training data access method and device, electronic equipment and medium
US10218799B2 (en) Optimizing client distance to network nodes
CN117992243B (en) Load balancing method and device for middleware and computer equipment
US20230195799A1 (en) Systems and methods of programmatic control of scaling read requests to a database system
CN118414606A (en) Machine learning using a serverless computing architecture
US20090292763A1 (en) Thin client-server architecture networks and using method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180921

Address after: 523000 Room 301, 6B International Finance Innovation Park, Songshan Lake high tech Industrial Development Zone, Dongguan, Guangdong

Applicant after: Dongguan Guangxin Intellectual Property Services Limited

Address before: 523000 C10, 6 floor, brilliant business building, 81 South Central Road, Dongcheng District, Dongguan, Guangdong.

Applicant before: DONGGUAN QINGMAITIAN DIGITAL TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication