CN114726791A - Method and device for determining flow control threshold, electronic equipment and computer storage medium - Google Patents

Method and device for determining flow control threshold, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN114726791A
CN114726791A CN202210268634.XA CN202210268634A CN114726791A CN 114726791 A CN114726791 A CN 114726791A CN 202210268634 A CN202210268634 A CN 202210268634A CN 114726791 A CN114726791 A CN 114726791A
Authority
CN
China
Prior art keywords
flow control
file
control threshold
determining
file system
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
CN202210268634.XA
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210268634.XA priority Critical patent/CN114726791A/en
Publication of CN114726791A publication Critical patent/CN114726791A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2416Real-time traffic
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a method, a device, an electronic device and a computer storage medium for determining a flow control threshold, wherein the method comprises the following steps: firstly, aiming at each file system in a server cluster, collecting related information of file storage on the file system; wherein the relevant information of the file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained; then, determining a first flow control threshold value according to the file size in the file storage; determining a second flow control threshold according to the file capacity in the file storage; determining a third flow control threshold according to the client side concurrent access amount stored in the file; and finally, determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold and the third flow control threshold. Therefore, the purposes of dynamically adjusting the flow control threshold value and accurately controlling the flow are achieved.

Description

Method and device for determining flow control threshold, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a flow control threshold, an electronic device, and a computer storage medium.
Background
The existing flow control method of the distributed file system gateway judges whether the current state of a receiving flag bit is an acceptable state or not in advance by detecting the received flow request message, receives the flow request message only in the acceptable state, and processes the flow request message received in the process by timing if the current state of the receiving flag bit is the acceptable state, thereby achieving the stability of the system.
However, the distributed file storage has different requirements for performance according to different service usage scenarios, and factors of a gateway cluster and a service model are not considered in an integrated manner, so that the existing flow control method is not accurate.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, an electronic device, and a computer storage medium for determining a flow control threshold, which can dynamically adjust the flow control threshold, so as to accurately perform flow control.
The application provides a method for determining a flow control threshold in a first aspect, including:
for each file system in a server cluster, collecting related information of file storage on the file system; wherein the relevant information of the file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained;
determining a first flow control threshold value according to the file size in the file storage;
determining a second flow control threshold according to the file capacity in the file storage;
determining a third flow control threshold according to the client side concurrent access amount stored in the file;
and determining the flow control threshold value of the file system according to the first flow control threshold value, the second flow control threshold value and the third flow control threshold value.
Optionally, the determining a first flow control threshold according to the file size in the file storage includes:
and taking the product of the file size in the file storage and the flow control coefficient corresponding to the preset file size as a first flow control threshold value.
Optionally, the determining a second streaming threshold according to the file capacity in the file storage includes:
and taking the product of the file capacity in the file storage and the flow control coefficient corresponding to the preset file capacity as a second flow control threshold value.
Optionally, the determining a third flow control threshold according to the client concurrent access amount stored in the file includes:
and taking the product of the client side concurrent access amount stored in the file and a flow control coefficient corresponding to the preset client side concurrent access amount as a third flow control threshold value.
Optionally, the determining a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold includes:
and taking the sum of the first flow control threshold, the second flow control threshold and the third flow control threshold as the flow control threshold of the file system.
Optionally, after determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold, the method further includes:
taking the sum of the flows of the physical network cards provided by each server in the server cluster as the total flow which can be provided by the server cluster;
respectively determining the flow control ratio of each file system in the server cluster;
and regarding each file system in the server cluster, taking the product of the flow control occupation ratio of the file system and the total flow as a flow control flow value of the file system.
Optionally, the determining the flow control ratio of each file system in the server cluster respectively includes:
summing the flow control thresholds of all the file systems to obtain the sum of the flow control thresholds;
and regarding each file system, taking the quotient of the flow control threshold of the file system and the sum of the flow control thresholds as the flow control ratio of the file system.
A second aspect of the present application provides an apparatus for determining a flow control threshold, including:
the acquisition unit is used for acquiring relevant information of file storage on each file system in the server cluster; wherein the relevant information of the file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained;
the first determining unit is used for determining a first flow control threshold value according to the file size in the file storage;
a second determining unit, configured to determine a second streaming threshold according to a file capacity in the file storage;
a third determining unit, configured to determine a third streaming control threshold according to the client concurrent access amount stored in the file;
a fourth determining unit, configured to determine a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold.
Optionally, the first determining unit includes:
and the first determining subunit is used for taking the product of the file size in the file storage and the flow control coefficient corresponding to the preset file size as a first flow control threshold value.
Optionally, the second determining unit includes:
and the second determining subunit is used for taking the product of the file capacity in the file storage and the flow control coefficient corresponding to the preset file capacity as a second flow control threshold value.
Optionally, the third determining unit includes:
and the third determining subunit is configured to use a product of the client concurrent access amount stored in the file and a flow control coefficient corresponding to a preset client concurrent access amount as a third flow control threshold.
Optionally, the fourth determining unit includes:
and the fourth determining subunit is configured to use a sum of the first flow control threshold, the second flow control threshold, and the third flow control threshold as the flow control threshold of the file system.
Optionally, the method for determining the flow control threshold further includes:
the first computing unit is used for taking the sum of the physical network card flow provided by each server in the server cluster as the total flow which can be provided by the server cluster;
the flow control ratio determining unit is used for respectively determining the flow control ratio of each file system in the server cluster;
and a second calculation unit, configured to take a product of the flow control percentage of the file system and the total flow as a flow control flow value of the file system for each file system in the server cluster.
Optionally, the flow control ratio determining unit includes:
the third calculation unit is used for summing the flow control threshold values of all the file systems to obtain the sum of the flow control threshold values;
and a fourth determining unit, configured to, for each file system, use a quotient of a flow control threshold of the file system and a sum of the flow control thresholds as a flow control percentage of the file system.
A third aspect of the present application provides an electronic device comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for determining a flow control threshold as described in any of the first aspects.
A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for determining a flow control threshold according to any one of the first aspect.
As can be seen from the foregoing solutions, the present application provides a method, an apparatus, an electronic device, and a computer storage medium for determining a flow control threshold, where the method for determining a flow control threshold includes: firstly, aiming at each file system in a server cluster, collecting related information of file storage on the file system; wherein the relevant information of the file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained; then, determining a first flow control threshold value according to the file size in the file storage; determining a second flow control threshold according to the file capacity in the file storage; determining a third flow control threshold according to the client side concurrent access amount stored in the file; and finally, determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold and the third flow control threshold. Therefore, the purposes of dynamically adjusting the flow control threshold value and accurately controlling the flow are achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a specific flowchart of a method for determining a flow control threshold according to an embodiment of the present disclosure;
fig. 2 is a specific flowchart of a method for determining a flow control threshold according to another embodiment of the present application;
fig. 3 is a specific flowchart of a method for determining a flow control ratio according to another embodiment of the present application;
fig. 4 is a schematic diagram of a flow control threshold determination apparatus according to another embodiment of the present application;
fig. 5 is a schematic diagram of a flow control threshold determination apparatus according to another embodiment of the present application;
fig. 6 is a schematic diagram of a flow control ratio determining unit according to another embodiment of the present application;
fig. 7 is a schematic diagram of an electronic device implementing a method for determining a flow control threshold according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the terms "first", "second", and the like in this application are only used for distinguishing different apparatuses, modules or units, and are not used for limiting the order or interdependence of functions performed by these apparatuses, modules or units, and the terms "include", or any other variants thereof are intended to cover non-exclusive inclusions, so that a process, a method, an article or a device including a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such a process, a method, an article or a device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a method for determining a flow control threshold, which specifically includes the following steps as shown in fig. 1:
s101, collecting relevant information of file storage on each file system in the server cluster.
The relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage, and the client concurrent access volume of the file storage.
S102, determining a first flow control threshold value according to the file size in the file storage.
Optionally, in another embodiment of the present application, an implementation manner of step S102 specifically includes:
and taking the product of the file size in the file storage and the flow control coefficient corresponding to the preset file size as a first flow control threshold value.
The flow control coefficient corresponding to the preset file size is preset and changed by a technician or a related authorized worker in advance, and is not limited here.
S103, determining a second flow control threshold according to the file capacity in the file storage.
Optionally, in another embodiment of the present application, an implementation manner of step S103 specifically includes:
and taking the product of the file capacity in the file storage and the flow control coefficient corresponding to the preset file capacity as a second flow control threshold value.
The flow control coefficient corresponding to the preset file capacity is preset and changed by a technician or a related authorized worker in advance, and is not limited here.
And S104, determining a third flow control threshold according to the client side concurrent access amount stored in the file.
Optionally, in another embodiment of the present application, an implementation manner of step S104 specifically includes:
and taking the product of the client side concurrent access amount stored in the file and a flow control coefficient corresponding to the preset client side concurrent access amount as a third flow control threshold value.
The flow control coefficient corresponding to the preset client concurrent access amount is preset and changed by a technician or a related authorized worker in advance, and is not limited here.
It should be noted that the flow control coefficient corresponding to the preset file size, the flow control coefficient corresponding to the preset file capacity, and the flow control coefficient corresponding to the preset client concurrent access amount may be the same or different, for example, the flow control coefficient corresponding to the preset file size is 0.7, the flow control coefficient corresponding to the preset file capacity is 0.8, and the flow control coefficient corresponding to the preset client concurrent access amount is 0.9; if the flow control coefficient corresponding to the preset file size is 0.7, the flow control coefficient corresponding to the preset file capacity is 0.8, and the flow control coefficient corresponding to the preset client concurrent access amount is 0.7; for example, the flow control coefficient corresponding to the preset file size is 0.7, the flow control coefficient corresponding to the preset file capacity is 0.7, and the flow control coefficient corresponding to the preset client concurrent access amount is 0.7.
And S105, determining a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold and the third flow control threshold.
Optionally, in another embodiment of the present application, an implementation manner of step S105 specifically includes:
and taking the sum of the first flow control threshold, the second flow control threshold and the third flow control threshold as the flow control threshold of the file system.
According to the above scheme, the present application provides a method for determining a flow control threshold value: firstly, aiming at each file system in a server cluster, collecting related information of file storage on the file system; wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained; then, determining a first flow control threshold value according to the file size in the file storage; determining a second flow control threshold according to the file capacity in the file storage; determining a third flow control threshold according to the client side concurrent access amount stored in the file; and finally, determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold and the third flow control threshold. Therefore, the purposes of dynamically adjusting the flow control threshold value and accurately controlling the flow are achieved.
Optionally, in another embodiment of the present application, an implementation manner of the method for determining a flow control threshold, as shown in fig. 2, includes:
s201, aiming at each file system in the server cluster, collecting related information of file storage on the file system.
Wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage, and the client concurrent access volume of the file storage.
S202, determining a first flow control threshold value according to the file size in the file storage.
S203, determining a second flow control threshold value according to the file capacity in the file storage.
And S204, determining a third flow control threshold according to the client side concurrent access amount stored in the file.
S205, determining a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold and the third flow control threshold.
It should be noted that the specific implementation process of steps S201 to S205 is the same as the specific implementation process of steps S101 to S105, and they can be referred to each other.
And S206, taking the sum of the flows of the physical network cards provided by the servers in the server cluster as the total flow which can be provided by the server cluster.
And S207, respectively determining the flow control ratio of each file system in the server cluster.
Optionally, in another embodiment of the present application, an implementation manner of step S207, as shown in fig. 3, includes:
and S301, summing the flow control thresholds of all the file systems to obtain the sum of the flow control thresholds.
S302, regarding each file system, taking the quotient of the flow control threshold value of the file system and the sum of the flow control threshold values as the flow control ratio of the file system.
And S208, regarding each file system in the server cluster, taking the product of the flow control occupation ratio and the total flow of the file system as a flow control flow value of the file system.
Such as: the total flow that the server cluster can provide is 7000, the sum of flow control thresholds is 1000, the flow control threshold of the file system a is 200, the flow control duty of the file system a is 20%, and the flow control flow value of the file system a is 7000 × 20% ═ 1400.
According to the above scheme, the present application provides a method for determining a flow control threshold value: firstly, aiming at each file system in a server cluster, collecting related information of file storage on the file system; wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained; then, determining a first flow control threshold value according to the file size in the file storage; determining a second flow control threshold according to the file capacity in the file storage; determining a third flow control threshold according to the client side concurrent access amount stored in the file; and finally, determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold and the third flow control threshold. After the flow control threshold value of each file system is determined, the sum of the flows of the physical network cards provided by each server in the server cluster is used as the total flow which can be provided by the server cluster, the flow control ratio of each file system in the server cluster is determined, and finally, the product of the flow control ratio and the total flow of the file systems is used as the flow control flow value of the file systems for each file system in the server cluster. Therefore, the purposes of dynamically adjusting the flow control threshold value and accurately controlling the flow are achieved.
Another embodiment of the present application provides a method for determining a flow control threshold, as shown in fig. 4, specifically including:
the collecting unit 401 is configured to collect, for each file system in the server cluster, related information stored in the file system.
Wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage, and the client concurrent access volume of the file storage.
A first determining unit 402, configured to determine a first streaming threshold according to a file size in the file storage.
Optionally, in another embodiment of the present application, an implementation manner of the first determining unit 402 includes:
and the first determining subunit is used for taking the product of the file size in the file storage and the flow control coefficient corresponding to the preset file size as a first flow control threshold value.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
A second determining unit 403, configured to determine a second streaming threshold according to the file capacity in the file storage.
Optionally, in another embodiment of the present application, an implementation manner of the second determining unit 403 includes:
and the second determining subunit is used for taking the product of the file capacity in the file storage and the flow control coefficient corresponding to the preset file capacity as a second flow control threshold.
For the specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
A third determining unit 404, configured to determine a third streaming control threshold according to the client concurrent access amount of the file storage.
Optionally, in another embodiment of the present application, an implementation manner of the third determining unit 404 includes:
and the third determining subunit is configured to use a product of the client concurrent access amount stored in the file and a flow control coefficient corresponding to the preset client concurrent access amount as a third flow control threshold.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
A fourth determining unit 405, configured to determine a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 1, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the fourth determining unit 405 includes:
and the fourth determining subunit is configured to use the sum of the first flow control threshold, the second flow control threshold, and the third flow control threshold as the flow control threshold of the file system.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
According to the above solution, the present application provides a flow control threshold determination device: firstly, an acquisition unit 401 acquires, for each file system in a server cluster, related information stored in a file on the file system; wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained; then, the first determining unit 402 determines a first streaming threshold according to the file size in the file storage; the second determining unit 403 determines a second streaming threshold according to the file capacity in the file storage; the third determining unit 404 determines a third flow control threshold according to the client concurrent access amount stored in the file; finally, the fourth determining unit 405 determines the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold. Therefore, the purposes of dynamically adjusting the flow control threshold value and accurately controlling the flow are achieved.
Optionally, in another embodiment of the present application, an implementation manner of the apparatus for determining a flow control threshold, as shown in fig. 5, includes:
the collecting unit 501 is configured to collect, for each file system in the server cluster, related information stored in the file system.
Wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage, and the client concurrent access volume of the file storage.
The first determining unit 502 is configured to determine a first streaming threshold according to a file size in the file storage.
A second determining unit 503, configured to determine a second streaming threshold according to the file capacity in the file storage.
A third determining unit 504, configured to determine a third streaming control threshold according to the client concurrent access amount of the file storage.
A fourth determining unit 505, configured to determine a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold.
The first calculating unit 506 is configured to use a sum of the physical network card traffic provided by each server in the server cluster as a total traffic that can be provided by the server cluster.
A flow control ratio determining unit 507, configured to determine a flow control ratio of each file system in the server cluster respectively.
Optionally, in another embodiment of the present application, an implementation manner of the flow control ratio determining unit 507, as shown in fig. 6, includes:
the third calculating unit 601 is configured to sum the flow control thresholds of all file systems to obtain a flow control threshold sum.
A fourth determining unit 602, configured to take a quotient of a flow control threshold of the file system and a sum of the flow control thresholds as a flow control percentage of the file system for each file system.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 3, which is not described herein again.
A second calculating unit 508, configured to use, for each file system in the server cluster, a product of a flow control percentage of the file system and the total flow as a flow control flow value of the file system.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 2, which is not described herein again.
According to the above solution, the present application provides a flow control threshold determination device: first, the acquisition unit 501 acquires, for each file system in a server cluster, related information stored in a file on the file system; wherein, the relevant information of file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained; then, the first determining unit 502 determines a first streaming threshold according to the file size in the file storage; the second determining unit 503 determines a second streaming threshold according to the file capacity in the file storage; a third determining unit 504 determines a third flow control threshold according to the client-side concurrent access amount stored in the file; finally, the fourth determining unit 505 determines the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold. After determining the flow control threshold of each file system, the first calculating unit 506 uses the sum of the flows of the physical network cards provided by each server in the server cluster as the total flow that can be provided by the server cluster, the flow control ratio determining unit 507 determines the flow control ratio of each file system in the server cluster, and finally, the second calculating unit 508 uses the product of the flow control ratio and the total flow of the file system as the flow control flow value of the file system for each file system in the server cluster. Therefore, the purposes of dynamically adjusting the flow control threshold value and accurately controlling the flow are achieved.
Another embodiment of the present application provides an electronic device, as shown in fig. 7, including:
one or more processors 701.
A storage 702 having one or more programs stored thereon.
The one or more programs, when executed by the one or more processors 701, cause the one or more processors 701 to implement a method of determining a flow control threshold as described in any of the above embodiments.
Another embodiment of the present application provides a computer storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method for determining a flow control threshold value as in any one of the above embodiments.
In the above embodiments disclosed in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a live broadcast device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for determining a flow control threshold value is characterized by comprising the following steps:
for each file system in a server cluster, collecting related information of file storage on the file system; wherein the relevant information of the file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained;
determining a first flow control threshold value according to the file size in the file storage;
determining a second flow control threshold according to the file capacity in the file storage;
determining a third flow control threshold according to the client side concurrent access amount stored in the file;
and determining the flow control threshold value of the file system according to the first flow control threshold value, the second flow control threshold value and the third flow control threshold value.
2. The method according to claim 1, wherein determining the first flow control threshold according to the file size in the file storage comprises:
and taking the product of the file size in the file storage and the flow control coefficient corresponding to the preset file size as a first flow control threshold value.
3. The method of claim 1, wherein determining the second streaming threshold based on the file size in the file store comprises:
and taking the product of the file capacity in the file storage and the flow control coefficient corresponding to the preset file capacity as a second flow control threshold value.
4. The method according to claim 1, wherein the determining a third flow control threshold according to the client concurrent access amount of the file storage includes:
and taking the product of the client side concurrent access amount stored in the file and a flow control coefficient corresponding to the preset client side concurrent access amount as a third flow control threshold value.
5. The method according to claim 1, wherein determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold includes:
and taking the sum of the first flow control threshold, the second flow control threshold and the third flow control threshold as the flow control threshold of the file system.
6. The method according to claim 1, wherein after determining the flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold, the method further includes:
taking the sum of the flows of the physical network cards provided by each server in the server cluster as the total flow which can be provided by the server cluster;
respectively determining the flow control ratio of each file system in the server cluster;
and regarding each file system in the server cluster, taking the product of the flow control occupation ratio of the file system and the total flow as a flow control flow value of the file system.
7. The method according to claim 6, wherein the separately determining a flow control fraction of each file system in the server cluster includes:
summing the flow control thresholds of all the file systems to obtain the sum of the flow control thresholds;
and regarding each file system, taking the quotient of the flow control threshold of the file system and the sum of the flow control thresholds as the flow control ratio of the file system.
8. A flow control threshold determination apparatus, comprising:
the system comprises a collecting unit, a file storing unit and a processing unit, wherein the collecting unit is used for collecting relevant information of file storage on each file system in a server cluster; wherein the related information of the file storage comprises: the file size in the file storage, the file capacity in the file storage and the client concurrent access amount of the file storage are obtained;
the first determining unit is used for determining a first flow control threshold value according to the file size in the file storage;
a second determining unit, configured to determine a second streaming threshold according to a file capacity in the file storage;
a third determining unit, configured to determine a third flow control threshold according to the client concurrent access amount stored in the file;
a fourth determining unit, configured to determine a flow control threshold of the file system according to the first flow control threshold, the second flow control threshold, and the third flow control threshold.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for determining a fluidic threshold of any of claims 1 to 7.
10. A computer storage medium, characterized in that a computer program is stored thereon, wherein the computer program, when being executed by a processor, implements the method of determining a flow control threshold value according to any one of claims 1 to 7.
CN202210268634.XA 2022-03-18 2022-03-18 Method and device for determining flow control threshold, electronic equipment and computer storage medium Pending CN114726791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210268634.XA CN114726791A (en) 2022-03-18 2022-03-18 Method and device for determining flow control threshold, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210268634.XA CN114726791A (en) 2022-03-18 2022-03-18 Method and device for determining flow control threshold, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN114726791A true CN114726791A (en) 2022-07-08

Family

ID=82237440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210268634.XA Pending CN114726791A (en) 2022-03-18 2022-03-18 Method and device for determining flow control threshold, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN114726791A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079006A1 (en) * 2012-11-21 2014-05-30 华为技术有限公司 Flow control method and device for ospf messages
CN106649406A (en) * 2015-11-04 2017-05-10 华为技术有限公司 Method and device for storing file in self-adaption mode
CN107193500A (en) * 2017-05-26 2017-09-22 郑州云海信息技术有限公司 A kind of distributed file system Bedding storage method and system
CN108923996A (en) * 2018-05-11 2018-11-30 中国银联股份有限公司 A kind of capacity analysis method and device
CN110381456A (en) * 2019-07-19 2019-10-25 珠海格力电器股份有限公司 Flow management system and flow threshold calculation method, air-conditioning system
CN110996352A (en) * 2019-12-20 2020-04-10 众安在线财产保险股份有限公司 Flow control method and device, computer equipment and storage medium
CN112437018A (en) * 2020-11-19 2021-03-02 百度在线网络技术(北京)有限公司 Flow control method, device, equipment and storage medium for distributed cluster
CN113055300A (en) * 2019-12-27 2021-06-29 阿里巴巴集团控股有限公司 Flow control method and device
CN113301075A (en) * 2020-05-18 2021-08-24 阿里巴巴集团控股有限公司 Flow control method, distributed system, device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079006A1 (en) * 2012-11-21 2014-05-30 华为技术有限公司 Flow control method and device for ospf messages
CN106649406A (en) * 2015-11-04 2017-05-10 华为技术有限公司 Method and device for storing file in self-adaption mode
CN107193500A (en) * 2017-05-26 2017-09-22 郑州云海信息技术有限公司 A kind of distributed file system Bedding storage method and system
CN108923996A (en) * 2018-05-11 2018-11-30 中国银联股份有限公司 A kind of capacity analysis method and device
CN110381456A (en) * 2019-07-19 2019-10-25 珠海格力电器股份有限公司 Flow management system and flow threshold calculation method, air-conditioning system
CN110996352A (en) * 2019-12-20 2020-04-10 众安在线财产保险股份有限公司 Flow control method and device, computer equipment and storage medium
CN113055300A (en) * 2019-12-27 2021-06-29 阿里巴巴集团控股有限公司 Flow control method and device
CN113301075A (en) * 2020-05-18 2021-08-24 阿里巴巴集团控股有限公司 Flow control method, distributed system, device and storage medium
CN112437018A (en) * 2020-11-19 2021-03-02 百度在线网络技术(北京)有限公司 Flow control method, device, equipment and storage medium for distributed cluster

Similar Documents

Publication Publication Date Title
CN109936511B (en) Token obtaining method, device, server, terminal equipment and medium
CN109525500B (en) Information processing method and information processing device capable of automatically adjusting threshold
CN109597800B (en) Log distribution method and device
CN110661829B (en) File downloading method and device, client and computer readable storage medium
CN108259426B (en) DDoS attack detection method and device
CN110933136A (en) Service node selection method, device, equipment and readable storage medium
CN111782383A (en) Task allocation method, server, electronic terminal and computer readable storage medium
CN105260639A (en) Face recognition system data update method and device
CN109086307A (en) The method and device of file process
CN112511650A (en) Video uploading method, device, equipment and readable storage medium
CN110944016B (en) DDoS attack detection method, device, network equipment and storage medium
CN109121157B (en) Network speed limit determining method, terminal and storage medium
CN114726791A (en) Method and device for determining flow control threshold, electronic equipment and computer storage medium
CN112073327B (en) Anti-congestion software distribution method, device and storage medium
CN108965386B (en) Identification method and device for shared access terminal
CN108282495B (en) DNS hijacking defense method and device
CN113132247B (en) Management method, system and storage medium suitable for distributed flow collection
CN111885354B (en) Service improvement discrimination method and device for bank outlets
CN104881245A (en) Configuration method and device of storage system
CN113723646A (en) Vehicle parking method and device and terminal equipment
CN110213728B (en) Method and device for adjusting port weight
CN112929923A (en) Uplink resource acquisition method and device, mobile terminal and readable storage medium
CN111198986A (en) Information sending method and device, electronic equipment and storage medium
CN108462595B (en) Account processing system, method for determining disposal window period and server
CN110837431A (en) Service control method, service control device, computer equipment and computer-readable 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