CN106909463A - A kind of control method and device for connecting number quota - Google Patents

A kind of control method and device for connecting number quota Download PDF

Info

Publication number
CN106909463A
CN106909463A CN201710113056.1A CN201710113056A CN106909463A CN 106909463 A CN106909463 A CN 106909463A CN 201710113056 A CN201710113056 A CN 201710113056A CN 106909463 A CN106909463 A CN 106909463A
Authority
CN
China
Prior art keywords
client
server
connection
quota
equal
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
CN201710113056.1A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710113056.1A priority Critical patent/CN106909463A/en
Publication of CN106909463A publication Critical patent/CN106909463A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/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
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5022Workload threshold

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a kind of control method and device for connecting number quota, server receives the connection number quota of the permission access server of user input, and connection number quota includes:Connection number quota corresponding to the total quota of connection, client terminal quantity quota and default at least one client;The number information set up with the server and be connected is counted, number information includes the number information of three types:The connection number that the client number and the client of the connection sum and server foundation connection being connected are set up with server is set up with server;When the number information of any one type that number information includes is more than or equal to the threshold range with the connection number quota corresponding to it, then prompt message is sent to the mailbox for prestoring, in order to server administrators it will be seen that the loading condition of server connection, so as to effectively control the load of server, it is ensured that server is operated in a rational loading range.

Description

A kind of control method and device for connecting number quota
Technical field
The present invention relates to server technology field, more particularly to a kind of control method and device for connecting number quota.
Background technology
With the arriving in big data epoch, the application of storage server is more and more extensive.Compared with common server, storage Server is designed for specific target, therefore configuration mode is also different, and it is probably to possess a little extra storage, also may be used Very big memory space can be possessed.One usual internal disk for possessing less than five pieces of multiduty server, but a storage Server possesses 6 pieces of internal disks to I haven't seen you for ages, and Many times can reach 12 pieces to 24 pieces internal disks.Distributed file system is The core of storage server, but the performance, reliability for distributed file system are always puzzlement storage server Wide variety of problem.The pressure of storage server is continually changing, and current file system can not meet dynamic change situation Under load pressure, there is the situation of loss of data.
For current technology, distributed file system realizes the Disk Quotas for disk active volume, for Family can be used user's quota of capacity, and the catalogue quota of capacity and usable quantity can be used for catalogue, but for disk For the aspect of management, these quota modes can not carry out effective management, user to the acceptable maximum load of server Load can be increased dynamically, cause server to operate relatively slow, ultimately result in loss of data.On the other hand, if server stress It is larger, now need to carry out mass data recovery again, then occur that server data recovers and all non-to the response of client Often slow situation, reduces the experience of user.
It can be seen that, how to realize the effective management to server load, it is ensured that server operates in a rational load model It is those skilled in the art's problem demanding prompt solution in enclosing.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of control method and device for connecting number quota, it is possible to achieve to service Effective management of device load, it is ensured that server is operated in a rational loading range.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of control method for connecting number quota, clothes are applied to Business device, methods described includes:
Receive user input allow access the connection number quota of the server;The connection number quota includes:Connection Connection number quota corresponding to total quota, client terminal quantity quota and default at least one client;
Count the number information set up with the server and be connected;The number information includes that the number of three types is believed Breath:Client number and the visitor that the connection sum and server foundation connection being connected is set up with the server The connection number that family end is set up with the server;
The number information of any one type included when the number information is more than or equal to and the institute corresponding to it When stating the threshold range of connection number quota, then prompt message is sent to the mailbox for prestoring.
Optionally, the number information of at least one type included when the number information is more than or equal to and it During the threshold range of the corresponding connection number quota, then sending prompt message to the mailbox for prestoring includes:
When the threshold value of the connection sum more than or equal to the total quota of the connection set up with the server and be connected During scope;
And/or when the client number being connected with server foundation is matched somebody with somebody more than or equal to the client terminal quantity During the threshold range of volume;
And/or when the connection number that the first client is set up with the server connects more than or equal to first client When connecing the threshold range of several quotas, then prompt message is sent to the mailbox for prestoring.
Optionally, also include:
When the connection sum being connected of being set up with the server is more than or equal to the total quota of the connection;
And/or when the client number being connected with server foundation is matched somebody with somebody more than or equal to the client terminal quantity Volume;
And/or when the connection number that the first client is set up with the server connects more than or equal to first client When connecing several quotas, then forbid the client to be set up with the server and be connected;First client is described at least one Any one client in client.
Optionally, also include:
Receive the operation stream quota that the client of permission second of user input is set up;The second user end for it is described at least Any one client in one client;
Count the number of the operation stream that second client is set up;
When the number of the operation stream is more than or equal to the operation stream quota, then the client is forbidden to set up described Operation stream.
The embodiment of the present invention also provides a kind of control device for connecting number quota, is applied to server, and described device includes Receiving unit, statistic unit, transmitting element:
The receiving unit, for receive user input allow access the connection number quota of the server;The company Connecing several quotas includes:Connection number corresponding to the total quota of connection, client terminal quantity quota and default at least one client Quota;
The statistic unit, the number information being connected is set up for counting with the server;The number information includes The number information of three types:The client that the connection sum and server foundation connection being connected is set up with the server The connection number that end number and the client are set up with the server;
The number information of any one type included when the number information is more than or equal to and the institute corresponding to it When stating the threshold range of connection number quota, then the transmitting element, the transmitting element, for the mailbox for prestoring are triggered Send prompt message.
Optionally, the number information of any one type that the number information includes be more than or equal to corresponding to it The threshold range of the connection number quota include:
It is described that threshold value model of the connection sum more than or equal to the total quota of the connection being connected is set up with the server Enclose;
And/or the client number being connected of being set up with the server is more than or equal to the client terminal quantity quota Threshold range;
And/or first the connection number set up with the server of client connected more than or equal to first client The threshold range of number quota.
Optionally, also including forbidding unit:
When the connection sum being connected of being set up with the server is more than or equal to the total quota of the connection;
And/or when the client number being connected with server foundation is matched somebody with somebody more than or equal to the client terminal quantity Volume;
And/or when the connection number that the first client is set up with the server connects more than or equal to first client When connecing several quotas, then forbid unit described in triggering, it is described to forbid unit, for forbidding the client to be set up with the server Connection;First client is any one client at least one client.
Optionally, the receiving unit be additionally operable to receive user input the client of permission second set up operation stream match somebody with somebody Volume;The second user end is any one client at least one client;
The statistic unit is additionally operable to the number of the operation stream that statistics second client is set up;
When the number of the operation stream is more than or equal to the operation stream quota, then forbid unit described in triggering, it is described Unit is forbidden to be additionally operable to forbid the client to set up the operation stream.
By above-mentioned technical proposal as can be seen that can be stored in server system user input allow access the service The connection number quota of device, wherein connection number quota includes:The total quota of connection, client terminal quantity quota and default at least one Connection number quota corresponding to client;When client and server are set up to be connected, server can be with programming count and the clothes Business device sets up the number information of connection;The number information includes the number information of three types:Set up with the server and connected What the connection sum and the client number and the client of server foundation connection that connect and the server were set up Connection number;The number information of any one type included when the number information is more than or equal to and the institute corresponding to it When stating the threshold range of connection number quota, then prompt message is sent to the mailbox for prestoring, can in order to server administrators To understand the loading condition of server connection, by the connection for controlling user end to server to set up, so that effectively control service The load of device, it is ensured that server is operated in a rational loading range.
Brief description of the drawings
In order to illustrate more clearly the embodiments of the present invention, the accompanying drawing to be used needed for embodiment will be done simply below Introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of control method for connecting number quota provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the control method of operation stream quota provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of control device for connecting number quota provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are not under the premise of creative work is made, and what is obtained is every other Embodiment, belongs to the scope of the present invention.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Next, a kind of control method of connection number quota that the embodiment of the present invention is provided is discussed in detail.Fig. 1 is this hair A kind of flow chart of the control method of connection number quota that bright embodiment is provided, is applied to server, and methods described includes:
S101:Receive user input allow access the connection number quota of the server.
In actual applications, when the connection number that client and server are set up is excessive, server operation can be increased Burden, particularly when server needs to provide service to multiple client simultaneously, may result in server operation speed it is slow, The problems such as causing loss of data when serious, for the connection number that can subsequently control to be set up with server, implement in the present invention In example, the connection number quota for allowing access server can be in the server pre-set.
Connection number quota can be used to indicate that the maximum of the connection number that server to be allowed to be accessed.
Wherein connection number quota can include:The total quota of connection, client terminal quantity quota and default at least one visitor Connection number quota corresponding to the end of family.
Client for the server, can allow multiple client and the clothes when being connected with server foundation Business device sets up connection, and for a client, its connection number set up with server can have multiple.Different clients Its corresponding connection number can be with identical, it is also possible to different.
The total quota of connection can be used to indicate that to be allowed to set up the total connection number being connected with server.Client terminal quantity quota Can be used to indicate that the number that the client being connected is set up with server.Each client has its corresponding IP address, Some IP address that the client being connected often is set up with server can be previously stored with the server, and can be in clothes Each client in these clients is pre-set in business device and sets up the number being connected, i.e. the client institute with server respectively Corresponding connection number quota.
In embodiments of the present invention, can realize that connection number is matched somebody with somebody by the extended attribute of the file system root directory of server Volume is prestored.For the file system of server, the growth data of root is easy to obtain, better performances, and Root is certainly existed, so, connection number quota can be pre-stored within the extended attribute of file system root directory.
In implementing, user can add corresponding parameter by setfattr orders, and the parameter is connection number Quota.Setfattr orders are the orders that file system sets directories/files extended attribute, mainly there is 3 parameters:Catalogue/text Part title, setting extension title, data, for example, setfattr/ " connect_quote " xx, xx is concrete numerical value, Ke Yishi Connection number quota corresponding to the total quota of connection, client terminal quantity quota or default at least one client.
The file system data of server generally comprises data and metadata;Data refer to the data of user, for example, picture Content, the content of audio;Metadata is provided to only for TOC level, file name, size, time for managing data etc. Preserve the overhead of data.
The whole file system metadata of distributed file system metadata service management, each catalogue of file system, File has corresponding metadata.Metadata profile attribute, can set multiple.Each extended attribute is by a title, one Individual data block composition.Server, can be by it with root extended attribute after the connection number quota for receiving user input Form, is stored in the metadata of root, in order to subsequently can conveniently obtain the connection number quota for prestoring.
S102:Count the number information set up with the server and be connected.
The number information includes the number information of three types:With the server set up the connection that be connected it is total and The server sets up the connection number that the client number and the client of connection are set up with the server.Wherein, The connection number that the client is set up with the server can be understood as the connection number of each client.
The connection total amount that the client that distributed file system has access to is set up with server, has for each connection Its corresponding network address+port numbers unique mark.For example, a computer can start multiple client, each client Multiple connections can be set up, each connection has its corresponding network address+port numbers.For same its network of server ground Location is identical, and client is set up when being connected with server, and server can be every connection one unique port numbers of distribution, namely There is its corresponding unique port number for each connection.Server is that client distributes a port number, that is, represent and establish One connection, the number information for setting up connection can be counted with this.
S103:The number information of any one type included when the number information be more than or equal to corresponding to it The connection number quota threshold range when, then send prompt message to the mailbox that prestores.
In embodiments of the present invention, each type of number information has its corresponding connection number quota.For example, client Hold corresponding with the connection sum and the total quota of connection that server sets up connection.The client number being connected is set up with server It is corresponding with client terminal quantity quota.The client being connected is set up with server at least one, at least one client For any one client in end is the first client, its connection number set up with server can have multiple.Wherein, First client is with connection number and the first client the connection number that the server is set up with corresponding.For the follow-up side of introduction Just, above-mentioned three kinds of corresponding relations can be referred to as between client and the connection number and connection number quota of server foundation Corresponding relation.
When the connection number that client and server are set up exceedes the connection number quota, the load that server can bear is Through reaching capacity, in order to ensure the normal operation of server, when the connection number that server is set up is close to the connection number quota, should This is pointed out accordingly, and to remind server administrators, the load of the server is soon close to maximum load level.In tool During body is realized, the threshold range of connection number quota can be set according to connection number quota, the threshold range can be used to indicate that clothes The upper loading limit value that business device can bear.
In the connection number of connection sum, client number and each client that number information includes wherein one It is individual close to its it is corresponding connection number quota threshold range when, then processed accordingly.Specifically, when described with the service When the connection sum that device sets up connection is more than or equal to the threshold range of the connection total quota;And/or when it is described with it is described When the client number that server sets up connection is more than or equal to the threshold range of the client terminal quantity quota;And/or when the The connection number that one client is set up with the server connects the threshold value model of number quota more than or equal to first client When enclosing, then prompt message is sent to the mailbox for prestoring.
Wherein, the mailbox for being prestored in server can be the Email Accounts of the server admin, and the prompt message can For remind server administrators, the server soon close to the maximum load level that it can bear, in order to manage Reason person can be processed in time, thus control server load be in can bear within the scope of.
For example, threshold range can be set to 80%, as a example by connecting total quota, when the total quota of connection is 100 When individual, the threshold range of its corresponding total quota of connection is 100*80%=80, namely is connected when being set up with server Connection sum more than or equal to 80 when, then send prompt message to the mailbox that prestores.
By above-mentioned technical proposal as can be seen that can be stored in server system user input allow access the service The connection number quota of device, wherein connection number quota includes:The total quota of connection, client terminal quantity quota and default at least one Connection number quota corresponding to client;When client and server are set up to be connected, server can be with programming count and the clothes Business device sets up the number information of connection;The number information includes the number information of three types:Set up with the server and connected What the connection sum and the client number and the client of server foundation connection that connect and the server were set up Connection number;The number information of any one type included when the number information is more than or equal to and the institute corresponding to it When stating the threshold range of connection number quota, then prompt message is sent to the mailbox for prestoring, can in order to server administrators To understand the loading condition of server connection, by the connection for controlling user end to server to set up, so that effectively control service The load of device, it is ensured that server is operated in a rational loading range.
It is considered that threshold value of the connection number more than the connection number quota for setting that client is set up with server may be present After scope, due to the influence of extraneous factor, server administrators are not processed this kind of situation, and now client still may be used New connection is set up with server, causes the connection number set up excessive, beyond the load level that server can bear, pin To such case, can be when number be connected more than or equal to connection number quota, server forbids new establishment of connection automatically.
Specifically, when the connection sum being connected with server foundation is matched somebody with somebody more than or equal to the connection sum Volume;And/or when the client number being connected of being set up with the server is more than or equal to the client terminal quantity quota; And/or when the connection number that the first client and the server are set up connects number quota more than or equal to first client When, then forbid the client to be set up with the server and be connected;First client is at least one client Any one client.
By aforesaid operations, the maximum number of connections of access server can be effectively controlled, so as to control the negative of server Carry, be further ensured that server is operated in a rational loading range.
In the above-described embodiments, it is controlled mainly for the connection number that client is set up with server, it is in addition, right For each connection, at least one operation stream can be simultaneously included in the connection, operation stream can regard a tool as The operation item of body, for example, a consumer process to certain file write, another process to certain file read, write-in and Read and be 2 operation streams.In a connection, while the operation stream for performing is more, the load of server is also bigger, therefore This, can increase the limitation to operation stream in embodiments of the present invention, so as to more be accurately controlled the load of server.Specifically Operating process as shown in Fig. 2 including:
S201:Receive the operation stream quota that the client of permission second of user input is set up.
The second user end is any one client at least one client.
Operation stream quota can be used to indicate that can be while the maximum of the operation item for performing in a connection.Example Such as, the operation stream quota of a connection is set to 5, then showing on which at most can be while performs 5 operation items.
For a client, its connection set up with server can have a plurality of, and every connection can be set Its corresponding operation stream quota, by taking any two connection as an example, the operation stream quota can be with identical, it is also possible to different.For example, with As a example by operation stream quota is identical, a client can be 10 with the connection number quota of server foundation, for this 10 companies For connecing, the operation stream quota that can be connected each is set to same numerical value, such as 5.
Wherein, the mode of server reception operation stream quota is similar with the mode of above-mentioned reception connection number quota, herein not Repeat again.
S202:Count the number of the operation stream that second client is set up.
S203:When the number of the operation stream is more than or equal to the operation stream quota, then the client is forbidden to build Found the operation stream.
The various file/directories operation of distributed file system, is initiated by client request.Each file is read Write, be required for opening file request, open action.The quantity of client operation stream, refers to simultaneously parallel operation stream.File is closed Close rear resource release and also just discharge client operation stream quota, to realize the purpose of resource quota.
It should be noted that the first client and the second client can be same clients, or different Client, does not limit herein.
Fig. 3 is a kind of structural representation of control device for connecting number quota provided in an embodiment of the present invention, is applied to clothes Business device, described device includes:Receiving unit 31, statistic unit 32, transmitting element 33:
The receiving unit 31, for receive user input allow access the connection number quota of the server;It is described Connection number quota includes:Connection corresponding to the total quota of connection, client terminal quantity quota and default at least one client Number quota.
The statistic unit 32, the number information being connected is set up for counting with the server;The number packet Include the number information of three types:The visitor that the connection sum and server foundation connection being connected is set up with the server The connection number that family end number and the client are set up with the server.
The number information of any one type included when the number information is more than or equal to and the institute corresponding to it When stating the threshold range of connection number quota, then trigger the transmitting element 33, the transmitting element 33, for prestoring Mailbox sends prompt message.
Optionally, the number information of any one type that the number information includes be more than or equal to corresponding to it The threshold range of the connection number quota include:
It is described that threshold value model of the connection sum more than or equal to the total quota of the connection being connected is set up with the server Enclose;
And/or the client number being connected of being set up with the server is more than or equal to the client terminal quantity quota Threshold range;
And/or first the connection number set up with the server of client connected more than or equal to first client The threshold range of number quota.
Optionally, also including forbidding unit:
When the connection sum being connected of being set up with the server is more than or equal to the total quota of the connection;
And/or when the client number being connected with server foundation is matched somebody with somebody more than or equal to the client terminal quantity Volume;
And/or when the connection number that the first client is set up with the server connects more than or equal to first client When connecing several quotas, then forbid unit described in triggering, it is described to forbid unit, for forbidding the client to be set up with the server Connection;First client is any one client at least one client.
Optionally, the receiving unit be additionally operable to receive user input the client of permission second set up operation stream match somebody with somebody Volume;The second user end is any one client at least one client.
The statistic unit is additionally operable to the number of the operation stream that statistics second client is set up.
When the number of the operation stream is more than or equal to the operation stream quota, then forbid unit described in triggering, it is described Unit is forbidden to be additionally operable to forbid the client to set up the operation stream.
The explanation of feature may refer to the related description of embodiment corresponding to Fig. 1 and Fig. 2 in embodiment corresponding to Fig. 3, this In no longer repeat one by one.
A kind of control method for connecting number quota provided by the present invention is described in detail with device above.Explanation Each embodiment is described by the way of progressive in book, what each embodiment was stressed be it is different from other embodiment it Place, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment, due to itself and reality Apply that method disclosed in example is corresponding, so description is fairly simple, related part is referring to method part illustration.Should refer to Go out, for those skilled in the art, under the premise without departing from the principles of the invention, can also be to the present invention Some improvement and modification are carried out, these are improved and modification is also fallen into the protection domain of the claims in the present invention.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, directly can be held with hardware, processor Capable software module, or the two combination is implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In field in known any other form of storage medium.

Claims (8)

1. it is a kind of connect number quota control method, it is characterised in that be applied to server, methods described includes:
Receive user input allow access the connection number quota of the server;The connection number quota includes:Connection sum Connection number quota corresponding to quota, client terminal quantity quota and default at least one client;
Count the number information set up with the server and be connected;The number information includes the number information of three types:With The server set up connection connection sum and the server set up the client number and the client of connection with The connection number that the server is set up;
The number information of any one type included when the number information is more than or equal to and the company corresponding to it When connecing the threshold range of several quotas, then prompt message is sent to the mailbox for prestoring.
2. method according to claim 1, it is characterised in that at least one class included when the number information When the number information of type is more than or equal to the threshold range with the connection number quota corresponding to it, then to the postal for prestoring Case sends prompt message to be included:
When the threshold range of the connection sum more than or equal to the total quota of the connection set up with the server and be connected When;
And/or when the client number being connected of being set up with the server is more than or equal to the client terminal quantity quota During threshold range;
And/or when the connection number that the first client and the server are set up connects number more than or equal to first client During the threshold range of quota, then prompt message is sent to the mailbox for prestoring.
3. method according to claim 2, it is characterised in that also include:
When the connection sum being connected of being set up with the server is more than or equal to the total quota of the connection;
And/or when the client number being connected of being set up with the server is more than or equal to the client terminal quantity quota;
And/or when the connection number that the first client and the server are set up connects number more than or equal to first client During quota, then forbid the client to be set up with the server and be connected;First client is at least one client Any one client in end.
4. the method according to claim 1-3 any one, it is characterised in that also include:
Receive the operation stream quota that the client of permission second of user input is set up;The second user end is described at least one Any one client in client;
Count the number of the operation stream that second client is set up;
When the number of the operation stream is more than or equal to the operation stream quota, then the client is forbidden to set up the operation Stream.
5. a kind of control device for connecting number quota, it is characterised in that be applied to server, described device include receiving unit, Statistic unit, transmitting element:
The receiving unit, for receive user input allow access the connection number quota of the server;The connection number Quota includes:Connection number quota corresponding to the total quota of connection, client terminal quantity quota and default at least one client;
The statistic unit, the number information being connected is set up for counting with the server;The number information includes three kinds The number information of type:The client of the connection sum and server foundation connection being connected is set up with the server The connection number that several and described client is set up with the server;
The number information of any one type included when the number information is more than or equal to and the company corresponding to it When connecing the threshold range of several quotas, then the transmitting element, the transmitting element, for being sent to the mailbox for prestoring are triggered Prompt message.
6. device according to claim 5, it is characterised in that any one type that the number information includes Number information is more than or equal to and includes with the threshold range of the connection number quota corresponding to it:
It is described that threshold range of the connection sum more than or equal to the total quota of the connection being connected is set up with the server;
And/or the threshold of the client number more than or equal to the client terminal quantity quota being connected with server foundation Value scope;
And/or first the connection number set up of client and the server match somebody with somebody more than or equal to first client connection number The threshold range of volume.
7. device according to claim 6, it is characterised in that also including forbidding unit:
When the connection sum being connected of being set up with the server is more than or equal to the total quota of the connection;
And/or when the client number being connected of being set up with the server is more than or equal to the client terminal quantity quota;
And/or when the connection number that the first client and the server are set up connects number more than or equal to first client During quota, then forbid unit described in triggering, it is described to forbid unit, connect for forbidding the client to be set up with the server Connect;First client is any one client at least one client.
8. the device according to claim 5-7 any one, it is characterised in that the receiving unit is additionally operable to receive user The operation stream quota that the client of permission second of input is set up;The second user end is appointing at least one client One client of meaning;
The statistic unit is additionally operable to the number of the operation stream that statistics second client is set up;
When the number of the operation stream is more than or equal to the operation stream quota, then forbid unit described in triggering, it is described to forbid Unit is additionally operable to forbid the client to set up the operation stream.
CN201710113056.1A 2017-02-28 2017-02-28 A kind of control method and device for connecting number quota Pending CN106909463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113056.1A CN106909463A (en) 2017-02-28 2017-02-28 A kind of control method and device for connecting number quota

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113056.1A CN106909463A (en) 2017-02-28 2017-02-28 A kind of control method and device for connecting number quota

Publications (1)

Publication Number Publication Date
CN106909463A true CN106909463A (en) 2017-06-30

Family

ID=59208869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113056.1A Pending CN106909463A (en) 2017-02-28 2017-02-28 A kind of control method and device for connecting number quota

Country Status (1)

Country Link
CN (1) CN106909463A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738205A (en) * 2020-12-25 2021-04-30 微梦创科网络科技(中国)有限公司 Resource management and control method, device and system based on service pool
US11438223B2 (en) 2017-09-29 2022-09-06 Comcast Cable Communications, Llc Adaptive capacity management of connections associated with a service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250669A (en) * 2007-03-30 2008-10-16 Nec Corp Web monitoring control system, web server control device and web server control program
CN101778105A (en) * 2010-01-20 2010-07-14 杭州华三通信技术有限公司 Method, system and equipment for obtaining real-time performance monitoring indicated numbers based on WEB
CN102916870A (en) * 2012-10-26 2013-02-06 苏州阔地网络科技有限公司 Method and system for controlling network connection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250669A (en) * 2007-03-30 2008-10-16 Nec Corp Web monitoring control system, web server control device and web server control program
CN101778105A (en) * 2010-01-20 2010-07-14 杭州华三通信技术有限公司 Method, system and equipment for obtaining real-time performance monitoring indicated numbers based on WEB
CN102916870A (en) * 2012-10-26 2013-02-06 苏州阔地网络科技有限公司 Method and system for controlling network connection

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11438223B2 (en) 2017-09-29 2022-09-06 Comcast Cable Communications, Llc Adaptive capacity management of connections associated with a service
US11855900B2 (en) 2017-09-29 2023-12-26 Comcast Cable Communications, Llc Adaptive capacity management of connections associated with a service
CN112738205A (en) * 2020-12-25 2021-04-30 微梦创科网络科技(中国)有限公司 Resource management and control method, device and system based on service pool
CN112738205B (en) * 2020-12-25 2023-04-07 微梦创科网络科技(中国)有限公司 Resource management and control method, device and system based on service pool

Similar Documents

Publication Publication Date Title
CN104023083B (en) The method and device of log collection cluster load balance
CN108111585A (en) Distributed storage method based on block chain
CN105242983B (en) A kind of date storage method and a kind of data storage management service device
US20090178058A1 (en) Application Aware Networking
CN103037008B (en) A kind of right management method of Synchronization Network dish and system
CN103166767B (en) Charging and band width control method, entity and system
CN107885859A (en) A kind of method, apparatus and computer-readable recording medium of file number quota
US20140092737A1 (en) Traffic control method and traffic control apparatus
US10817203B1 (en) Client-configurable data tiering service
CN106909463A (en) A kind of control method and device for connecting number quota
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
CN107506242A (en) A kind of quota application method and system
CN107277002A (en) The method for limiting same user account registration terminal quantity
CN109032799A (en) Storage resource management method, apparatus, equipment and readable storage medium storing program for executing
CN100411457C (en) System and method capable of ordering mail push
CN110109865A (en) A kind of date storage method, device, equipment and readable storage medium storing program for executing
CN108536544A (en) Consuming method, device, server based on database message queue and medium
CN101621758B (en) Service container system for SP/CP
CN107368404A (en) A kind of method of auditing administration and system
EP3269098B1 (en) Large data management in communication applications through multiple mailboxes
CN107172152A (en) One kind counts quota system and method based on CEPH cluster CAP mechanism
JP2002044292A (en) Method of accounting charge for use of circuit resource, method and system for assigning circuit resource
CN108156009A (en) A kind of service calling method and device
CN109558554A (en) A kind of online method for previewing of document based on distributed objects storage system
CN106101184A (en) A kind of document down loading method and playback equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170630