Data processing system and method and device
Example data processing methods and apparatus are described. The data processing system includes an application server and a storage device. After receiving a first management request, the storage device configures a processing mode of the storage device for a data access request. The application server sends a data access request to the storage device, where the data access request is a request to access data stored in the storage device. The storage device processes, based on the processing mode, the data access request sent by the application server, and accesses the stored data.
1 . A data processing system, wherein:
the data processing system comprises an application server and a storage device, and the storage device is a node in a storage system;
the application server comprises one or more first processors and one or more first memories coupled to the one or more first processors, wherein the one or more first memories store programming instructions for execution by the one or more first processors to:
send a first management request to the storage device, wherein the first management request requests to configure a processing mode of the storage device for a data access request, wherein the processing mode comprises a processing priority of the data access request; and
send a data access request to the storage device, wherein the data access request requests to access data stored in the storage device; and
the storage device comprises one or more second processors and one or more second memories coupled to the one or more second processors, wherein the one or more second memories store programming instructions for execution by the one or more second processors to:
receive the first management request;
configure, based on the first management request, the processing mode of the storage device for the data access request, wherein configuring the processing mode comprises configuring a processing priority of the data access request based on the first management request; and
process, based on the processing mode, the data access request sent by the application server.
2 . The data processing system according to claim 1 , wherein when configuring, based on the first management request, the processing mode of the storage device for the data access request, the one or more second memories store programming instructions for execution by the one or more second processors to:
configure a working mode of the storage device based on the first management request.
3 . The data processing system according to claim 2 , wherein when configuring the working mode of the storage device based on the first management request, the one or more second memories store programming instructions for execution by the one or more second processors to:
send a management command to a hard disk of the storage device based on the first management request, wherein the management command requests to configure a working mode of the hard disk.
4 . The data processing system according to claim 1 , wherein
the one or more first memories store programming instructions for execution by the one or more first processors to send a second management request to the storage device, wherein the second management request is used to deliver a first computing task to the storage device; and
the one or more second memories store programming instructions for execution by the one or more second processors to:
execute the first computing task based on the second management request; and
feed back a computation result of the first computing task to the application server.
5 . The data processing system according to claim 4 , wherein the first computing task comprises a part or all of the following:
data search, data migration, data computing, data encoding/decoding, data sorting, or data compression.
6 . The data processing system according to claim 1 , wherein:
the one or more first memories store programming instructions for execution by the one or more first processors to send a third management request to the storage device, wherein the third management request requests to monitor a hard disk of the storage device; and
the one or more second memories store programming instructions for execution by the one or more second processors to:
monitor the hard disk of the storage device based on the third management request, and
feed back a status of the hard disk to the application server.
7 . The data processing system according to claim 3 , wherein the management command indicates an adjustment manner to configure the working mode of the hard disk, and the adjustment manner comprises adjustment of a throughput or a background operation frequency of the hard disk.
8 . The data processing system according to claim 6 , wherein the status of the hard disk comprises at least one of: a service life of the hard disk, a latency of the hard disk, an error condition of the hard disk, or whether the hard disk works normally.
9 . A storage device, wherein the storage device comprises one or more processors, one or more memories, and a hard disk, the one or more memories store programming instructions for execution by the one or more processors to:
implement interaction between the storage device and the hard disk of the storage device;
receive a first management request from an application server, wherein the first management request requests to configure a processing mode of the storage device for a data access request, wherein the processing mode comprises a processing priority of the data access request;
configure the processing mode of the storage device based on the first management request, wherein configuring the processing mode comprises configuring a processing priority of the data access request based on the first management request; and
process, based on the processing mode, the data access request sent by the application server.
10 . The storage device according to claim 9 , wherein the storage device further comprises:
a network interface card, wherein the network interface card comprises the one or more processors.
11 . The storage device according to claim 9 , wherein the processing mode comprises a working mode of the storage device, and when configuring the processing mode of the storage device based on the first management request, the one or more memories store programming instructions for execution by the one or more processors to:
send, based on the first management request, a management command to the hard disk of the storage device, wherein the management command requests to configure a working mode of the hard disk.
12 . The storage device according to claim 9 , wherein
the one or more memories store programming instructions for execution by the one or more processors to:
receive a second management request sent by the application server, wherein the second management request is used to deliver a first computing task to the storage device;
obtain data from the hard disk based on the second management request;
execute the first computing task based on the obtained data; and
feed back a computation result of the first computing task to the application server.
13 . The storage device according to claim 9 , wherein
the one or more memories store programming instructions for execution by the one or more processors to:
receive a third management request sent by the application server, wherein the third management request requests to monitor the hard disk of the storage device;
send, based on the third management request, a monitoring command to the hard disk of the storage device, wherein the monitoring command requests to feed back a status of the hard disk;
receive a monitoring response from the hard disk, wherein the monitoring response comprises the status of the hard disk; and
feed back the status of the hard disk to the application server.
14 . A data processing method, wherein the data processing method comprises:
receiving, by a storage device, a first management request sent by an application server, wherein the first management request requests to configure a processing mode of the storage device for a data access request, wherein the processing mode comprises a processing priority of the data access request;
configuring, by the storage device based on the first management request, the processing mode of the storage device for the data access request, wherein configuring the processing mode comprises configuring a processing priority of the data access request based on the first management request; and
processing, by the storage device based on the processing mode, the data access request sent by the application server.
15 . The data processing method according to claim 14 , wherein the configuring, by the storage device based on the first management request, the processing mode of the storage device for the data access request comprises:
configuring, by the storage device, a working mode of the storage device based on the first management request.
16 . The data processing method according to claim 15 , wherein configuring the working mode of the storage device based on the first management request comprises:
sending a management command to a hard disk of the storage device based on the first management request, wherein the management command requests to configure a working mode of the hard disk.
17 . The data processing method according to claim 15 , wherein the data processing method further comprises:
receiving, by the storage device, a second management request sent by the application server, wherein the second management request is used to deliver a first computing task to the storage device;
executing, by the storage device, the first computing task based on the second management request; and
feeding back a computation result of the first computing task to the application server.
18 . The data processing method according to claim 17 , wherein the first computing task comprises a part or all of the following:
data search, data migration, data computing, data encoding/decoding, data sorting, or data compression.
19 . The data processing method according to claim 15 , wherein the data processing method further comprises:
receiving, by the storage device, a third management request sent by the application server, wherein the third management request requests to monitor a hard disk of the storage device;
monitoring, by the storage device, the hard disk of the storage device based on the third management request; and
feeding back a status of the hard disk to the application server.
20 . The data processing method according to claim 19 , wherein the monitoring, by the storage device, the hard disk of the storage device based on the third management request comprises:
sending, by the storage device, a monitoring command to the hard disk of the storage device based on the third management request, wherein the monitoring command requests to feed back the status of the hard disk; and
receiving, by the storage device, a monitoring response from the hard disk, wherein the monitoring response comprises the status of the hard disk.