[go: up one dir, main page]

CN110891085B - Information processing method, server and data center - Google Patents

Information processing method, server and data center Download PDF

Info

Publication number
CN110891085B
CN110891085B CN201911124285.9A CN201911124285A CN110891085B CN 110891085 B CN110891085 B CN 110891085B CN 201911124285 A CN201911124285 A CN 201911124285A CN 110891085 B CN110891085 B CN 110891085B
Authority
CN
China
Prior art keywords
client
instruction
data center
data
server
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
CN201911124285.9A
Other languages
Chinese (zh)
Other versions
CN110891085A (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.)
Tianjin Lenovo Collaboration Technology Inc
Original Assignee
Tianjin Lenovo Collaboration Technology Inc
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 Tianjin Lenovo Collaboration Technology Inc filed Critical Tianjin Lenovo Collaboration Technology Inc
Priority to CN201911124285.9A priority Critical patent/CN110891085B/en
Publication of CN110891085A publication Critical patent/CN110891085A/en
Application granted granted Critical
Publication of CN110891085B publication Critical patent/CN110891085B/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/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an information processing method, a server and a data center, which are applied to the server and comprise the following steps: receiving a first request instruction, wherein the first request instruction comes from a first client; receiving all matching instructions from all data centers, wherein all the matching instructions comprise matching indexes corresponding to the first client; obtaining a first optimal matching index according to all matching indexes corresponding to the first client, wherein the first optimal matching index is from a first data center; recording first storage data, wherein the first storage data comprise the first client information and the first data center information; and sending a first response instruction, wherein the first response instruction is used for instructing the first client to store first target data into the first data center and obtaining a storage scheme with the lowest cost and the optimal speed price.

Description

Information processing method, server and data center
Technical Field
The invention relates to the technical field of data storage, in particular to an information processing method, a server and a data center.
Background
Cloud storage is a mode of online storage, i.e., data is stored in a data center, which is usually hosted by a third party, rather than on a dedicated server. The hosting company operates a large-scale data center, and users who need data storage hosting meet the data storage requirements through a mode of buying or leasing storage space for the users.
When a user needs to store, the storage request needs to be sent to the server, and the server needs to repeatedly calculate the storage address of the user, so that the server is inefficient in responding to the request.
Disclosure of Invention
The invention provides an information processing method, a server and a data center, which are used for reducing the calculation pressure of the server.
One aspect of the present invention provides an information processing method, applied to a server, including: receiving a first request instruction, wherein the first request instruction comes from a first client; receiving all matching instructions from all data centers, wherein all the matching instructions comprise matching indexes corresponding to the first client; obtaining a first optimal matching index according to all matching indexes corresponding to the first client, wherein the first optimal matching index is from a first data center; recording first storage data, wherein the first storage data comprise the first client information and the first data center information; and sending a first response instruction, wherein the first response instruction is used for instructing the first client to store first target data into the first data center.
In one implementation, the first response instruction includes a first security threshold, which is generated according to the first client, and the method further includes: receiving a second request instruction, the second request instruction being from the first client, the second request instruction comprising a first security threshold; acquiring a first floating safety value corresponding to the first safety threshold; judging whether the first safety threshold value exceeds the first floating safety value or not; and when the first safety threshold value does not exceed the first floating safety value, sending a second response instruction, wherein the second response instruction is used for instructing the first client to store second target data into the first data center.
In one possible implementation, after the determining whether the first safety threshold exceeds the first floating safety value, the method further includes: when the first safety threshold value exceeds the first floating safety value, obtaining a second optimal matching index corresponding to the second request instruction, wherein the second optimal matching index comes from a second data center; updating the first storage data to second storage data, wherein the second storage data comprises the first client information and the second data center information; and sending a third response instruction, wherein the third response instruction is used for instructing the first client to store the second target data into the second data center.
In one possible embodiment, the first stored data includes an IP address of a same network segment as the first client, the method further comprising: receiving a third request instruction, wherein the third request instruction is from a second client, and the second client is an IP address of the first client in the same network segment; acquiring the first floating safety value corresponding to the first data center and a second safety threshold corresponding to the second client; comparing the first floating safety value to the second safety threshold; obtaining a third data center corresponding to the second client according to the comparison result; recording third storage data, wherein the third storage data comprise the second client information and the third data center information; and sending a fourth response instruction, wherein the fourth response instruction is used for instructing the second client to store third target data into the third data center.
In one implementation, the method is applied to a data center, and comprises the following steps: receiving a first distribution instruction, wherein the first distribution instruction comprises first client information; calculating and recording a matching index corresponding to the first client; sending a matching instruction to a server, wherein the matching instruction comprises the matching index; and receiving a write instruction, wherein the write instruction is used for storing first target data written by the first client.
Another aspect of the present invention provides a server, including: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a first request instruction, and the first request instruction comes from a first client; the receiving module is further configured to receive all matching instructions from all data centers, where all the matching instructions include matching indexes corresponding to the first client; the obtaining module is used for obtaining a first optimal matching index according to all matching indexes corresponding to the first client, and the first optimal matching index is from a first data center; the recording module is used for recording first storage data, and the first storage data comprise the first client information and the first data center information; the sending module is used for sending a first response instruction, and the first response instruction is used for indicating the first client to store first target data into the first data center.
In one embodiment, the first response instruction includes a first security threshold, the first security threshold is generated according to the first client, and the system further includes: the receiving module is further configured to receive a second request instruction, where the second request instruction is from the first client, and the second request instruction includes a first security threshold; the acquisition module is used for acquiring a first floating safety value corresponding to the first safety threshold; the judging module is used for judging whether the first safety threshold value exceeds the first floating safety value or not; the sending module is further configured to send a second response instruction when the first security threshold does not exceed the first floating security value, where the second response instruction is used to instruct the first client to store second target data in the first data center.
In one embodiment, the method further comprises: the obtaining module is further configured to obtain a second optimal matching index corresponding to the second request instruction when the first safety threshold exceeds the first floating safety value, where the second optimal matching index is from a second data center; the updating module is used for updating the first storage data into second storage data, and the second storage data comprises the first client information and the second data center information; the sending module is further configured to send a third response instruction, where the third response instruction is used to instruct the first client to store the second target data in the second data center.
In one possible embodiment, the first stored data includes an IP address on the same network segment as the first client, the system further comprising: the receiving module is further configured to receive a third request instruction, where the third request instruction is from a second client, and the second client is an IP address of the first client in the same network segment; the obtaining module is further configured to obtain the first floating security value corresponding to the first data center and a second security threshold value corresponding to the second client; a comparison module for comparing the first floating safety value with the second safety threshold; the acquisition module is further used for acquiring a third data center corresponding to the second client according to the comparison result; the recording module is further configured to record third storage data, where the third storage data includes the second client information and the third data center information; the sending module is further configured to send a fourth response instruction, where the fourth response instruction is used to instruct the second client to store third target data in the third data center.
Another aspect of the present invention provides a data center, comprising: a receiving module: the system comprises a first module for receiving a first allocation instruction, wherein the first allocation instruction comprises first client information; a calculation recording module: the matching index corresponding to the first client side is calculated and recorded; the sending module is used for sending a matching instruction to a server, wherein the matching instruction comprises the matching index; and the receiving module is used for receiving a writing instruction, wherein the writing instruction is used for storing first target data written by the first client.
The information processing method provided by the embodiment of the invention can quickly respond to the storage request in the information storage process, save the bandwidth of the existing network resources, reduce the pressure of the server, avoid the problem of repeatedly calculating the efficiency and pressure of the storage data center, reduce the resource waste and improve the efficiency.
Drawings
FIG. 1 is a first flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a second information processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a third method of processing information according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a fifth exemplary method of processing information according to the present invention;
FIG. 6 is a block diagram of a server according to an embodiment of the present invention;
fig. 7 shows a module diagram of a data center according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Fig. 1 is a first flowchart illustrating an information processing method according to an embodiment of the present invention.
Referring to fig. 1, an aspect of the embodiment of the present invention provides an information processing method, applied to a server, including: step 101, receiving a first request instruction, wherein the first request instruction is from a first client; 102, receiving all matching instructions from all data centers, wherein all the matching instructions comprise matching indexes corresponding to a first client; 103, obtaining a first optimal matching index according to all matching indexes corresponding to the first client, wherein the first optimal matching index is from a first data center; step 104, recording first storage data, wherein the first storage data comprises first client information and first data center information; and 105, sending a first response instruction, wherein the first response instruction is used for instructing the first client to store the first target data into the first data center.
The information processing method provided by the embodiment of the invention can quickly respond to the storage request in the information storage process, save the bandwidth of the existing network resources, reduce the pressure of the server, avoid the problem of repeatedly calculating the efficiency and pressure of the storage data center, reduce the resource waste and improve the efficiency.
In application, firstly, a server receives a first request instruction, and the first request instruction comes from a first client. The server is a cloud server or a physical server, and is in communication connection with the first client, where a specific communication connection manner is not limited, and the communication connection manner may be implemented by any one of an ethernet communication manner, a Radio station manner, a General Packet Radio Service (GPRS) communication manner, and a Modem (Modem) dialing manner. The first client may be any terminal device in communication connection with the server, such as a desktop computer, a notebook computer, a mobile phone, and the like. The first request instruction comes from the first client, and the first request instruction at least comprises first client information and a command requesting storage. And after the server analyzes the first request instruction, obtaining command information at least comprising the request for storage.
The server further executes step 102, and receives all matching instructions from all data centers, wherein all matching instructions include matching indexes corresponding to the first client. It should be noted that the matching instruction generation instruction that instructs the data center to generate the matching instruction may be sent to the data center by the first client, or may be sent to the data center by the server. That is, when a matching instruction generation instruction for instructing the data center to generate a matching instruction may be sent to the data center by the first client, and the first client sends the first request instruction and simultaneously sends a matching instruction generation instruction for instructing the data center to generate a matching instruction to the data center, on this basis, there is no chronological order between step 101 and step 102, and the server may receive the matching instruction first and then receive the first request instruction, may also receive the first request instruction first and then receive the matching instruction, and may also receive the first request instruction while receiving the matching instruction. When a matching instruction generation instruction server for instructing the data center to generate a matching instruction is sent to the data center, step 102 is located after step 101, and between step 101 and step 102, step 1011 is further included, in which the server parses and obtains command information corresponding to the request storage of the first client, and step 1012, the server sends the matching instruction generation instruction to the data center. I.e., step 102 is located after step 1012.
In step 102, the data centers are at least one device with a data storage function, the data centers are connected with the server and/or the first client through communication, and the matching instruction generated by the data center includes the matching index of the data center corresponding to the first client, that is, when the number of the data centers is greater than or equal to two, the matching indexes generated by different data centers are the same or different. Based on the information, at least data of the information to be stored is included in the matching instruction generation instruction which instructs the data center to generate the matching instruction. Further, when the matching instruction generation instruction is sent to the data center by the server, the matching instruction generation instruction includes or does not include first client information, and when the matching instruction generation instruction does not include the first client information, the matching instruction generation instruction includes information corresponding to the first request instruction; when the matching instruction generating instruction comes from the first client, the matching instruction generating instruction comprises first client information and/or information corresponding to the first request instruction, wherein the matching instruction generating instruction further comprises a stability coefficient consisting of a position H, a network bandwidth condition W, a price P and a packet loss proportion time. The first client information is specifically user identity information and a user activity coefficient, such as user storage amount and other information. The matching index is a stability coefficient composed of the position H, the network bandwidth condition W, the price P and the packet loss proportion time, and is combined with the optimal address stored by the current user calculated by the user activity coefficient (memory space) to form a matching coefficient R for evaluating the matching degree between the data center and the first client, and each data center records the final matching index R.
After the server obtains the first request instruction and all the matching instructions, step 103 is executed to obtain a first optimal matching index according to all the matching indexes corresponding to the first client, where the first optimal matching index is from the first data center. And obtaining a first optimal matching index by comparing the matching indexes, wherein the first optimal matching index corresponds to a first data center with the highest matching degree of the first client. In this way, the server obtains the first data center with the highest matching degree corresponding to the first client.
Then, the server records first storage data, wherein the first storage data comprise first client information and first data center information. The first storage data is used for binding the first client information and the first data center information, so that when the server receives the first request instruction from the first client again, the user storage address does not need to be recalculated. It should be added that the first storage data not only includes the first client, but also includes all Internet Protocol addresses (IPs) of the network segment where the first client is located, that is, all IPs of 0-225 are recorded together.
After the first data center with the highest matching degree corresponding to the first client is obtained, the server sends a first response instruction, and the first response instruction is used for indicating the first client to store the first target data into the first data center. Here, when the first request instruction does not include specific content of the first target data, a first response instruction is sent to the first client for instructing the first client to store the first target data in the first data center, and the first response instruction is simultaneously sent to the first data center for instructing the data center to store the first target data uploaded by the first client. Therefore, the operation of storing the first target data into the optimal data center can be completed. When the first request instruction comprises the specific content of the first target data, the first response instruction is sent to the first data center, and the first target data is stored in the data center through the server.
To facilitate a further understanding of the above embodiments, a detailed description of a scenario is provided below. In the scene, a server, a data center and a first client are included. The server, the data center and the first client are connected through communication.
When the first client needs to store the target file A to the data center, the display panel is operated, a first request instruction used for indicating that the target file A is stored to the data center is generated, and the first request instruction is sent to the server.
After receiving the first request instruction, the server analyzes the first request instruction to obtain first client information and information requesting to store a target file A, wherein the first client information comprises a user identity for confirming the user identity and a user storage amount for determining the user activity coefficient, a position H, a network bandwidth condition W and a price P, and packet loss proportion time is combined into information of a stability coefficient.
After obtaining the first client information and the information of requesting to store the target file A, the server generates a matching instruction generating instruction at least comprising the first client information, and sends the matching instruction generating instruction to all data centers, wherein the number of the data centers is more than 2.
After each data center receives the matching instruction generation instruction, the matching instruction generation instruction is analyzed to obtain first client information, a matching index corresponding to the data center is generated according to the first client information, a matching instruction including the matching index corresponding to the server is generated, and the matching instruction is sent to the server.
And after receiving all the matching instructions, the server analyzes all the matching instructions to obtain matching indexes, and obtains a first optimal matching index and a first data center corresponding to the first optimal matching index by comparing the matching indexes.
The server binds the first data center and the first user side, and records first storage data corresponding to the binding information of the first data center and the first user side. And sending a first response instruction to instruct the first client to store the target file A in the first data center.
Fig. 2 is a schematic flowchart illustrating an information processing method according to a second embodiment of the present invention.
Referring to fig. 2, in this embodiment of the present invention, in step 105, the first response instruction includes a first safety threshold, where the first safety threshold is generated according to the first client, and the method further includes: step 201, receiving a second request instruction, where the second request instruction is from a first client, and the second request instruction includes a first security threshold; step 202, obtaining a first floating safety value corresponding to a first safety threshold; step 203, judging whether the first safety threshold value exceeds a first floating safety value; and step 204, when the first safety threshold value does not exceed the first floating safety value, sending a second response instruction, wherein the second response instruction is used for instructing the first client to store the second target data into the first data center.
The first response instruction includes a first safety threshold, and the first safety threshold is generated according to information of the first client, for example, the first safety threshold is determined according to one or more of the storage amount of the first client, the storage request frequency of the first client, the bandwidth of the first client, the location of the first client, the price of the first client, and the stability coefficient of the first client. The first response instruction is used for being sent to the first client, so that the first client records the first safety threshold value to be carried by the first client when the first client carries out the storage request next time.
And generating a first floating safety value according to a first safety threshold value and storing the first floating safety value in the server, wherein the first floating safety value is determined according to the server information and/or the first data center information, such as the data center storage capacity and the data center storage pressure. And judging whether the target data of the first client is properly stored in the first data center or not by comparing the first safety threshold with the first floating safety value. The second target data is the same as or different from the first target data, and the embodiment of the present invention does not limit the specific type of the target data, and may be any storable file such as a document, a picture, a video, an audio, and the like.
It should be added that, in addition to the first response instruction, the server may generate an instruction including the first safety threshold to the first client, so that the first client obtains the first safety threshold.
Specifically, after the first client has the first security threshold, when the first client has a storage requirement, the second client sends a second request instruction to the server, and receives the second request instruction, where the second request instruction includes the first security threshold. The server obtains a first safety threshold corresponding to the first client through analysis.
After the first safety threshold value is obtained, the server searches for and obtains a first floating safety value corresponding to the first safety threshold value. A comparison may determine whether the first safety threshold exceeds a first floating safety value. And when the first safety threshold value does not exceed the first floating safety value, sending a second response instruction, wherein the second response instruction is used for instructing the first client to store the second target data into the first data center. In this way, when the same client has multiple storage requirements, the storage address of the client is only required to be calculated when the client performs the storage request for the first time, and when the client has a subsequent storage requirement, whether the target data are suitable for being stored in the first data center can be determined according to the comparison between the first safety threshold and the first floating safety value. The data center address suitable for storing the target data does not need to be repeatedly calculated, so that the server can quickly respond to the storage requirement, the storage scheme in each time is ensured to have better optimization, speed and cost performance, and the efficiency is greatly improved.
FIG. 3 is a flow chart illustrating a third method of processing information according to an embodiment of the present invention;
referring to fig. 3, in the embodiment of the present invention, after determining whether the first safety threshold exceeds the first floating safety value in step 203, the method further includes: step 301, when the first safety threshold exceeds the first floating safety value, obtaining a second optimal matching index corresponding to the second request instruction, wherein the second optimal matching index comes from the second data center; step 302, updating the first storage data into second storage data, wherein the second storage data comprises first client information and second data center information; step 303, sending a third response instruction, where the third response instruction is used to instruct the first client to store the second target data in the second data center.
When the first safety threshold value exceeds the first floating safety value, namely the first data center is not the optimal storage address of the target data of the first client, at the moment, the server acquires the matching index of the data center again, and the second optimal matching index in the period can be acquired through comparison. Here, the matching index that the server compares may or may not include the matching index corresponding to the first data center. When the matching index here includes the matching index of the first data center, and according to the comparison result, the second optimal matching index is still the matching index corresponding to the first data center, the first data center and the second data center are the same. At this time, the server returns the new first security threshold value to the first client again and generates a new first security floating value corresponding to the new first security threshold value. Based on this, the first data center and the second data center are the same or different. It should be noted that, since the first safety threshold exceeds the first floating safety value, when the first data center and the second data center are the same, the updated first stored data and the updated second stored data are different, and at least one of the first safety threshold and the new first safety threshold, the first floating safety value and the new first floating safety value is different. When the optimal data center with the second optimal matching index is obtained, step 303 is performed, and a third response instruction is sent, where the third response instruction is used to instruct the first client to store the second target data in the second data center, so that the purpose of storing the second target data in the data center can be completed.
It is to be added that, when the first storage data is updated to the second storage data, the first floating security value of the client in the user IP address is updated according to the IP address of the first client, so that the server does not need to recalculate the first floating security value of the other clients when the other clients make storage requests.
Fig. 4 shows a flowchart of an information processing method according to a fourth embodiment of the present invention.
Referring to fig. 4, in the embodiment of the present invention, the first storage data includes an IP address in the same network segment as the first client, and the method further includes: step 401, receiving a third request instruction, where the third request instruction is from a second client, and the second client is an IP address of the first client in the same network segment; step 402, obtaining a first floating security value corresponding to a first data center and a second security threshold value corresponding to a second client; step 403, comparing the first floating safety value with a second safety threshold; step 404, obtaining a third data center corresponding to the second client according to the comparison result; step 405, recording third storage data, wherein the third storage data comprises second client information and third data center information; step 406, sending a fourth response instruction, where the fourth response instruction is used to instruct the second client to store the third target data in the third data center.
In order to reduce the computing pressure of the server when the client makes a first storage request, when the client makes the storage request for the first time, the computing pressure of the client in the same network segment relative to the optimal data center when making the first storage request can be reduced by comparing the network segments of the client and the previous client. The second client herein refers to other clients than the first client, and only plays a role of naming distinction.
First, when the server receives a third request instruction, at least information of the second client and request information of data storage included in the third request instruction are obtained by parsing. The obtained information content of the second client at least comprises an IP address of the second client, the server searches previously stored storage data through the IP address of the second client, and the storage data comprises the previously stored IP address of the client, such as the IP address of the first client and the IP address of the same network segment with the first client, which are stored in the first storage data. The server can confirm whether the IP address of the second client is stored in the previous storage data or not by searching the storage data, and when the IP address of the second client is not stored in the previous storage data, the server can obtain the optimal storage data center address for storing the target data of the second client through the steps 101 to 105. Step 402 is performed when the IP address of the second client is stored in the previously stored data, i.e. the server has looked up the stored data corresponding to the IP address of the second client. It should be noted that, in step 401, the second client is the IP address of the first client in the same network segment, where whether the IP address of the second client in the same network segment of the first client needs to be obtained by the server through searching and comparing. Further, the first client herein refers to a client that has performed storage data storage before the second client, and does not refer to the first client in the above embodiments.
And similarly, the second safety threshold is generated according to the information of the second client, for example, two or more of the storage capacity of the second client, the storage request frequency of the second client, the bandwidth of the second client, the position of the second client, the price of the second client and the stability coefficient of the second client are determined.
And similarly, comparing the first floating safety value with the first safety threshold value, judging whether the second client is suitable to be stored in the first data center or not by comparing the first floating safety value with the second safety threshold value, and storing the third target data into the third data center to finish the storage of the third target data when the comparison result shows that the second safety threshold value does not exceed the first floating safety value and the third data center is the same as the first data center. And when the comparison result shows that the second safety threshold value exceeds the first floating safety value, searching the network segment close to the IP address of the second client again, acquiring other floating safety values, comparing again until the floating safety value which is not exceeded by the second safety threshold value is acquired, and storing the third target data into the data center corresponding to the floating safety value. When the comparison result is that the second security threshold exceeds the first floating security value, the method provided in steps 101 to 105 may also be used to determine a third data center suitable for the second client to store. After the third data center is determined, step 405 is executed to record third storage data, where the third storage data includes the second client information and the third data center information. And then the fourth response instruction instructs the second client to store the third target data into the third data center.
Fig. 5 is a flowchart illustrating a fifth information processing method according to an embodiment of the present invention.
Referring to fig. 5, an aspect of the embodiment of the present invention provides an information processing method, applied to a data center, including: step 501, receiving a first distribution instruction, wherein the first distribution instruction comprises first client information; step 502, calculating and recording a matching index corresponding to a first client; step 503, sending a matching instruction to the server, wherein the matching instruction comprises a matching index; step 504, receiving a write command, where the write command is used to store first target data written by the first client.
The information processing method provided by the embodiment of the invention is applied to the data center, so that the data center can quickly respond to the storage request in the information storage process, the existing network resource bandwidth is saved, the pressure of the server is reduced, the efficiency and pressure problems of the data center do not need to be repeatedly calculated and stored, the resource waste is reduced, and the efficiency is improved.
In application, the data center receives a first distribution instruction, the first distribution instruction can be from a server or a first client and is used for providing first client information, the data center calculates and records a matching index corresponding to the first client by combining the data center information and the first client information, and the distribution index is sent to the server. And storing the first target data written by the first client according to the write-in instruction received by the server. The received write command corresponds to the first response command.
Fig. 6 shows a module diagram of a server according to an embodiment of the present invention.
Referring to fig. 6, another aspect of the present invention provides a server, including: a receiving module 601, configured to receive a first request instruction, where the first request instruction is from a first client; the receiving module 601 is further configured to receive all matching instructions from all data centers, where all matching instructions include matching indexes corresponding to the first client; an obtaining module 602, configured to obtain a first optimal matching index according to all matching indexes corresponding to the first client, where the first optimal matching index is from the first data center; a recording module 603, configured to record first storage data, where the first storage data includes first client information and first data center information; the sending module 604 is configured to send a first response instruction, where the first response instruction is used to instruct the first client to store the first target data in the first data center.
In this embodiment of the present invention, the first response instruction includes a first safety threshold, where the first safety threshold is generated according to the first client, and the system further includes: the receiving module 601 is further configured to receive a second request instruction, where the second request instruction is from the first client, and the second request instruction includes a first security threshold; an obtaining module 605, configured to obtain a first floating safety value corresponding to a first safety threshold; a determining module 606, configured to determine whether the first safety threshold exceeds a first floating safety value; the sending module 604 is further configured to send a second response instruction when the first security threshold does not exceed the first floating security value, where the second response instruction is used to instruct the first client to store the second target data in the first data center.
In the embodiment of the present invention, the method further includes: the obtaining module 602 is further configured to obtain a second optimal matching index corresponding to the second request instruction when the first safety threshold exceeds the first floating safety value, where the second optimal matching index is from the second data center; an updating module 607, configured to update the first storage data to second storage data, where the second storage data includes first client information and second data center information; the sending module is further configured to send a third response instruction, where the third response instruction is used to instruct the first client to store the second target data in the second data center.
In this embodiment of the present invention, the first storage data includes an IP address in the same segment as the first client, and the system further includes: the receiving module 601 is further configured to receive a third request instruction, where the third request instruction is from a second client, and the second client is an IP address of the first client in the same network segment; the obtaining module 605 is further configured to obtain a first floating security value corresponding to the first data center and a second security threshold value corresponding to the second client; a comparison module 608 for comparing the first floating safety value with the second safety threshold value; the obtaining module 605 is further configured to obtain a third data center corresponding to the second client according to the comparison result; the recording module 609 is further configured to record third storage data, where the third storage data includes second client information and third data center information; the sending module 604 is further configured to send a fourth response instruction, where the fourth response instruction is used to instruct the second client to store the third target data in the third data center.
Fig. 7 shows a module diagram of a data center according to an embodiment of the present invention.
Referring to fig. 7, another aspect of the present invention provides a data center, including: the receiving module 701: the system comprises a first client and a second client, wherein the first client is used for receiving a first distribution instruction; the calculation record module 702: the matching index corresponding to the first client is calculated and recorded; a sending module 703, configured to send a matching instruction to the server, where the matching instruction includes a matching index; the receiving module 701 is further configured to receive a write instruction, where the write instruction is used to store first target data written by the first client.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (8)

1. An information processing method applied to a server includes:
receiving a first request instruction, wherein the first request instruction comes from a first client;
receiving all matching instructions from all data centers, wherein all the matching instructions comprise matching indexes corresponding to the first client;
obtaining a first optimal matching index according to all matching indexes corresponding to the first client, wherein the first optimal matching index is from a first data center;
recording first storage data, wherein the first storage data comprise first client information and first data center information;
sending a first response instruction, wherein the first response instruction is used for instructing the first client to store first target data into the first data center;
the first stored data includes an IP address of a same network segment as the first client, and the method further includes:
receiving a third request instruction, wherein the third request instruction comes from a second client, and the second client is an IP address of the first client in the same network segment;
acquiring a first floating safety value corresponding to the first data center and a second safety threshold value corresponding to the second client;
comparing the first floating safety value to the second safety threshold;
obtaining a third data center corresponding to the second client according to the comparison result;
recording third storage data, wherein the third storage data comprise the second client information and the third data center information;
and sending a fourth response instruction, wherein the fourth response instruction is used for instructing the second client to store third target data into the third data center.
2. The method of claim 1, wherein the first response instruction includes a first security threshold, and wherein the first security threshold is generated according to the first client, and wherein the method further comprises:
receiving a second request instruction, the second request instruction being from the first client, the second request instruction comprising a first security threshold;
acquiring a first floating safety value corresponding to the first safety threshold;
judging whether the first safety threshold value exceeds the first floating safety value or not;
and when the first safety threshold value does not exceed the first floating safety value, sending a second response instruction, wherein the second response instruction is used for instructing the first client to store second target data into the first data center.
3. The method of claim 2, further comprising, after said determining whether said first safety threshold exceeds said first floating safety value:
when the first safety threshold value exceeds the first floating safety value, obtaining a second optimal matching index corresponding to the second request instruction, wherein the second optimal matching index comes from a second data center;
updating the first storage data to second storage data, wherein the second storage data comprises the first client information and the second data center information;
and sending a third response instruction, wherein the third response instruction is used for instructing the first client to store the second target data into the second data center.
4. An information processing method, applied to a data center, includes:
receiving a first distribution instruction, wherein the first distribution instruction comprises first client information;
calculating and recording a matching index corresponding to the first client according to the first client information;
sending a matching instruction to a server, wherein the matching instruction comprises the matching index, the server determines a first optimal matching index with the highest matching degree with a first client by comparing the matching indexes corresponding to all data centers, the first optimal matching index is from the first data center, the server records first storage data, and the first storage data comprises an IP address in the same network segment as the first client;
the first data center receives a writing instruction from a server, receives and stores first target data from the first client, wherein the writing instruction is used for indicating to store the first target data written by the first client;
when the second client sends a third request instruction to the server, the server compares a first floating safety value corresponding to the first safety threshold with a second safety threshold, and obtains a third data center corresponding to the second client according to a comparison result, wherein the second client is an IP address of the first client in the same network segment; the server records third storage data, wherein the third storage data comprise second client information and third data center information;
and the third data center receives a writing instruction from the server, receives and stores third target data from the second client, wherein the writing instruction is used for indicating the storage of the third target data written by the second client.
5. A server, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a first request instruction, and the first request instruction comes from a first client;
the receiving module is further configured to receive all matching instructions from all data centers, where all the matching instructions include matching indexes corresponding to the first client;
the obtaining module is used for obtaining a first optimal matching index according to all matching indexes corresponding to the first client, and the first optimal matching index is from a first data center;
the recording module is used for recording first storage data, and the first storage data comprise the first client information and the first data center information;
the sending module is used for sending a first response instruction, and the first response instruction is used for indicating the first client to store first target data into the first data center;
the receiving module is further configured to receive a third request instruction, where the third request instruction is from a second client, and the second client is an IP address of the first client in the same network segment;
the acquisition module is used for acquiring a first floating safety value corresponding to the first data center and a second safety threshold corresponding to the second client;
a comparison module for comparing the first floating safety value with the second safety threshold;
the acquisition module is further used for acquiring a third data center corresponding to the second client according to the comparison result;
the recording module is further configured to record third storage data, where the third storage data includes the second client information and the third data center information;
the sending module is further configured to send a fourth response instruction, where the fourth response instruction is used to instruct the second client to store third target data in the third data center.
6. The server according to claim 5, wherein the first response instruction includes a first security threshold, the first security threshold being generated according to the first client, the server further comprising:
the receiving module is further configured to receive a second request instruction, where the second request instruction is from the first client, and the second request instruction includes a first security threshold;
the obtaining module is further configured to obtain a first floating safety value corresponding to the first safety threshold;
the judging module is used for judging whether the first safety threshold value exceeds the first floating safety value or not;
the sending module is further configured to send a second response instruction when the first security threshold does not exceed the first floating security value, where the second response instruction is used to instruct the first client to store second target data in the first data center.
7. The server of claim 6, further comprising:
the obtaining module is further configured to obtain a second optimal matching index corresponding to the second request instruction when the first safety threshold exceeds the first floating safety value, where the second optimal matching index is from a second data center;
the updating module is used for updating the first storage data into second storage data, and the second storage data comprise the first client information and the second data center information;
the sending module is further configured to send a third response instruction, where the third response instruction is used to instruct the first client to store the second target data in the second data center.
8. A data center, comprising:
a receiving module: the system comprises a first module for receiving a first allocation instruction, wherein the first allocation instruction comprises first client information;
a calculation recording module: the matching index corresponding to the first client is calculated and recorded according to the first client information;
the server is used for determining a first optimal matching index with the highest matching degree with a first client by comparing the matching indexes corresponding to all data centers, wherein the first optimal matching index is from the first data center, the server records first storage data, and the first storage data comprises first client information, first data center information and IP addresses of the first client and a network segment;
the receiving module is used for receiving a writing instruction from a server and receiving and storing first target data from the first client, wherein the writing instruction is used for indicating to store the first target data written by the first client; when the second client sends a third request instruction to the server, the server compares a first floating safety value corresponding to the first safety threshold with a second safety threshold, and obtains a third data center corresponding to the second client according to a comparison result, wherein the second client is an IP address of the first client in the same network segment; the server records third storage data, wherein the third storage data comprise second client information and third data center information;
the receiving module is further configured to receive a write instruction from a server, receive and store third target data from the second client, where the write instruction is used to instruct to store the third target data written by the second client.
CN201911124285.9A 2019-11-18 2019-11-18 Information processing method, server and data center Active CN110891085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911124285.9A CN110891085B (en) 2019-11-18 2019-11-18 Information processing method, server and data center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911124285.9A CN110891085B (en) 2019-11-18 2019-11-18 Information processing method, server and data center

Publications (2)

Publication Number Publication Date
CN110891085A CN110891085A (en) 2020-03-17
CN110891085B true CN110891085B (en) 2022-09-23

Family

ID=69747712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911124285.9A Active CN110891085B (en) 2019-11-18 2019-11-18 Information processing method, server and data center

Country Status (1)

Country Link
CN (1) CN110891085B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561084A (en) * 2013-10-30 2014-02-05 北京荣之联科技股份有限公司 Method and device for optimal access configuration of remote multiple-data-center cloud storage
CN105574208A (en) * 2016-01-29 2016-05-11 北京橙鑫数据科技有限公司 Calling card recommendation method and device
WO2017000203A1 (en) * 2015-06-30 2017-01-05 深圳市星电商科技有限公司 Data interaction processing method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190080269A1 (en) * 2017-09-11 2019-03-14 International Business Machines Corporation Data center selection for content items

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561084A (en) * 2013-10-30 2014-02-05 北京荣之联科技股份有限公司 Method and device for optimal access configuration of remote multiple-data-center cloud storage
WO2017000203A1 (en) * 2015-06-30 2017-01-05 深圳市星电商科技有限公司 Data interaction processing method, device and system
CN105574208A (en) * 2016-01-29 2016-05-11 北京橙鑫数据科技有限公司 Calling card recommendation method and device

Also Published As

Publication number Publication date
CN110891085A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN108156268B (en) Method for acquiring device identifier, server and terminal device
US20150213134A1 (en) Data query method and system and storage medium
US9450912B2 (en) Method and device for accessing application server
US20170193416A1 (en) Reducing costs related to use of networks based on pricing heterogeneity
CN105338078A (en) Data storage method and device used for storing system
CN112825527A (en) Service node distribution method and device based on MEC and related server
US20170155712A1 (en) Method and device for updating cache data
CN110557284A (en) data aggregation method and device based on client gateway
US20230161541A1 (en) Screen projection method and system
WO2016095149A1 (en) Data compression and storage method and device, and distributed file system
CN104363507A (en) Video and audio recording and sharing method and system based on OTT set-top box
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
CN110347656B (en) Method and device for managing requests in file storage system
US11444998B2 (en) Bit rate reduction processing method for data file, and server
CN108595574B (en) Database cluster connection method, device, equipment and storage medium
CN114745275B (en) Node updating method and device in cloud service environment and computer equipment
CN110891085B (en) Information processing method, server and data center
CN112396511B (en) Distributed wind control variable data processing method, device and system
CN117938749A (en) Routing method, server, client, device and storage medium of database
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN112866587B (en) Method and system for distributing spoken language video synthesis tasks
CN115378959A (en) Data transmission method, device, electronic equipment and storage medium
CN102986173A (en) Message state setting method and CPM service server
CN104346228A (en) Application program sharing method and terminal
CN114237893A (en) Caching method, device, system, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant