CN113852490A - Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system - Google Patents

Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system Download PDF

Info

Publication number
CN113852490A
CN113852490A CN202110950602.3A CN202110950602A CN113852490A CN 113852490 A CN113852490 A CN 113852490A CN 202110950602 A CN202110950602 A CN 202110950602A CN 113852490 A CN113852490 A CN 113852490A
Authority
CN
China
Prior art keywords
client
bandwidth
bandwidth threshold
samba
service
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
CN202110950602.3A
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202110950602.3A priority Critical patent/CN113852490A/en
Publication of CN113852490A publication Critical patent/CN113852490A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5061Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the interaction between service providers and their network customers, e.g. customer relationship management
    • H04L41/5067Customer-centric QoS measurements
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device and equipment for realizing quality of service (QoS) of a samba user in a distributed storage system, wherein the method comprises the following steps: firstly, a node bandwidth threshold, a client bandwidth threshold and a maximum connection number value in the samba service are obtained, then, when the client is detected to be connected to the samba service, the bandwidth of the client connection is controlled according to the client bandwidth threshold, the controlled client connection bandwidth value is written into a database, then, the total bandwidth of all client connections connected to the samba service is periodically obtained and compared with the node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, QoS alarm is carried out; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm. Therefore, the bandwidth of the samba user can be controlled and operated, and the robustness, the usability and the function richness of the distributed storage system are improved.

Description

Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for implementing QoS of samba users in a distributed storage system.
Background
With the rapid development of computer technology, the network data processing amount is increased along with storm wind. The processing requirement of mass data puts higher requirements on the storage performance of a computer system, so that the rapid development of a distributed storage system is accelerated, and the distributed storage system is widely applied to the fields of IT enterprises, cloud computing, big data, virtualization and the like.
In a distributed storage system using a samba protocol as an interface, no matter whether the back-end is connected with a local storage or a distributed storage, the control on the bandwidth access rate is not realized, and once the traffic volume accessed through samba is increased sharply, a larger service pressure is inevitably caused for the back-end storage, and the stability of the system is influenced. Therefore, how to realize bandwidth acquisition and control of samba connection in a distributed storage system to reduce the service pressure of the system, and further improve the robustness, usability and functional richness of the system is a problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the application mainly aims to provide a method, a device and equipment for realizing quality of service (QoS) of a samba user in a distributed storage system, which can control and operate the bandwidth of the samba user, so that the robustness, the usability and the function richness of the distributed storage system are improved.
In a first aspect, an embodiment of the present application provides a method for implementing QoS of a samba user in a distributed storage system, including:
acquiring a node bandwidth threshold, a client bandwidth threshold and a maximum connection number in samba service;
when the client is detected to be connected to the samba service, controlling the bandwidth of the client connection according to the bandwidth threshold of the client, and writing the controlled bandwidth value of the client connection into a database;
periodically acquiring the total bandwidth of all client connections connected to the samba service, comparing the total bandwidth with the node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, performing QoS (quality of service) alarm; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm.
Optionally, the method further includes:
receiving modification operation of a user on the bandwidth threshold of the client through a management interface;
and responding to the modification operation of the user on the client bandwidth threshold, modifying the client bandwidth threshold, and writing the modified client bandwidth threshold into a database.
Optionally, the method further includes:
receiving modification operation of a user on the node bandwidth threshold through a management interface;
and responding to the modification operation of the user on the node bandwidth threshold, modifying the node bandwidth threshold, and writing the modified client bandwidth threshold into a database.
Optionally, the periodically obtaining a total band of all client connections connected to the samba service includes:
and utilizing a timer to periodically acquire the total bandwidth of all client connections connected to the samba service.
In a second aspect, an embodiment of the present application further provides a device for implementing a samba user QoS in a distributed storage system, including:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a node bandwidth threshold, a client bandwidth threshold and a maximum connection number in samba service;
the control unit is used for controlling the bandwidth of client connection according to the client bandwidth threshold value when the client is detected to be connected to the samba service, and writing the controlled client connection bandwidth value into a database;
the second acquisition unit is used for periodically acquiring the total bandwidth of all client connections connected to the samba service, comparing the total bandwidth with the node bandwidth threshold, and performing QoS alarm if the total bandwidth is greater than the node bandwidth threshold; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm.
Optionally, the apparatus further comprises:
the first receiving unit is used for receiving the modification operation of the client bandwidth threshold value by a user through a management interface;
and the first modifying unit is used for responding to the modifying operation of the user on the client bandwidth threshold, modifying the client bandwidth threshold and writing the modified client bandwidth threshold into a database.
Optionally, the apparatus further comprises:
the second receiving unit is used for receiving the modification operation of the user on the node bandwidth threshold through a management interface;
and the second modification unit is used for responding to the modification operation of the user on the node bandwidth threshold, modifying the node bandwidth threshold and writing the modified client bandwidth threshold into a database.
Optionally, the second obtaining unit is specifically configured to:
and utilizing a timer to periodically acquire the total bandwidth of all client connections connected to the samba service.
The embodiment of the present application further provides a device for implementing QoS of samba users in a distributed storage system, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is used for storing one or more programs, and the one or more programs comprise instructions which, when executed by the processor, cause the processor to execute any implementation manner of the samba user QoS implementation method in the distributed storage system.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is enabled to execute any implementation manner of the samba user QoS implementation method in the distributed storage system.
According to the method, the device and the equipment for realizing the QoS of the samba users in the distributed storage system, firstly, a node bandwidth threshold value, a client bandwidth threshold value and a maximum connection number value in samba service are obtained, then, when the fact that the client is connected to the samba service is detected, the bandwidth of client connection is controlled according to the client bandwidth threshold value, the controlled client connection bandwidth value is written into a database, then, the total bandwidth of all client connections connected to the samba service is periodically obtained and compared with the node bandwidth threshold value, and if the total bandwidth is larger than the node bandwidth threshold value, QoS warning is carried out; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm. Therefore, the bandwidth of the samba user can be controlled and operated, and the robustness, the usability and the function richness of the distributed storage system are improved.
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, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for implementing QoS of samba users in a distributed storage system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a specific implementation process of Qos bandwidth control according to an embodiment of the present application;
fig. 3 is a schematic diagram of a Qos bandwidth control implementation logic view provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a physical view of a specific implementation of Qos bandwidth control provided in an embodiment of the present application;
fig. 5 is a schematic composition diagram of a samba user QoS implementation apparatus in a distributed storage system according to an embodiment of the present application.
Detailed Description
With the increasing of the application scale of big data, the processing requirement of mass data puts higher demands on the storage performance of the computer system. Therefore, rapid development of the distributed storage system is accelerated, the distributed storage system is widely applied to the fields of IT enterprises, cloud computing, big data, virtualization and the like, in the distributed storage system taking the samba protocol as an interface, no matter whether the back end is connected with local storage or distributed storage, control over bandwidth access rate is not achieved, once the business volume accessed through samba is increased rapidly, higher business pressure is inevitably caused to the back end storage, and the stability of the system is influenced. Therefore, how to realize bandwidth acquisition and control of samba connection in a distributed storage system to reduce the service pressure of the system, and further improve the robustness, usability and functional richness of the system is a problem to be solved urgently at present.
In order to solve the above-mentioned defects, an embodiment of the present application provides a method for implementing a samba user QoS in a distributed storage system, where a node bandwidth threshold, a client bandwidth threshold, and a maximum connection number in a samba service are first obtained, then, when it is detected that a client is connected to the samba service, a bandwidth connected to the client is controlled according to the client bandwidth threshold, and the controlled client connection bandwidth value is written into a database, then, a total bandwidth of all client connections connected to the samba service is periodically obtained and compared with the node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, a QoS alarm is performed; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm. Therefore, the bandwidth of the samba user can be controlled and operated, and the robustness, the usability and the function richness of the distributed storage system are improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First embodiment
Referring to fig. 1, a schematic flow chart of a method for implementing QoS of samba users in a distributed storage system provided in this embodiment is shown, where the method includes the following steps:
s101: and acquiring a node bandwidth threshold, a client bandwidth threshold and a maximum connection number in the samba service.
In this embodiment, in the storage system using the samba protocol as the interface, no matter whether the backend is connected to the local storage or the distributed storage, the control on the bandwidth access rate is not implemented, and once the traffic volume accessed through samba is increased sharply, a large traffic pressure is inevitably generated for the backend storage, which affects the stability of the system. And the service access rate of the current connection is acquired in real time, so that more bases can be provided for analyzing the service pressure rule. Therefore, the applicant thinks that the bandwidth acquisition and control of the samba connection can be realized by taking the same as the positioning.
In order to improve the robustness, usability and function richness of the distributed storage system, in this embodiment, when a cluster is started, a node bandwidth threshold, a client bandwidth threshold and a maximum connection number are read from an smb.conf configuration file of samba service as default values, and are used in the subsequent step S102.
S102: and when the client is detected to be connected to the samba service, controlling the bandwidth of the client connection according to the bandwidth threshold of the client, and writing the controlled bandwidth value of the client connection into the database.
In this embodiment, after the node bandwidth threshold, the client bandwidth threshold, and the maximum connection number in the samba service are obtained in step S101, further, when it is detected that the client is connected to the samba service, the bandwidth of the client single connection may be limited according to the obtained client bandwidth threshold, and the limitation information of the client connection bandwidth is written into the tdb database to perform subsequent step S103.
S103: periodically acquiring the total bandwidth of all client connections connected to the samba service, comparing the total bandwidth with a node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, performing QoS (quality of service) alarm; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm.
In this embodiment, in order to control and operate the bandwidth of the samba user to improve the robustness, usability and function richness of the distributed storage system, the total bandwidth of all client connections connected to the samba service needs to be periodically obtained, for example, a timer may be used to periodically obtain the total bandwidth of all client connections connected to the samba service, and compare the total bandwidth with the previously obtained node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, a QoS alarm is triggered; and triggering the QoS alarm when the connection number of all the clients reaches the maximum value of the connection number acquired before.
Furthermore, in order to meet the requirement of a client on the use of the client, bandwidth acquisition and control of samba connection can be realized, and an optional implementation mode is that modification operation of the client on a bandwidth threshold value by the user can be received through a management interface; and then responding to the modification operation of the user on the client bandwidth threshold, modifying the client bandwidth threshold, and writing the modified client bandwidth threshold into a database.
Similarly, in another alternative implementation, a modification operation of the node bandwidth threshold by the user may be received through the management interface; and then responding to the modification operation of the user on the node bandwidth threshold, modifying the node bandwidth threshold, and writing the modified client bandwidth threshold into the database.
Thus, the present embodiment can satisfy the use requirement of the client according to the client by executing the above steps S101 to S103, and can control and operate the system bandwidth. The robustness, the usability and the function richness of the system are improved.
It should be noted that the basic principle of Qos implementation is as follows: starting a timer, counting the number of bytes received from the network within one second at regular time, stopping receiving when the upper limit of the number of bytes theoretically received is reached, and counting again when the time of the timer is reached.
For convenience of understanding, in the following, an embodiment of the present application will be described in detail with reference to the accompanying drawings, and as shown in fig. 2, a specific implementation process of Qos bandwidth control may include the following steps (1) to (5):
step (1): when the samba connection is established, starting a qos bandwidth timer in the service process of the samba connection;
step (2): the samba reads network data, performs service processing, counts the number of bytes (representing bandwidth) currently received from the network, compares the number of bytes with a theoretical bandwidth value, and closes a read event of the network socket when the number of bytes read is greater than the theoretical bandwidth value, and stops reading the data; if the bandwidth is not larger than the theoretical bandwidth value, not closing the read event, and continuously monitoring whether the network socket is triggered by the read event by using an event _ loop function;
and (3): entering an event _ loop function, and waiting for triggering of all events, wherein the events can be understood as a read event and a timer event of a network socket; if the reading event of the socket is not closed in the step (2), the reading event and the timer event of the socket are both monitored by the event _ loop function, so that both events are possibly triggered; if the reading event of the socket is closed in the step (2), the event _ loop function only triggers a timer event;
and (4): if the event is triggered by the socket reading event, the step (2) is repeatedly carried out;
and (5): if the event is triggered by a timer event, clearing the network byte number counted in the step (2) to prepare for a new round of counting; if the socket reading event is closed in the step (2), opening the socket reading event; if the socket reading event is not closed in the step (2), no operation is performed; and then repeatedly entering the step (2).
In addition, for convenience of understanding, in the embodiment of the present application, a Qos bandwidth control procedure is functionally and modularly processed and described in detail through a logic view as shown in fig. 3, and as shown in fig. 3, a system for implementing the Qos bandwidth control procedure may include an interface module, a bandwidth scheduling and decision module, a bandwidth acquisition and control module, and a Samba connection management module.
The interface module is used for responding and analyzing inquiry and control commands from the management interface and the output terminal. The bandwidth scheduling and decision module is used for realizing the function of allocating the bandwidth resources according to the total bandwidth resources set by the system and the bandwidth resources of each connection. The bandwidth acquisition and control module is used for completing bandwidth acquisition of each samba service connection and realizing a bandwidth control setting function of the samba service connection. The Samba connection management module is used for monitoring the number of Samba connections, and giving an alarm when a threshold is reached, wherein the alarm threshold is managed by the bandwidth scheduling and decision module.
Specifically, the current connection information display and control information reception is responsible for an interface module, and an interaction module of the interface module is a bandwidth scheduling and decision module; the bandwidth allocation function is responsible for a bandwidth scheduling and decision module which is a central module and receives Qos query and control information from an interface module and replies a Qos result and alarm information to the interface module; the bandwidth scheduling and decision module acquires information from the samba connection management module and the bandwidth acquisition and control module at regular time, is used for analyzing and controlling the current Qos control, and issues the control information to the samba connection management module and the bandwidth acquisition and control module as required; the bandwidth acquisition and control module is responsible for receiving and processing the inquiry and control information from the bandwidth scheduling and decision module.
In addition, for the convenience of understanding, the embodiment of the present application further provides a physical view as shown in fig. 4 to more visually demonstrate the samba user QoS implementation process in the distributed storage system.
In summary, according to the method for implementing the samba user QoS in the distributed storage system provided by this embodiment, a node bandwidth threshold, a client bandwidth threshold, and a maximum connection number in the samba service are first obtained, then, when it is detected that a client is connected to the samba service, the bandwidth of the client connection is controlled according to the client bandwidth threshold, and the controlled client connection bandwidth value is written into the database, then, the total bandwidth of all client connections connected to the samba service is periodically obtained and compared with the node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, a QoS alarm is performed; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm. Therefore, the bandwidth of the samba user can be controlled and operated, and the robustness, the usability and the function richness of the distributed storage system are improved.
Second embodiment
In this embodiment, a samba user QoS implementation apparatus in a distributed storage system will be described, and please refer to the above method embodiment for related content.
Referring to fig. 5, a schematic composition diagram of a samba user QoS implementation apparatus in a distributed storage system provided in this embodiment is shown, where the apparatus includes:
a first obtaining unit 501, configured to obtain a node bandwidth threshold, a client bandwidth threshold, and a maximum connection number in the samba service;
a control unit 502, configured to control a bandwidth of a client connection according to the client bandwidth threshold when it is detected that the client is connected to the samba service, and write a controlled client connection bandwidth value into a database;
a second obtaining unit 503, configured to periodically obtain a total bandwidth of all client connections connected to the samba service, compare the total bandwidth with the node bandwidth threshold, and perform QoS alarm if the total bandwidth is greater than the node bandwidth threshold; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm.
In an implementation manner of this embodiment, the apparatus further includes:
the first receiving unit is used for receiving the modification operation of the client bandwidth threshold value by a user through a management interface;
and the first modifying unit is used for responding to the modifying operation of the user on the client bandwidth threshold, modifying the client bandwidth threshold and writing the modified client bandwidth threshold into a database.
In an implementation manner of this embodiment, the apparatus further includes:
the second receiving unit is used for receiving the modification operation of the user on the node bandwidth threshold through a management interface;
and the second modification unit is used for responding to the modification operation of the user on the node bandwidth threshold, modifying the node bandwidth threshold and writing the modified client bandwidth threshold into a database.
In an implementation manner of this embodiment, the second obtaining unit 503 is specifically configured to:
and utilizing a timer to periodically acquire the total bandwidth of all client connections connected to the samba service.
In summary, according to the apparatus for implementing the samba user QoS in the distributed storage system provided by this embodiment, first, a node bandwidth threshold, a client bandwidth threshold, and a maximum connection number in the samba service are obtained, then, when it is detected that the client is connected to the samba service, the bandwidth connected to the client is controlled according to the client bandwidth threshold, and the controlled client connection bandwidth value is written into the database, then, the total bandwidth connected to all the clients connected to the samba service is periodically obtained and compared with the node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, a QoS alarm is performed; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm. Therefore, the bandwidth of the samba user can be controlled and operated, and the robustness, the usability and the function richness of the distributed storage system are improved.
Further, an embodiment of the present application further provides a device for implementing a samba user QoS in a distributed storage system, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is used for storing one or more programs, and the one or more programs comprise instructions which when executed by the processor cause the processor to execute any implementation method of the samba user QoS implementation method in the distributed storage system.
Further, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is caused to execute any implementation method of the samba user QoS implementation method in the distributed storage system.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. 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 previous description of the disclosed embodiments is provided to enable any person skilled in the art to 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 realizing quality of service (QoS) of samba users in a distributed storage system is characterized by comprising the following steps:
acquiring a node bandwidth threshold, a client bandwidth threshold and a maximum connection number in samba service;
when the client is detected to be connected to the samba service, controlling the bandwidth of the client connection according to the bandwidth threshold of the client, and writing the controlled bandwidth value of the client connection into a database;
periodically acquiring the total bandwidth of all client connections connected to the samba service, comparing the total bandwidth with the node bandwidth threshold, and if the total bandwidth is greater than the node bandwidth threshold, performing QoS (quality of service) alarm; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm.
2. The method of claim 1, further comprising:
receiving modification operation of a user on the bandwidth threshold of the client through a management interface;
and responding to the modification operation of the user on the client bandwidth threshold, modifying the client bandwidth threshold, and writing the modified client bandwidth threshold into a database.
3. The method of claim 1, further comprising:
receiving modification operation of a user on the node bandwidth threshold through a management interface;
and responding to the modification operation of the user on the node bandwidth threshold, modifying the node bandwidth threshold, and writing the modified client bandwidth threshold into a database.
4. The method according to any of claims 1-3, wherein said periodically obtaining a total band of all client connections connected to said samba service comprises:
and utilizing a timer to periodically acquire the total bandwidth of all client connections connected to the samba service.
5. A samba user QoS implementing device in a distributed storage system is characterized by comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a node bandwidth threshold, a client bandwidth threshold and a maximum connection number in samba service;
the control unit is used for controlling the bandwidth of client connection according to the client bandwidth threshold value when the client is detected to be connected to the samba service, and writing the controlled client connection bandwidth value into a database;
the second acquisition unit is used for periodically acquiring the total bandwidth of all client connections connected to the samba service, comparing the total bandwidth with the node bandwidth threshold, and performing QoS alarm if the total bandwidth is greater than the node bandwidth threshold; and when the connection number of all the clients reaches the maximum connection number, performing QoS alarm.
6. The apparatus of claim 5, further comprising:
the first receiving unit is used for receiving the modification operation of the client bandwidth threshold value by a user through a management interface;
and the first modifying unit is used for responding to the modifying operation of the user on the client bandwidth threshold, modifying the client bandwidth threshold and writing the modified client bandwidth threshold into a database.
7. The apparatus of claim 5, further comprising:
the second receiving unit is used for receiving the modification operation of the user on the node bandwidth threshold through a management interface;
and the second modification unit is used for responding to the modification operation of the user on the node bandwidth threshold, modifying the node bandwidth threshold and writing the modified client bandwidth threshold into a database.
8. The apparatus according to any one of claims 5 to 7, wherein the second obtaining unit is specifically configured to:
and utilizing a timer to periodically acquire the total bandwidth of all client connections connected to the samba service.
9. A samba user QoS implementation device in a distributed storage system is characterized by comprising: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of claims 1-4.
10. A computer-readable storage medium having stored therein instructions that, when executed on a terminal device, cause the terminal device to perform the method of any one of claims 1-4.
CN202110950602.3A 2021-08-18 2021-08-18 Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system Pending CN113852490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110950602.3A CN113852490A (en) 2021-08-18 2021-08-18 Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110950602.3A CN113852490A (en) 2021-08-18 2021-08-18 Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system

Publications (1)

Publication Number Publication Date
CN113852490A true CN113852490A (en) 2021-12-28

Family

ID=78975944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110950602.3A Pending CN113852490A (en) 2021-08-18 2021-08-18 Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system

Country Status (1)

Country Link
CN (1) CN113852490A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489541A (en) * 2022-01-14 2022-05-13 山东云海国创云计算装备产业创新中心有限公司 VGA video memory bandwidth regulation and control method based on FPGA and related components
CN114500406A (en) * 2022-02-11 2022-05-13 浪潮云信息技术股份公司 Cloud file storage fine-grained QoS control method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106961398A (en) * 2017-05-26 2017-07-18 郑州云海信息技术有限公司 The band width control method and device of a kind of distributed file system
CN107171869A (en) * 2017-07-11 2017-09-15 郑州云海信息技术有限公司 A kind of method and system that bandwidth control is carried out to CEPH file system
WO2018177012A1 (en) * 2017-03-29 2018-10-04 华为技术有限公司 Method, apparatus and device for controlling bandwidth

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018177012A1 (en) * 2017-03-29 2018-10-04 华为技术有限公司 Method, apparatus and device for controlling bandwidth
CN106961398A (en) * 2017-05-26 2017-07-18 郑州云海信息技术有限公司 The band width control method and device of a kind of distributed file system
CN107171869A (en) * 2017-07-11 2017-09-15 郑州云海信息技术有限公司 A kind of method and system that bandwidth control is carried out to CEPH file system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489541A (en) * 2022-01-14 2022-05-13 山东云海国创云计算装备产业创新中心有限公司 VGA video memory bandwidth regulation and control method based on FPGA and related components
CN114489541B (en) * 2022-01-14 2024-05-10 山东云海国创云计算装备产业创新中心有限公司 VGA video memory bandwidth regulation and control method based on FPGA and related components
CN114500406A (en) * 2022-02-11 2022-05-13 浪潮云信息技术股份公司 Cloud file storage fine-grained QoS control method and system
CN114500406B (en) * 2022-02-11 2024-05-14 浪潮云信息技术股份公司 Cloud file storage fine granularity QoS control method and system

Similar Documents

Publication Publication Date Title
CN111124819B (en) Method and device for full link monitoring
US20180365085A1 (en) Method and apparatus for monitoring client applications
CN113852490A (en) Method, device and equipment for realizing quality of service (QoS) of samba user in distributed storage system
CN111177201B (en) Data stream processing method and related device
US11570078B2 (en) Collecting route-based traffic metrics in a service-oriented system
CN111371672B (en) Message pushing method and device
CN112165436A (en) Flow control method, device and system
WO2022016845A1 (en) Multi-node monitoring method and apparatus, electronic device, and storage medium
CN107688626A (en) Slow inquiry log processing method, device and electronic equipment
CN114116634B (en) Caching method and device and readable storage medium
CN113923192A (en) Flow auditing method, device, system, equipment and medium
CN112130759A (en) Parameter configuration method, system and related device of storage system
WO2020000742A1 (en) Deduplication traffic recording method, device, server and storage medium
CN114070755B (en) Virtual machine network flow determination method and device, electronic equipment and storage medium
CN115712646A (en) Alarm strategy generation method, device and storage medium
CN112019546A (en) Protection strategy adjusting method, system, equipment and computer storage medium
WO2020232903A1 (en) Monitoring task dynamic adjustment method and apparatus, and computer device and storage medium
CN109150819B (en) A kind of attack recognition method and its identifying system
US20180123866A1 (en) Method and apparatus for determining event level of monitoring result
CN114285647A (en) Method and device for detecting abnormal access of bucket in distributed object storage system
CN115051867A (en) Detection method and device for illegal external connection behaviors, electronic equipment and medium
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
CN114143263A (en) Method, device and medium for limiting current of user request
CN113761433A (en) Service processing method and device
KR101553923B1 (en) Apparatus and method for analyzing system usage

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