CN113835632A - Method, system, equipment and storage medium for setting read-write bandwidth in batches - Google Patents

Method, system, equipment and storage medium for setting read-write bandwidth in batches Download PDF

Info

Publication number
CN113835632A
CN113835632A CN202111092371.3A CN202111092371A CN113835632A CN 113835632 A CN113835632 A CN 113835632A CN 202111092371 A CN202111092371 A CN 202111092371A CN 113835632 A CN113835632 A CN 113835632A
Authority
CN
China
Prior art keywords
setting
bandwidth
nfs
cifs
read
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
CN202111092371.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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202111092371.3A priority Critical patent/CN113835632A/en
Publication of CN113835632A publication Critical patent/CN113835632A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to 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]

Abstract

A method for setting read-write bandwidth in batch comprises the following steps: starting cluster NFS service, CIFS service and QOS service in a cluster, and setting a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service; setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group, and setting a first maximum connection number configured by the CIFS bandwidth; setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, setting second IP information of an NFS client group, and setting a second maximum connection number of NFS bandwidth configuration; and mounting the client sides corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the client sides according to the bandwidth limitation set in the first sharing mode and the second sharing mode.

Description

Method, system, equipment and storage medium for setting read-write bandwidth in batches
Technical Field
The present invention relates to the field of distributed storage, and more particularly, to a method, system, device, and storage medium for setting read/write bandwidths in batch.
Background
The automation operation of mass storage is widely applied in the fields of IT (Information Technology) enterprises, cloud computing, big data, virtualization, and the like. Meanwhile, the requirements of the fields on the setting of the read-write bandwidth of the client are higher, only one client read-write bandwidth can be set, the read-write bandwidth of a large batch of various clients cannot be automatically controlled, the use of a user cannot be met, the read-write bandwidth of the large batch of various clients also needs to be set, the bandwidth query needs to be supported, and the maximum connection number of the clients is set. Because the existing automation platform of the mass storage distributed system cannot support automatic setting operation and control of read-write bandwidth of a large number of clients and various clients, the robustness, usability and function richness of the system are affected, and the competitiveness of the mass storage automation platform is seriously affected.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, a computer device, and a computer readable storage medium for setting read-write bandwidths in batch, which can set read-write bandwidths of a large number of clients, support bandwidth query and maximum connection number setting of the clients, improve robustness, usability, and function richness of the system, and improve competitiveness of a mass storage automation platform.
Based on the above object, an aspect of the embodiments of the present invention provides a method for setting read-write bandwidths in batch, including the following steps: starting cluster NFS service, CIFS service and QOS service in a cluster, and setting a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service; setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group, and setting a first maximum connection number configured by the CIFS bandwidth; setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, setting second IP information of an NFS client group, and setting a second maximum connection number of NFS bandwidth configuration; and mounting the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the clients according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
In some embodiments, the mounting, based on the first IP information and the second IP information, clients corresponding to NFS and CIFS includes: respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
In some embodiments, the setting of the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode includes: setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
In some embodiments, the method further comprises: performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and responding to the normal cluster health state, feeding back a first numerical value and storing a feedback result into a database for persistent storage.
In another aspect of the embodiments of the present invention, a system for setting read-write bandwidths in batch is provided, including: the service module is configured to start cluster NFS service, CIFS service and QOS service in a cluster, and set a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service; the device comprises a first setting module, a second setting module and a third setting module, wherein the first setting module is used for setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group and setting a first maximum connection number of the CIFS bandwidth configuration; a second setting module, configured to set a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, set second IP information of the NFS client group, and set a second maximum connection number of the NFS bandwidth configuration; and the execution module is configured to mount the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and set the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
In some embodiments, the execution module is configured to include: respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
In some embodiments, the execution module is configured to: setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
In some embodiments, the system further comprises a detection module configured to: performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and responding to the normal cluster health state, feeding back a first numerical value and storing a feedback result into a database for persistent storage.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the method can set the read-write bandwidth of a large number of various clients, can support bandwidth query and the maximum connection number setting of the clients, improves the robustness, usability and function richness of the system, and improves the competitiveness of the mass storage automation platform.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for setting read-write bandwidth in batch according to the present invention;
FIG. 2 is a diagram illustrating an embodiment of a system for setting read/write bandwidths in batch according to the present invention;
FIG. 3 is a schematic diagram of a hardware structure of an embodiment of a computer device for setting read-write bandwidth in batch according to the present invention;
FIG. 4 is a diagram of an embodiment of a computer storage medium for batch setting of read-write bandwidth provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In a first aspect of the embodiments of the present invention, an embodiment of a method for setting read-write bandwidths in batch is provided. Fig. 1 is a schematic diagram illustrating an embodiment of a method for setting read-write bandwidth in bulk according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, starting cluster NFS service, CIFS service and QOS service in the cluster, and setting a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service;
s2, setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by the CIFS in a first sharing mode, setting first IP information of a CIFS client group, and setting a first maximum connection number of CIFS bandwidth configuration;
s3, setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in the second sharing mode, setting a second IP information of the NFS client group, and setting a second maximum connection number of the NFS bandwidth configuration; and
s4, mounting the client corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
In some embodiments, the method further comprises: performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and responding to the normal cluster health state, feeding back a first numerical value and storing a feedback result into a database for persistent storage. Submitting a mass storage management software address $ CLUSTER _ IP, a management software login name $ CLUSTER _ USERNAME and a management software PASSWORD $ CLUSTER _ PASSSWORD which need to be butted; and then checking the health condition of the mass storage cluster, inquiring the health condition of the cluster through icfs-s, if the health condition of the cluster is normal, feeding back a first value (for example, 0), and storing the health condition in a storage in a persistent mode, and if the cluster is not in the health condition, feeding back a second value (for example, 1) and reporting an error to exit.
Starting a cluster NFS (Network File System) Service, a CIFS (Common Internet File System) Service and a QOS (Quality of Service) Service in a cluster, and setting a first sharing mode of the CIFS Service and the QOS Service and a second sharing mode of the NFS Service and the QOS Service. NFS service can be started through icfs-admin-NFS-start, CIFS service can be started through icfs-admin-CIFS-start, cluster NFS-QOS sharing (namely NFS service and QOS service sharing) is started through icfs-admin-NFS-QOS-start, and CIFS _ QOS sharing (namely CIFS service and QOS service sharing) is started through icfs-admin-CIFS-QOS-start-node all.
Setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by the CIFS in a first sharing mode, setting first IP information of a CIFS client group, and setting a first maximum connection number configured by the CIFS bandwidth. And setting the maximum READ-WRITE bandwidth allowed to be allocated for the NFS client by the cluster through icfs-admin-NFS-set-client-QOS-default-node all-max-READ $ NFS _ READ _ QOS-max-WRITE $ NFS _ WRITE _ QOS. And setting the maximum connection number allowed by the NFS _ QOS client through icfs-admin-NFS-set-node-QOS-node all-MAX-links $ NFS _ MAX _ CONNECT.
And setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, setting second IP information of the NFS client group, and setting a second maximum connection number configured by the NFS bandwidth. And setting the maximum READ-WRITE bandwidth allowed to be allocated to the CIFS client by the icfs-admin-CIFS-set-client-QOS-default-node all-max-READ $ CIFS _ READ _ QOS-max-WRITE $ CIFS _ WRITE _ QOS cluster. And setting the maximum connection number allowed by the client of the CIFS _ QOS through the icfs-admin-CIFS-set-service-limit $ CIFS _ MAX _ CONNECT.
And mounting the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the clients according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
In some embodiments, the mounting, based on the first IP information and the second IP information, clients corresponding to NFS and CIFS includes: respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number. Creating a cluster NFS shared directory through icfs-admin-DIR-create-share-p $ NFS _ DIR, creating a cluster CIFS shared directory through icfs-admin-CIFS-create-share-p $ CIFS _ DIR, and connecting all configured clients through first IP information and second IP information; then creating directories to be mounted $ CLIENT _ NFS _ DIR and $ CLIENT _ CIFS _ DIR for each CLIENT, mounting the CLIENT NFS through mount-t NFS $ NFS _ DIR $ CLIENT _ NFS _ DIR, and mounting the CLIENT CIFS through mount-t CIFS servers ═ 2.1$ CIFS _ DIR $ CLIENT _ CIFS _ DIR.
In some embodiments, the setting of the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode includes: setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively. After the mounting is successful, the NFS READ-WRITE bandwidth of the CLIENT synchronization cluster segment is set by executing icfs-admin-NFS-set-CLIENT-QOS-CLIENT $ NFS _ CLIENT _ IP 1-max-WRITE $ NFS _ READ _ QOS-max-WRITE $ NFS _ WRITE _ QOS on each CLIENT, and the CIFS READ-WRITE bandwidth of the CLIENT synchronization cluster segment is set by icfs-admin-CIFS-set-CLIENT-QOS-CLIENT $ CIFS _ CLIENT _ IP 1-max-WRITE $ CIFS _ READ _ QOS-max-WRITE $ CIFS _ WRITE _ QOS.
Triggering a bandwidth self-checking module after the setting is completed, inquiring the NFS READ-WRITE bandwidth $ CLIENT _ NFS _ READ _ QOS and $ CLIENT _ NFS _ WRITE _ QOS which are set by the CLIENT through the icfs-admin-NFS-query-CLIENT-IP 1, inquiring the set CIFS READ-WRITE bandwidth $ CLIENT _ CIFS _ READ _ QOS and $ CLIENT _ CIFS _ WRITE _ QOS through the icfs-admin-query-CLIENT-CIFS _ CLIENT _ IP1, and if the $ CLIENT _ NFS _ READ _ QOS and the $ NFS _ READ _ QOS are the same, the $ CLIENT _ NFS _ QOS and the NFS _ WRITES _ QOS are the same, returning a $ file _ CIFS _ READ _ CIFS _ file _ QOS and a $ WRITES _ READ _ file _ QOS and a WRITES, and returning a $ file to the network _ file-WRITE _ file-QOS and a file-file, and a file-file, and a file of the.
The embodiment of the invention can set the read-write bandwidth of a large quantity of various clients, can support bandwidth query and the maximum connection number setting of the clients, improves the robustness, usability and function richness of the system and improves the competitiveness of a mass storage automation platform.
It should be particularly noted that, steps in the embodiments of the method for setting read-write bandwidth in batches may be intersected, replaced, added, or deleted, so that these methods for setting read-write bandwidth in batches, which are transformed by reasonable permutation and combination, should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
In view of the above, a second aspect of the embodiments of the present invention provides a system for setting read-write bandwidths in batch. As shown in fig. 2, the system 200 includes the following modules: the service module is configured to start cluster NFS service, CIFS service and QOS service in a cluster, and set a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service; the device comprises a first setting module, a second setting module and a third setting module, wherein the first setting module is used for setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group and setting a first maximum connection number of the CIFS bandwidth configuration; a second setting module, configured to set a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, set second IP information of the NFS client group, and set a second maximum connection number of the NFS bandwidth configuration; and the execution module is configured to mount the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and set the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
In some embodiments, the execution module is configured to include: respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
In some embodiments, the execution module is configured to: setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
In some embodiments, the system further comprises a detection module configured to: performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and responding to the normal cluster health state, feeding back a first numerical value and storing a feedback result into a database for persistent storage.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, starting cluster NFS service, CIFS service and QOS service in the cluster, and setting a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service; s2, setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by the CIFS in a first sharing mode, setting first IP information of a CIFS client group, and setting a first maximum connection number of CIFS bandwidth configuration; s3, setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in the second sharing mode, setting a second IP information of the NFS client group, and setting a second maximum connection number of the NFS bandwidth configuration; and S4, mounting the client corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the client according to the bandwidth limit set in the first sharing mode and the second sharing mode.
In some embodiments, the mounting, based on the first IP information and the second IP information, clients corresponding to NFS and CIFS includes: respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
In some embodiments, the setting of the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode includes: setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
In some embodiments, the steps further comprise: performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and responding to the normal cluster health state, feeding back a first numerical value and storing a feedback result into a database for persistent storage.
Fig. 3 is a schematic diagram of a hardware structure of an embodiment of the computer device for setting read-write bandwidth in batch according to the present invention.
Taking the device shown in fig. 3 as an example, the device includes a processor 301 and a memory 302.
The processor 301 and the memory 302 may be connected by a bus or other means, such as the bus connection in fig. 3.
The memory 302 is used as a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for setting read-write bandwidth in batches in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running nonvolatile software programs, instructions, and modules stored in the memory 302, that is, a method for setting read and write bandwidths in batch is implemented.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the method of batch setting of read-write bandwidth, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Computer instructions 303 corresponding to one or more methods for batch setting of read-write bandwidth are stored in the memory 302 and, when executed by the processor 301, perform the methods for batch setting of read-write bandwidth.
The method for setting read-write bandwidth in batch comprises the following steps: starting cluster NFS service, CIFS service and QOS service in a cluster, and setting a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service; setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group, and setting a first maximum connection number configured by the CIFS bandwidth; setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, setting second IP information of an NFS client group, and setting a second maximum connection number of NFS bandwidth configuration; and mounting the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the clients according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
In some embodiments, the mounting, based on the first IP information and the second IP information, clients corresponding to NFS and CIFS includes: respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
In some embodiments, the setting of the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode includes: setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
In some embodiments, the method further comprises: performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and responding to the normal cluster health state, feeding back a first numerical value and storing a feedback result into a database for persistent storage.
Any embodiment of the computer device executing the method for setting the read-write bandwidth in batch can achieve the same or similar effects as any corresponding method embodiment.
The present invention also provides a computer-readable storage medium storing a computer program for executing the method of setting read-write bandwidths in batch when executed by a processor.
Fig. 4 is a schematic diagram of an embodiment of a computer storage medium for setting read-write bandwidth for the above mentioned batch provided by the present invention. Taking the computer storage medium as shown in fig. 4 as an example, the computer readable storage medium 401 stores a computer program 402 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware by a computer program, and the program of the method for setting read-write bandwidth in batches may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for setting read-write bandwidth in batch is characterized by comprising the following steps:
starting cluster NFS service, CIFS service and QOS service in a cluster, and setting a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service;
setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group, and setting a first maximum connection number configured by the CIFS bandwidth;
setting a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, setting second IP information of an NFS client group, and setting a second maximum connection number of NFS bandwidth configuration; and
and mounting the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and setting the read-write bandwidth of the clients according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
2. The method of claim 1, wherein the mounting the clients corresponding to NFS and CIFS based on the first IP information and the second IP information comprises:
respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and
and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
3. The method of claim 1, wherein the setting of the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode comprises:
setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and
and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
4. The method of claim 1, further comprising:
performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and
and responding to the normal cluster health state, feeding back a first value and storing a feedback result into a database for persistent storage.
5. A system for setting read and write bandwidths in batches, comprising:
the service module is configured to start cluster NFS service, CIFS service and QOS service in a cluster, and set a first sharing mode of the CIFS service and the QOS service and a second sharing mode of the NFS service and the QOS service;
the device comprises a first setting module, a second setting module and a third setting module, wherein the first setting module is used for setting a first maximum write bandwidth and a first maximum read bandwidth of a client shared by a CIFS (common information file system) in a first sharing mode, setting first IP (Internet protocol) information of a CIFS client group and setting a first maximum connection number of the CIFS bandwidth configuration;
a second setting module, configured to set a second maximum write bandwidth and a second maximum read bandwidth of the NFS-shared client in a second sharing mode, set second IP information of the NFS client group, and set a second maximum connection number of the NFS bandwidth configuration; and
and the execution module is configured to mount the clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information, and set the read-write bandwidth of the client according to the bandwidth limitation set in the first sharing mode and the second sharing mode.
6. The system of claim 5, wherein the execution module is configured to include:
respectively creating an NFS (network file system) shared directory and a CIFS (common information file system) shared directory, and determining clients corresponding to the NFS and the CIFS based on the first IP information and the second IP information; and
and mounting the directories to be mounted in the clients with the corresponding number to the NFS and CIFS shared directories respectively according to the first maximum connection number and the second connection number.
7. The system of claim 5, wherein the execution module is configured to:
setting the CIFS read-write bandwidth of the client to be the first maximum read bandwidth and the first maximum write bandwidth respectively; and
and setting the NFS read-write bandwidth of the client to be the second maximum read bandwidth and the second maximum write bandwidth respectively.
8. The system of claim 5, further comprising a detection module configured to:
performing cluster connection according to the management software address, the management software login name and the management software password, and inquiring the cluster health state; and
and responding to the normal cluster health state, feeding back a first value and storing a feedback result into a database for persistent storage.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202111092371.3A 2021-09-17 2021-09-17 Method, system, equipment and storage medium for setting read-write bandwidth in batches Pending CN113835632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111092371.3A CN113835632A (en) 2021-09-17 2021-09-17 Method, system, equipment and storage medium for setting read-write bandwidth in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111092371.3A CN113835632A (en) 2021-09-17 2021-09-17 Method, system, equipment and storage medium for setting read-write bandwidth in batches

Publications (1)

Publication Number Publication Date
CN113835632A true CN113835632A (en) 2021-12-24

Family

ID=78959785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111092371.3A Pending CN113835632A (en) 2021-09-17 2021-09-17 Method, system, equipment and storage medium for setting read-write bandwidth in batches

Country Status (1)

Country Link
CN (1) CN113835632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118717A (en) * 2022-06-29 2022-09-27 济南浪潮数据技术有限公司 CIFS (common information platform) shared mounting method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010038640A1 (en) * 2000-05-19 2001-11-08 Mckinnon Martin W. Computerized method for allocating access across a shared communication medium
CN103685579A (en) * 2014-01-13 2014-03-26 浪潮(北京)电子信息产业有限公司 Shared access method of cluster NAS (network attached storage) system
US8793334B1 (en) * 2010-07-19 2014-07-29 Applied Micro Circuits Corporation Network-attached storage (NAS) bandwidth manager
CN105721339A (en) * 2014-12-05 2016-06-29 中兴通讯股份有限公司 Method and apparatus for service bandwidth configuration
CN109547244A (en) * 2018-11-16 2019-03-29 郑州云海信息技术有限公司 A kind of QoS read-write on client side band width configuration method and terminal based on NFS system
CN110868323A (en) * 2019-11-15 2020-03-06 浪潮电子信息产业股份有限公司 Bandwidth control method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010038640A1 (en) * 2000-05-19 2001-11-08 Mckinnon Martin W. Computerized method for allocating access across a shared communication medium
US8793334B1 (en) * 2010-07-19 2014-07-29 Applied Micro Circuits Corporation Network-attached storage (NAS) bandwidth manager
CN103685579A (en) * 2014-01-13 2014-03-26 浪潮(北京)电子信息产业有限公司 Shared access method of cluster NAS (network attached storage) system
CN105721339A (en) * 2014-12-05 2016-06-29 中兴通讯股份有限公司 Method and apparatus for service bandwidth configuration
CN109547244A (en) * 2018-11-16 2019-03-29 郑州云海信息技术有限公司 A kind of QoS read-write on client side band width configuration method and terminal based on NFS system
CN110868323A (en) * 2019-11-15 2020-03-06 浪潮电子信息产业股份有限公司 Bandwidth control method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118717A (en) * 2022-06-29 2022-09-27 济南浪潮数据技术有限公司 CIFS (common information platform) shared mounting method, device, equipment and medium
CN115118717B (en) * 2022-06-29 2024-03-15 济南浪潮数据技术有限公司 CIFS sharing mounting method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US10812566B2 (en) Distributed steam processing
CN109274722B (en) Data sharing method and device and electronic equipment
JP2022501736A (en) Efficient state maintenance of the execution environment in the on-demand code execution system
CN111970315A (en) Method, device and system for pushing message
US10623470B2 (en) Optimizing internet data transfers using an intelligent router agent
CN106713493B (en) System and method for constructing distributed file in computer cluster environment
CN108712457B (en) Method and device for adjusting dynamic load of back-end server based on Nginx reverse proxy
US10397051B1 (en) Configuration and testing of network-based service platform resources using a service platform specific language
CN111694639B (en) Updating method and device of process container address and electronic equipment
US11159607B2 (en) Management for a load balancer cluster
CN113992657B (en) Cloud platform-based shared storage construction method, equipment and medium
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
CN113835632A (en) Method, system, equipment and storage medium for setting read-write bandwidth in batches
US8621260B1 (en) Site-level sub-cluster dependencies
WO2024022409A1 (en) Access processing methods and computer device
CN112583760B (en) Object storage access method, device, equipment and computer storage medium
WO2023029485A1 (en) Data processing method and apparatus, computer device, and computer-readable storage medium
CN116346834A (en) Session synchronization method, device, computing equipment and computer storage medium
CN114301872B (en) Domain name based access method and device, electronic equipment and storage medium
CN115510016A (en) Client response method, device and medium based on directory fragmentation
US10951576B1 (en) Method and apparatus for accurate GLB achieved by using distributed DNS reflection
CN112597406A (en) File transmission method and device, terminal equipment and storage medium
CN113541987A (en) Method and device for updating configuration data
CN111769965B (en) Information processing method, device and equipment
WO2024002349A1 (en) File management method, server, storage node, file storage system, and client

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