CN108055305B - Storage expansion method and storage expansion device - Google Patents

Storage expansion method and storage expansion device Download PDF

Info

Publication number
CN108055305B
CN108055305B CN201711276265.4A CN201711276265A CN108055305B CN 108055305 B CN108055305 B CN 108055305B CN 201711276265 A CN201711276265 A CN 201711276265A CN 108055305 B CN108055305 B CN 108055305B
Authority
CN
China
Prior art keywords
storage
server
target
data
client
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.)
Active
Application number
CN201711276265.4A
Other languages
Chinese (zh)
Other versions
CN108055305A (en
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.)
Shenzhen Mixliner Network Co ltd
Original Assignee
Shenzhen Mixliner Network 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 Shenzhen Mixliner Network Co ltd filed Critical Shenzhen Mixliner Network Co ltd
Priority to CN201711276265.4A priority Critical patent/CN108055305B/en
Publication of CN108055305A publication Critical patent/CN108055305A/en
Application granted granted Critical
Publication of CN108055305B publication Critical patent/CN108055305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • 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]

Abstract

The application discloses a storage expansion method and a storage expansion device, which are used for realizing the expansion of storage capacity by adding a new target storage server when the storage capacity of a source storage server is insufficient, and improving the storage performance of a storage system. The system of the embodiment of the application comprises: when the storage capacity of the source storage server is insufficient, a target client is established in the target server, and the target client is the same as the source client; sending a storage expansion request to a data server through a target client; receiving a storage expansion response sent to a target client by a data server; and determining the target server as the target storage server according to the storage expansion response.

Description

Storage expansion method and storage expansion device
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a storage expansion method and a storage expansion apparatus.
Background
Under the current situation that a large amount of data needs to be stored, for example, in an internet of things system, because the number of devices needing to be collected is large, and because a server is used as a data center between the devices and applications, not only a data forwarding function is achieved, but also a data storage function is needed.
When a traditional internet of things system deploys servers, the capacity for storing data is designed for each server, and the data storage mode comprises the following steps: 1. direct Attached Storage (DAS), which is the same as a Storage architecture of a common Personal Computer (PC), is directly Attached to a bus inside a server, and is a part of the entire server structure; 2. network Attached Storage (NAS) comprehensively improves an inefficient DAS mode, a file server which is independent of a server and separately developed for Network data Storage is adopted to connect Storage equipment, a Network is formed by the Storage equipment, and therefore the Storage equipment is not Attached to the server any more, but exists in the Network as an independent Network node and can be shared by all Network users; 3. storage Area Networks (SAN) create a networking of Storage that is compliant with the trend of networking of computer server architectures.
However, in the above data storage methods, storage capacities are pre-designed, and as the field of internet of things system design becomes wider and wider, data volume also increases explosively, and then after the storage capacity is used up, a storage space needs to be expanded, for example, in the DAS method, an additional storage device needs to be added and hung on an internal bus of a server, which needs to be reset for the server, in the NAS method, the network node needs to be added with additional storage data, network configuration needs to be reset, and a hardware infrastructure of the SAN method is a fiber channel, and a current network hardware infrastructure condition obviously cannot be completely applied. Therefore, expansion of the storage capacity is inconvenient, so that the storage performance is limited.
Disclosure of Invention
The application provides a storage expansion method and a storage expansion device, which are used for realizing the expansion of storage capacity by adding a new target storage server when the storage capacity of a source storage server is insufficient, and improving the storage performance of a storage system.
A first aspect of the present application provides a storage expansion method, which is applied to a storage system, where the storage system includes a data server and a source storage server, the source storage server includes a source client, and the data storage method includes:
when the storage capacity of the source storage server is insufficient, a target client is established in a target server, and the target client is the same as the source client;
sending a storage expansion request to the data server through the target client;
receiving a storage expansion response sent to the target client by the data server;
and determining the target server as a target storage server according to the storage expansion response.
With reference to the first aspect of the present application, in a first implementation manner of the first aspect of the present application, the sending, by the target client, a storage expansion request to the data server includes:
sending a first connection request to the data server through the target client;
when the target client receives a first connection response sent by the data server within a preset time, sending a storage expansion request to the data server through the target client;
and when the target client does not receive the first connection response sent by the data server within the preset time, sending a second connection request to the data server through the target client.
With reference to the first aspect of the present application, in a second implementation manner of the first aspect of the present application, after determining that the target server is the target storage server according to the storage expansion response, the method further includes:
when the data server acquires target data corresponding to the target client, the target data is sent to the target client through the data server;
and storing the target data received by the target client to the target storage server.
With reference to the first aspect, the first implementation manner of the first aspect, or the second implementation manner of the first aspect, in a third implementation manner of the first aspect of the present application, before the target server establishes the target client, the method further includes:
monitoring the storage data volume of the source storage server;
judging whether the storage data volume is larger than a storage threshold value;
if the storage capacity of the source storage server is larger than or equal to the storage capacity of the source storage server, determining that the storage capacity of the source storage server is insufficient;
and if the current storage capacity is smaller than the preset storage capacity, determining that the storage capacity of the source storage server is sufficient.
With reference to the third implementation manner of the first aspect of the present application, in a fourth implementation manner of the first aspect of the present application, the data server is an MQTT server, and the source client and the target client are MQTT clients.
A second aspect of the present application provides a storage expansion apparatus, which is applied to a storage system, where the storage system includes a data server and a source storage server, and the source storage server includes a source client, including:
the processing module is used for establishing a target client at a target server when the storage capacity of the source storage server is insufficient, wherein the target client is the same as the source client;
the sending module is used for sending a storage expansion request to the data server through the target client;
the receiving module is used for receiving a storage expansion response sent to the target client by the data server;
and the processing module is also used for determining the target server as the target storage server according to the storage expansion response.
In combination with the second aspect of the present application, in the first embodiment of the second aspect of the present application,
the sending module is further configured to send a first connection request to the data server through the target client;
the sending module is further configured to send a storage expansion request to the data server through the target client when the target client receives a first connection response sent by the data server within a predetermined time;
the sending module is further configured to send a second connection request to the data server through the target client when the target client does not receive the first connection response sent by the data server within a predetermined time.
In combination with the second aspect of the present application, in a second embodiment of the second aspect of the present application, the apparatus further comprises: a storage module;
the sending module is further configured to send the target data to the target client through the data server when the data server obtains the target data corresponding to the target client;
the storage module is used for storing the target data received by the target client to the target storage server.
With reference to the second aspect of the present application, the first embodiment of the second aspect, or the second embodiment of the second aspect, in a third embodiment of the second aspect of the present application, the apparatus further comprises: a monitoring module;
the monitoring module is used for monitoring the storage data volume of the source storage server;
the processing module is further configured to determine whether the storage data amount is greater than a storage threshold;
the processing module is further configured to determine that the storage capacity of the source storage server is insufficient when the storage data amount is greater than or equal to the storage threshold;
the processing module is further configured to determine that the storage capacity of the source storage server is sufficient when the storage data amount is smaller than the storage threshold.
With reference to the third embodiment of the second aspect of the present application, in the fourth embodiment of the second aspect of the present application, the data server is an MQTT server, and the source client and the target client are MQTT clients.
In summary, in the embodiment of the present application, the storage expansion method is applied to a storage system, where the storage system includes a data server and a source storage server, the source storage server includes a source client, and when the storage capacity of the source storage server is insufficient, a target client is established in a target server, and the target client is the same as the source client; sending a storage expansion request to a data server through a target client; receiving a storage expansion response sent to a target client by a data server; and determining the target server as a target storage server according to the storage expansion response, compared with the DAS mode, the NAS mode and the SAN mode, the method does not need to set the server like the DAS mode, does not need to reset network configuration like the NAS mode, does not need to require that a hardware infrastructure is an optical fiber channel like the SAN mode, only needs to establish a target client as the source client on the target storage server, does not influence a data server and other storage servers, greatly facilitates the expansion of storage capacity, and improves the storage performance of the storage system.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a storage expansion method provided herein;
FIG. 2 is a schematic structural diagram of a storage system provided herein;
FIG. 3 is a schematic structural diagram of an embodiment of a storage expansion apparatus provided in the present application;
FIG. 4 is a schematic structural diagram of another embodiment of a storage expansion device provided in the present application;
fig. 5 is a schematic structural diagram of another embodiment of a storage expansion apparatus provided in the present application.
Detailed Description
The application provides a storage expansion method and a storage expansion device, which are used for realizing the expansion of storage capacity by adding a new target storage server when the storage capacity of a source storage server is insufficient, and improving the storage performance of a storage system.
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 only a part of the embodiments of the present application, and not all of the 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.
The storage expansion method provided by the present application is explained in detail by the following embodiments.
Referring to fig. 1, an embodiment of the present application provides a storage expansion method, including:
101. establishing a target client at a target server;
in this embodiment, as shown in fig. 2, the storage system includes a data server and a source storage server, where the source storage server includes a source client, where the data server and the source storage server are in a distributed storage structure, the data server serves as a server, the source storage server is installed with the source client, the source storage server may subscribe data to the data server through the source client, when the data server obtains relevant data subscribed by the source client, and is specifically applied to the internet of things, the data subscribed by the source client is device data that needs to be obtained by a user, one source storage server may include at least one source client, one source client corresponds to one client, and sends these data to the source client, and the source storage server stores data received by the source client in storage media such as a disk. However, the storage capacity of each storage server is limited, and when the storage capacity of the source storage server is insufficient, the data subscribed from the data server cannot be stored any more, and the storage capacity needs to be expanded, a new server is provided for storing the data subscribed by the source client, the new server is used as a target server, a target client is established on the target server, and the target client is consistent with the source client.
102. Sending a storage expansion request to a data server through a target client;
in this embodiment, after the target client is established by the target server, a storage expansion request is sent to the data server by the target client, where the storage expansion request is used to subscribe to data from the data server, and the subscribed data is consistent with data subscribed by the source client.
103. Receiving a storage expansion response sent to a target client by a data server;
in this embodiment, after the data server receives the storage expansion request, the data server can determine that the data originally sent to the source client needs to be sent to the target client after the storage expansion request, and the data server generates a storage expansion response and feeds back the storage expansion response to the target client to notify the target client that the data server has established a connection, and the obtained subscription data of the source client is sent to the target client.
104. And determining the target server as the target storage server according to the storage expansion response.
In this embodiment, after the data server sends the storage expansion response to the target client, it indicates that the target client can receive the subscription data of the source client, and the data received by the target server will be stored in the target server, which is the target storage server performing storage capacity expansion on the basis of the source storage server.
In the embodiment of the application, when the storage capacity of a source storage server is insufficient, a target client is established in a target server, and the target client is the same as the source client; sending a storage expansion request to a data server through a target client; receiving a storage expansion response sent to a target client by a data server; and determining the target server as a target storage server according to the storage expansion response, compared with the DAS mode, the NAS mode and the SAN mode, the method does not need to set the server like the DAS mode, does not need to reset network configuration like the NAS mode, does not need to require that a hardware infrastructure is an optical fiber channel like the SAN mode, only needs to establish a target client as the source client on the target storage server, does not influence a data server and other storage servers, greatly facilitates the expansion of storage capacity, and improves the storage performance of the storage system.
Alternatively, in some embodiments of the present application,
the data server may be a Message Queue Telemetry Transport (MQTT) server, and the source client and the target client are MQTT clients.
The MQTT technology is an instant messaging protocol developed by IBM company, is an important component of an Internet of things system, supports all platforms, and can almost connect all networking articles with the outside, and has the following characteristics: 1. providing one-to-many message publishing using a publish/subscribe message schema, decoupling applications; 2. message transmission for load content shielding; 3. providing a network connection using TCP/IP; 4. there are three message publishing quality of service: at most once, the message is released completely depending on a bottom TCP/IP network, the message is lost or repeated, the level can be used for reading and recording the data loss of the environmental sensor once, and the data is sent for the second time after a while; "at least once" to ensure that messages arrive, but message repetition may occur; "once only", ensuring that a message arrives once, this level being usable in a billing system, message duplication or loss can lead to incorrect results; 5. small size transmission, small overhead (fixed length header is 2 bytes), and minimized protocol exchanges to reduce network traffic. Based on the characteristics of the MQTT technology, the data server is used as an MQTT server, and the source client and the target client are used as MQTT clients.
It should be noted that the subscription program used by the MQTT server and the MQTT client may be written in Erlang language, which is a general concurrency-oriented programming language developed by CS-Lab governed by ericsson of the swedish telecommunication equipment manufacturer, and aims to create a programming language and an operating environment capable of coping with large-scale concurrent activities. Erlang is an interpreted language running on a virtual machine, but now also contains a native code compiler developed by the high performance Erlang program (HiPE) at the university of uppsala, since version R11B-4, Erlang also starts to support scripting interpreters. In the programming paradigm, Erlang belongs to multiple paradigm programming languages, covering functional, concurrent, and distributed. Sequential execution Erlang is a functional programming language with early evaluation, single assignment, and dynamic types. The Erlang language is a structured and dynamic type programming language with built-in parallel computing support. Originally designed by ericsson specifically for communication applications such as control switches or translation protocols, etc., and are therefore well suited for building distributed, real-time soft parallel computing systems. An application runtime written in Erlang language typically consists of thousands of lightweight processes, communicating with each other through message passing. The inter-process context switch is just one or two links for Erlang language, and is much more efficient than the thread switch of C program. Therefore, the subscription program used by the MQTT server and the MQTT client written by the Erlang language is more convenient to realize for the expansion of the distributed storage server.
Optionally, in some embodiments of the present application, sending, by the target client, the storage expansion request to the data server includes:
sending a first connection request to a data server through a target client;
when the target client receives a first connection response sent by the data server within a preset time, a storage expansion request is sent to the data server through the target client;
and when the target client does not receive the first connection response sent by the data server within the preset time, sending a second connection request to the data server through the target client.
In the embodiment of the application, after the target client is established by the target server, at this time, no connection is established between the target client and the data server, the first connection request needs to be sent to the data server through the target client, the data server needs to perform operations such as authentication on the target client requesting the connection, if the target client is permitted to access, the first connection response is fed back to the target client, and if the target client is not permitted to access, the first connection response is not sent. On the target client side, considering the timeliness of the request connection, if the target client side receives the first connection response sent by the data server within the preset time and indicates that the target client side has established connection with the data server, the target client side sends a storage expansion request, namely subscription data, to the data server; and if the target client does not receive the first connection response sent by the data server within the preset time, the connection is failed, and then a second connection request is sent to the data server through the target client so as to be connected with the data server again.
Optionally, in some embodiments of the present application, after determining that the target server is the target storage server according to the storage expansion response, the method further includes:
when the data server acquires target data corresponding to the target client, the target data is sent to the target client through the data server;
and storing the target data received by the target client to the target storage server.
In the embodiment of the application, when the target storage server has determined that the data server knows the subscription data of the target client, the data server acquires device data of all devices in all internet of things systems, then the device data are grouped, one group of data corresponds to one target client, one group of data corresponding to the target client becomes the target data, and when the data server acquires the target data corresponding to the target client, the data server sends the target data to the target client, and stores the target data received by the target client into a storage structure of the target storage server, wherein the storage structure may be a materialized storage medium such as a floppy disk, an optical disk, a hard disk, a U disk, and the like.
Optionally, in some embodiments of the present application, before the target server establishes the target client, the method further includes:
monitoring the storage data volume of a source storage server;
judging whether the storage data amount is larger than a storage threshold value or not;
if the storage capacity of the source storage server is larger than or equal to the storage capacity of the source storage server, determining that the storage capacity of the source storage server is insufficient;
if the current storage capacity is less than the preset storage capacity, the storage capacity of the source storage server is determined to be sufficient.
In the embodiment of the application, a target server establishes a target client on the premise that the storage capacity of a source storage server is insufficient, and therefore, the amount of data stored in the source storage server needs to be monitored, which may be real-time monitoring of already stored data of the source storage server, or periodic monitoring of data stored in the source storage server to obtain the amount of stored data, and whether the amount of stored data is greater than a storage threshold is judged, where the storage threshold represents a maximum value of the amount of data allowed to be stored by the source storage server, and when the amount of stored data is greater than or equal to the storage threshold, the source storage server cannot continue to store data, and at this time, it is determined that the storage capacity of the source storage server is insufficient; when the storage data amount is smaller than the storage threshold, the source storage server may further store (storage threshold — storage data amount), and determine that the storage capacity of the source storage server is sufficient.
The storage expansion method described in each of the above embodiments is described in detail below by applying the embodiments to a storage expansion device of a storage system, specifically as follows:
referring to fig. 3, an embodiment of the present application provides a storage expansion apparatus 300, which is applied to a storage system 200, the storage system 200 includes a data server 201 and an origin storage server 202, the origin storage server 202 includes an origin client 203, and the storage expansion apparatus 300 includes:
a processing module 301, configured to establish a target client 205 at the target server 204 when the storage capacity of the source storage server 202 is insufficient, where the target client 205 is the same as the source client 203;
a sending module 302, configured to send a storage expansion request to the data server 201 through the target client 205;
a receiving module 303, configured to receive a storage expansion response sent by the data server 201 to the target client 205;
the processing module 301 is further configured to determine that the target server 204 is the target storage server according to the storage expansion response.
In the embodiment of the application, compared with the DAS mode, the NAS mode and the SAN mode, the server does not need to be set like the DAS mode, the network configuration does not need to be set again like the NAS mode, a hardware infrastructure does not need to be a fiber channel like the SAN mode, only a target client which is the same as a source client needs to be established on a target storage server, a data server and other storage servers are not affected, the expansion of storage capacity is greatly facilitated, and the storage performance of a storage system is improved.
Optionally, in some embodiments of the present application, the data server 200 is an MQTT server, and the source client 203 and the target client 205 are MQTT clients.
Alternatively, in some embodiments of the present application,
a sending module 302, configured to send a first connection request to the data server 201 through the target client 205;
a sending module 302, configured to send a storage expansion request to the data server 201 through the target client 205 when the target client 205 receives the first connection response sent by the data server 201 within a predetermined time;
the sending module 302 is further configured to send a second connection request to the data server 201 through the target client 205 when the target client 205 does not receive the first connection response sent by the data server 201 within a predetermined time.
In this embodiment of the application, after the target server establishes the target client, at this time, a connection has not been established between the target client and the data server, the sending module 302 needs to send a first connection request to the data server through the target client, and the data server needs to perform operations such as authentication on the target client requesting the connection, and if the target client is permitted to access, the sending module 302 feeds back a first connection response to the target client, and if the target client is not permitted to access, the sending module does not send the first connection response. On the target client side, considering the timeliness of the request for connection, if the target client receives the first connection response sent by the data server within the predetermined time, which indicates that the target client has established connection with the data server, the sending module 302 sends a storage expansion request, i.e. subscription data, to the data server through the target client; and if the target client does not receive the first connection response sent by the data server within the preset time, the connection is failed, and then a second connection request is sent to the data server through the target client so as to be connected with the data server again.
Optionally, as shown in fig. 4, in some embodiments of the present application, the storage expansion apparatus 300 further includes: a storage module 401;
the sending module 302 is further configured to send, by the data server 201, the target data to the target client 205 when the data server 201 obtains the target data corresponding to the target client 205;
a storage module 401, configured to store the target data received by the target client 205 to the target storage server.
In this embodiment of the application, when the target storage server has determined that the data server knows the subscription data of the target client, the data server obtains device data of all devices in all internet of things systems, and then groups the device data, where one group of data corresponds to one target client, and the one group of data corresponding to the target client becomes the target data, and when the data server obtains the target data corresponding to the target client, the sending module 302 sends the target data to the target client through the data server, and the storage module 401 stores the target data received by the target client in a storage structure of the target storage server, where the storage structure may be a tangible storage medium such as a floppy disk, an optical disk, a hard disk, and a usb disk.
Optionally, as shown in fig. 5, in some embodiments of the present application, the storage expansion apparatus 300 further includes: a monitoring module 501;
a monitoring module 501, configured to monitor the storage data amount of the source storage server 202;
the processing module 301 is further configured to determine whether the storage data amount is greater than a storage threshold;
the processing module 301 is further configured to determine that the storage capacity of the source storage server 202 is insufficient when the storage data amount is greater than or equal to the storage threshold;
the processing module 301 is further configured to determine that the storage capacity of the source storage server 202 is sufficient when the storage data amount is smaller than the storage threshold.
In the embodiment of the present application, a precondition for the target server to establish the target client is that, when the storage capacity of the source storage server is insufficient, the monitoring module 501 needs to monitor the storage data amount of the source storage server, which may be to monitor the already stored data of the source storage server in real time, or to periodically monitor the data stored in the source storage server to obtain the storage data amount, determine whether the storage data amount is greater than a storage threshold, where the storage threshold represents a maximum value of the data amount allowed to be stored by the source storage server, and when the storage data amount is greater than or equal to the storage threshold, the source storage server cannot continue to store the data, and at this time, the processing module 301 determines that the storage capacity of the source storage server is insufficient; when the amount of storage data is smaller than the storage threshold, the size of the amount of data that the source storage server can also store (storage threshold — amount of storage data), and the processing module 301 determines that the storage capacity of the source storage server is sufficient.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A storage expansion method is applied to a storage system, the storage system comprises a data server and a source storage server, the source storage server comprises a source client, and the storage expansion method comprises the following steps:
when the storage capacity of the source storage server is insufficient, a target client is established in a target server, and the target client is the same as the source client;
sending a storage expansion request to the data server through the target client;
receiving a storage expansion response sent to the target client by the data server;
and determining the target server as a target storage server according to the storage expansion response.
2. The method of claim 1, wherein sending, by the target client, a storage expansion request to the data server comprises:
sending a first connection request to the data server through the target client;
when the target client receives a first connection response sent by the data server within a preset time, sending a storage expansion request to the data server through the target client;
and when the target client does not receive the first connection response sent by the data server within the preset time, sending a second connection request to the data server through the target client.
3. The method of claim 1, wherein after determining that the target server is a target storage server according to the storage expansion response, further comprising:
when the data server acquires target data corresponding to the target client, the target data is sent to the target client through the data server;
and storing the target data received by the target client to the target storage server.
4. The method according to any one of claims 1 to 3, wherein before the target server establishes the target client, further comprising:
monitoring the storage data volume of the source storage server;
judging whether the storage data volume is larger than a storage threshold value;
if the storage capacity of the source storage server is larger than or equal to the storage capacity of the source storage server, determining that the storage capacity of the source storage server is insufficient;
and if the current storage capacity is smaller than the preset storage capacity, determining that the storage capacity of the source storage server is sufficient.
5. The method of claim 4, wherein the data server is a Message Queue Telemetry Transport (MQTT) server, and wherein the source client and the target client are MQTT clients.
6. A storage expansion device is applied to a storage system, the storage system comprises a data server and a source storage server, the source storage server comprises a source client, and the storage expansion device comprises:
the processing module is used for establishing a target client at a target server when the storage capacity of the source storage server is insufficient, wherein the target client is the same as the source client;
the sending module is used for sending a storage expansion request to the data server through the target client;
the receiving module is used for receiving a storage expansion response sent to the target client by the data server;
and the processing module is also used for determining the target server as the target storage server according to the storage expansion response.
7. The apparatus of claim 6,
the sending module is further configured to send a first connection request to the data server through the target client;
the sending module is further configured to send a storage expansion request to the data server through the target client when the target client receives a first connection response sent by the data server within a predetermined time;
the sending module is further configured to send a second connection request to the data server through the target client when the target client does not receive the first connection response sent by the data server within a predetermined time.
8. The apparatus of claim 6, further comprising: a storage module;
the sending module is further configured to send the target data to the target client through the data server when the data server obtains the target data corresponding to the target client;
the storage module is used for storing the target data received by the target client to the target storage server.
9. The apparatus of any one of claims 6 to 8, further comprising: a monitoring module;
the monitoring module is used for monitoring the storage data volume of the source storage server;
the processing module is further configured to determine whether the storage data amount is greater than a storage threshold;
the processing module is further configured to determine that the storage capacity of the source storage server is insufficient when the storage data amount is greater than or equal to the storage threshold;
the processing module is further configured to determine that the storage capacity of the source storage server is sufficient when the storage data amount is smaller than the storage threshold.
10. The apparatus of claim 9, wherein the data server is a Message Queue Telemetry Transport (MQTT) server, and wherein the source client and the target client are MQTT clients.
CN201711276265.4A 2017-12-06 2017-12-06 Storage expansion method and storage expansion device Active CN108055305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711276265.4A CN108055305B (en) 2017-12-06 2017-12-06 Storage expansion method and storage expansion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711276265.4A CN108055305B (en) 2017-12-06 2017-12-06 Storage expansion method and storage expansion device

Publications (2)

Publication Number Publication Date
CN108055305A CN108055305A (en) 2018-05-18
CN108055305B true CN108055305B (en) 2020-11-17

Family

ID=62122576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711276265.4A Active CN108055305B (en) 2017-12-06 2017-12-06 Storage expansion method and storage expansion device

Country Status (1)

Country Link
CN (1) CN108055305B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116304257B (en) * 2023-05-19 2023-08-08 天云融创数据科技(北京)有限公司 Classified storage method and system based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009516A (en) * 2006-01-26 2007-08-01 华为技术有限公司 A method and system for data synchronization
CN102801783A (en) * 2012-06-29 2012-11-28 张建忠 Local cloud storing method and system
CN102821096A (en) * 2012-07-17 2012-12-12 华中科技大学 Distributed storage system and file sharing method thereof
CN104506620A (en) * 2014-12-23 2015-04-08 西安电子科技大学 Extensible automatic computing service platform and construction method for same
CN104935668A (en) * 2015-06-26 2015-09-23 四川长虹电器股份有限公司 Distributed file system and data synchronization method therefor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108316A1 (en) * 2003-11-18 2005-05-19 Sbc Knowledge Ventures, L.P. Methods and systems for organizing related communications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009516A (en) * 2006-01-26 2007-08-01 华为技术有限公司 A method and system for data synchronization
CN102801783A (en) * 2012-06-29 2012-11-28 张建忠 Local cloud storing method and system
CN102821096A (en) * 2012-07-17 2012-12-12 华中科技大学 Distributed storage system and file sharing method thereof
CN104506620A (en) * 2014-12-23 2015-04-08 西安电子科技大学 Extensible automatic computing service platform and construction method for same
CN104935668A (en) * 2015-06-26 2015-09-23 四川长虹电器股份有限公司 Distributed file system and data synchronization method therefor

Also Published As

Publication number Publication date
CN108055305A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN109343963B (en) Application access method and device for container cluster and related equipment
CN111641583B (en) Internet of things resource access system and resource access method
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN112104754B (en) Network proxy method, system, device, equipment and storage medium
EP3837604B1 (en) In situ triggered function as a service within a service mesh
CN106657180B (en) Information transmission method and device for cloud service, terminal equipment and system
US9456017B2 (en) System and method for a connector being able to adapt to newer features introduced to a messaging provider with only configuration changes
US7844708B2 (en) Method and apparatus for load sharing and data distribution in servers
US8606908B2 (en) Wake-up server
CN111193773A (en) Load balancing method, device, equipment and storage medium
CN113595927A (en) Method and device for processing mirror flow in bypass mode
US10673971B1 (en) Cross-partition messaging using distributed queues
CN110545230B (en) Method and device for forwarding VXLAN message
CN113300854A (en) Edge node capability expansion method, system and expansion box
CN114553693B (en) Gateway upgrading method and device
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN107342929B (en) Method, device and system for sending new message notification
CN113556359B (en) Communication protocol conversion method, device, system and gateway device
CN108595574B (en) Database cluster connection method, device, equipment and storage medium
KR20130130295A (en) System and method for assigining server to terminal and efficiently delivering messages to the terminal
CN112968965B (en) Metadata service method, server and storage medium for NFV network node
CN110661673B (en) Heartbeat detection method and device
CN108055305B (en) Storage expansion method and storage expansion device
CN113810349B (en) Data transmission method, device, computer equipment and storage medium
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework

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
GR01 Patent grant
GR01 Patent grant