CN107835095A - A kind of processing method and processing device of daily record - Google Patents
A kind of processing method and processing device of daily record Download PDFInfo
- Publication number
- CN107835095A CN107835095A CN201711160023.9A CN201711160023A CN107835095A CN 107835095 A CN107835095 A CN 107835095A CN 201711160023 A CN201711160023 A CN 201711160023A CN 107835095 A CN107835095 A CN 107835095A
- Authority
- CN
- China
- Prior art keywords
- daily record
- network equipment
- storage device
- storage
- load information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
Abstract
The application provides a kind of processing method and processing device of daily record.A kind of processing method of daily record, methods described are applied to server, including:It is that the network equipment chooses storage device based on predetermined strategy when the daily record for receiving the network equipment stores request;The communication information of the storage device is sent to the network equipment, so that the network equipment is based on the communication information sends the daily record storage request to the storage device, and the daily record storage request is completed based on the storage device.A kind of processing method of daily record, methods described are applied to storage device, including:When the daily record for receiving network equipment transmission stores request, execution journal storage request;After the storage for completing daily record, judge whether the currently stored daily record quantity for not creating daily record index reaches predetermined threshold value;If reaching the predetermined threshold value, not create the log creation daily record index of daily record index.Compared with prior art, the application can improve the treatment effeciency of daily record.
Description
Technical field
The application is related to communication technical field, more particularly to a kind of processing method and processing device of daily record.
Background technology
Substantial amounts of daily record can be recorded in network equipment running, it usually needs stored above-mentioned daily record, for rear
It is continuous to be analyzed and handled.But the limited memory space of the network equipment limits the daily record quantity that it is stored, and with storage day
The increase of will quantity, time-consuming during inquiry log also will accordingly increase.
In the prior art, daily record is stored into storage device using intermediate node.When storing daily record, intermediate node
When the daily record for receiving the network equipment stores request, the daily record in the daily record storage request can be first cached, afterwards using pre-
If hash algorithm calculate the cryptographic Hash of above-mentioned daily record, then above-mentioned daily record is transmitted to storage corresponding to above-mentioned cryptographic Hash and set
It is standby.In inquiry log, the log query request that intermediate node can be sent according to the network equipment calculates corresponding cryptographic Hash, then
The request of above-mentioned log query is sent to storage device corresponding to above-mentioned cryptographic Hash and carries out log query.After the completion of inquiry, storage
The daily record inquired can be sent to intermediate node by equipment, and above-mentioned daily record is transmitted to the network equipment by intermediate node again.
The method of prior art, in storage and inquiry log, daily record be both needed to through intermediate node be forwarded to storage device or
Person's network equipment, it is larger to the dependence of intermediate node.When the daily record quantity to be stored reaches certain magnitude, in may making
Intermediate node reaches its bottleneck for calculating and forwarding daily record, it will influences storage and the inquiry velocity of daily record, causes to store and inquire about
Daily record it is less efficient.
The content of the invention
In view of this, the application provides a kind of processing method and processing device of daily record, is imitated with improving the storage of daily record and inquiry
Rate.
Specifically, the application is achieved by the following technical solution:
A kind of processing method of daily record, methods described are applied to server, including:
It is that the network equipment chooses storage based on predetermined strategy when the daily record for receiving the network equipment stores request
Equipment;
The communication information of the storage device of selection is sent to the network equipment, so that the network equipment is based on
The communication information sends the daily record storage request to the storage device, and completes the daily record based on the storage device
Storage request.
A kind of processing method of daily record, methods described are applied to storage device, including:
When the daily record for receiving network equipment transmission stores request, the daily record storage request is performed, the daily record is deposited
The communication information of this equipment that storage request is chosen by the network equipment according to server is sent;
After the storage for completing the daily record, judge whether the currently stored daily record quantity for not creating daily record index reaches
Predetermined threshold value;
If reaching the predetermined threshold value, for the log creation daily record index for not creating daily record index.
A kind of processing unit of daily record, described device are applied to server, including:
Module is chosen, is the net based on predetermined strategy when being asked for being stored in the daily record for receiving the network equipment
Network equipment chooses storage device;
First sending module, for the communication information of the storage device of selection to be sent into the network equipment, with
The network equipment is based on the communication information and send the daily record storage request to the storage device, and deposited based on described
Store up equipment and complete the daily record storage request.
A kind of processing unit of daily record, described device are applied to storage device, including:
Execution module, when being asked for being stored in the daily record for receiving network equipment transmission, performing the daily record storage please
Ask, the communication information of this equipment that the daily record storage request is chosen by the network equipment according to server is sent;
Judge module, for after the storage of the daily record is completed, judging the currently stored daily record index that do not create
Whether daily record quantity reaches predetermined threshold value;
Creation module, for reaching the predetermined threshold value in the daily record quantity for not creating daily record index stored, for institute
State the log creation daily record index for not creating daily record index.
The technical scheme of the application, when the daily record for receiving the network equipment stores request, server will can be based on predetermined
The communication information of storage device chosen of strategy be sent to the above-mentioned network equipment so that the above-mentioned network equipment is according to above-mentioned communication
Information is established with the storage device chosen and connected, and daily record to be stored is sent to the storage device.Compared with prior art, exist
When carrying out daily record storage, daily record can save daily record via clothes without relaying to storage device after being cached via server
The time that business device is consumed, so as to improve the storage efficiency of daily record.
Brief description of the drawings
Fig. 1 is a kind of networking schematic diagram of the processing method of daily record shown in the embodiment of the present application;
Fig. 2 is a kind of flow chart of the storage method of daily record shown in the embodiment of the present application;
Fig. 3 is a kind of flow chart of the querying method of daily record shown in the embodiment of the present application;
Fig. 4 is a kind of hardware structure diagram of server shown in the embodiment of the present application;
Fig. 5 is a kind of hardware structure diagram of storage device shown in the embodiment of the present application;
Fig. 6 is a kind of structural representation of log processing device applied on server shown in the embodiment of the present application;
Fig. 7 is a kind of structural representation of log processing device applied in storage device shown in the embodiment of the present application
Figure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind " of singulative used in the application and appended claims, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
The implementation process of the application is described below in conjunction with specific embodiment.
Fig. 1 is refer to, Fig. 1 show a kind of networking diagram of the processing method of daily record of the application, can be included in the networking more
The individual network equipment for having daily record storage demand, server and multiple storage devices.
Wherein, for storage device, first, storage device can send the communication of itself to server on startup and believe
Breath and load information;Secondly, storage device can also send load information to server in the process of running.
Wherein, storage device periodically can send load information to server in the process of running, and storage device may be used also
When creating daily record index load information is sent to server.
The above-mentioned communication information can include the IP address and port numbers of storage device, and load information can include storage device itself
Operation load information and daily record load information, wherein, operation load information be storage device itself load, as CPU take
Amount and internal memory usage amount etc., daily record load information are the currently stored daily record quantity of storage device.Storage during for starting
Equipment, the load value entrained by its daily record load information are 0;And for creating storage device during daily record index, it is to service
Device send operation load information can be predetermined operation load information, due to storage device create index when consumption resource compared with
Greatly, thus in order to avoid create index when, the new store tasks of the server-assignment storage device and influence the storage of daily record
Efficiency, the load value entrained by above-mentioned predetermined operation load information that can send storage device are set to maximum.
In addition, for server, it on the one hand can receive and preserve the communication information and load letter of storage device transmission
Breath;Another aspect server can also be when the daily record for receiving the network equipment stores request, based on the storage device preserved
Load information is that the above-mentioned network equipment chooses storage device, and the communication information of selected storage device is sent into above-mentioned net
Network equipment, so that the network equipment is based on the above-mentioned communication information and sends daily record storage request to corresponding storage device.Another further aspect
Server can also add above-mentioned network and set when the log query for receiving the network equipment is asked in the request of above-mentioned log query
The standby communication information, the request of above-mentioned log query is then broadcast to each storage device.
Fig. 2 is refer to, Fig. 2 is a kind of flow chart of the storage method of daily record shown in the embodiment of the present application, and this method can
Comprise the following steps:
S201, server are the network based on predetermined strategy when the daily record for receiving the network equipment stores request
Equipment chooses storage device.
In the embodiment of the present application, when the network equipment has a daily record storage demand, and determine to there is currently no and its company of foundation
During the storage device connect, daily record storage request first can be sent to server, server receives the above-mentioned day of network equipment transmission
After will storage request, can the current load information based on each storage device of preservation, chosen for the above-mentioned network equipment meet it is pre-
The storage device of fixed load condition.For example, server, which can be the network equipment, chooses the present load minimum storage device execution day
Will storage operation.Wherein, the operation load information and daily record load information that server can be sent according to storage device, both are asked
With or utilize weighted average calculation integrated load result, the present load as storage device.
If it should be noted that multiple minimum load identical storage devices be present, server can therefrom optional one
Storage device is as the storage device chosen for the above-mentioned network equipment, for performing this daily record storage operation.
S202, the communication information of the storage device of selection is sent to the network equipment.
In the embodiment of the present application, server is that after the above-mentioned network equipment chooses storage device, can deposit the above-mentioned of selection
The IP address and port numbers for storing up equipment are sent to the above-mentioned network equipment.
S203, the network equipment are based on the communication information and send daily record storage request to corresponding storage device.
After the network equipment receives the IP address and port numbers of the storage device of server transmission, above-mentioned IP address can be based on
Establish and connect with corresponding storage device with port numbers, and day to be stored can be sent to above-mentioned storage device based on the connection
Will.
Wherein, after the network equipment completes the transmission of daily record, it can be sent to storage device and terminate connection request, to disconnect and deposit
The connection of equipment is stored up, if subsequently have daily record storage demand again, daily record storage request, server can be sent to server again
Step S201-S202 is re-executed, the IP address and port numbers of the storage device of selection are resend to the above-mentioned network equipment.
In addition, the network equipment can not also be sent after the transmission of daily record to be stored is completed and terminate connection to storage device
Request, when subsequently there is daily record storage demand again, if not disconnected with the connection of the storage device, can send to the storage device
Daily record storage request, chooses storage device without server, saves the process performance of server again again.If in the network equipment not
In the presence of the connection established with storage device, now the network equipment can send daily record storage request to server again, and service be thought highly of
It is new to perform step S201-S202, the IP address and port numbers of selected storage device are resend to the above-mentioned network equipment.
S204, storage device is when receiving daily record storage request, execution journal storage operation.
In the embodiment of the present application, storage device can perform after the daily record storage request of network equipment transmission is received
Corresponding daily record storage operation, for example, daily record to be stored can be added in daily record storage queue.
Wherein, after daily record is added daily record storage queue by storage device, the storage thread on backstage can obtain from queue successively
Daily record to be stored is taken, is stored into local log file.
In addition, it is necessary to explanation, the storage device that a storage device may be simultaneously as multiple network equipments performs
The storage operation of daily record, storage device can be established with each network equipment and connected respectively, so that the daily record of each LA Management Room is deposited
Energy storage is enough independently carried out.For example, by taking Fig. 1 as an example, after storage device 1 establishes connection with the network equipment 1 and the network equipment 2, can divide
Connected based on above-mentioned two and receive the daily record storage request that the network equipment 1 and the network equipment 2 are sent, afterwards can be respectively by network
Equipment 1 and the daily record to be stored of the network equipment 2 are added in daily record storage queue, and can be sent and be rung to the network equipment 1 and 2 respectively
Answer message.
S205, judges whether the currently stored daily record quantity for not creating index reaches predetermined threshold value.
In the embodiment of the present application, when storage device complete daily record storage after, can determine whether it is currently stored not
Whether the daily record quantity for creating index reaches predetermined threshold value.If reaching predetermined threshold value, step S206 can be continued executing with, is above-mentioned
The log creation daily record index of index is not created;If not up to predetermined threshold value, daily record index can wouldn't be created.
S206, for the log creation daily record index for not creating daily record index.
In the embodiment of the present application, when the currently stored daily record quantity for not creating index of storage device reaches default threshold
During value, storage device can also send predetermined operation load information and daily record load information to server, and the predetermined operation is born
The entrained load value of information carrying breath can be set to maximum, to avoid server from distributing new store tasks as the storage device.Separately
On the one hand, storage device can also be the operation of the above-mentioned log creation daily record index for not creating daily record index.
It is worth noting that, the transmission of load information and the establishment of index can be carried out synchronously, asynchronous can also carry out, this
Application is not particularly limited to this.
In addition, above-mentioned daily record index can be the querying condition of daily record and the corresponding relation of daily record storage location, can also
It is the querying condition of daily record and the corresponding relation of journal number, is not construed as limiting herein.
Fig. 3 is refer to, Fig. 3 is a kind of flow chart of the querying method of daily record shown in the embodiment of the present application, and this method can
Comprise the following steps:
S301, when server receives the log query request of the network equipment, institute is added in being asked to the log query
State the communication information of the network equipment.
S302, log query request is broadcast to storage device.
In the embodiment of the present application, the network equipment can also be when needing inquiry log, and sending log query to server please
Ask, server adds the above-mentioned network equipment after above-mentioned log query request is received in being asked to above-mentioned log query
IP address and port numbers, the request of above-mentioned log query can be broadcast to it afterwards and preserve IP address, port numbers and load information
Storage device so that above-mentioned storage device according to above-mentioned log query ask in querying condition, inquire about the day being locally stored
Whether there is the daily record for meeting above-mentioned querying condition in will, and the satisfaction inquired is inquired about by bar according to above-mentioned IP address and port numbers
The daily record of part is sent to the corresponding network equipment.
S303, for storage device when receiving log query request, local whether be stored with of inquiry meets querying condition
Daily record.
In the embodiment of the present application, after the log query request of the network equipment is broadcast to storage device by server, storage
The request of above-mentioned log query can be also first added in log query queue by equipment when receiving above-mentioned log query request,
Querying condition during the inquiry thread on backstage can ask according to above-mentioned log query successively afterwards, whether inquiry is local is stored with completely
The daily record of the above-mentioned querying condition of foot, if inquiring the daily record for meeting above-mentioned querying condition, can continue executing with step S304;If not
The daily record for meeting above-mentioned querying condition is inquired, then can terminate this inquiry operation.
Wherein, storage device is in inquiry log, if having created daily record index, can index quick search according to daily record
Whether the daily record inquired about is stored;If not creating daily record index also, it can inquire about whether to store from journal file and look into
The daily record of inquiry.
S304, the communication information of the network equipment sends the daily record for meeting querying condition in being asked according to the log query
To the network equipment.
In the embodiment of the present application, when storage device inquires, and the daily record for meeting above-mentioned querying condition is locally stored,
The above-mentioned daily record inquired, is directly sent to by the IP address and port numbers of the network equipment in being asked according to above-mentioned log query
The corresponding network equipment.
In this application, on the one hand, the current load information that server can be sent according to storage device, to there is daily record storage
The network equipment of demand chooses the minimum storage device of load, and the IP address of the storage device of selection and port numbers are sent to
The above-mentioned network equipment, so that the above-mentioned network equipment is directly established according to the IP address and port numbers of acquisition with corresponding storage device
Connection, and daily record to be stored is sent to storage device based on the connection, the storage of storage device execution journal operates, and can be in institute
The daily record quantity for not creating daily record index of storage is when reaching predetermined threshold value, to server send predetermined operation load information and
Daily record load information, and can be that above-mentioned log creation daily record indexes.On the other hand, the day that server can also be sent in the network equipment
After IP address and port numbers that the network equipment is added in will inquiry request, above-mentioned inquiry request is broadcast to each storage device,
So that the querying condition during each storage device is asked according to above-mentioned log query respectively carries out log query, and can inquire completely
During the daily record of sufficient querying condition, the IP address of the network equipment and port numbers directly send out daily record in being asked according to above-mentioned log query
Give the corresponding network equipment.
Compared with prior art, in the technical scheme of the application, on the one hand, the network equipment can get storage device
After IP address and port numbers, establish and connect with corresponding storage device, realize the storage of daily record;And storage device is inquiring completely
After the daily record of sufficient querying condition, it can also establish and connect with the corresponding network equipment, realize the inquiry of daily record.Storing and inquiring about day
During will, daily record relays to storage device or the network equipment after needing not move through server buffer, therefore can save daily record warp
The time consumed by server.
On the other hand, because server according to the load information of storage device can choose the minimum storage device of present load
Execution journal storage operation, therefore the storage queue of storage device can be avoided to block.And multiple storage devices can be simultaneously independent
It is performed in parallel the storage and inquiry of daily record.Therefore the application can improve storage and the search efficiency of daily record.
Corresponding with a kind of foregoing embodiment of the processing method of daily record, present invention also provides a kind of processing of daily record dress
The embodiment put.
A kind of embodiment of the processing unit of daily record of the application can be applied on server and storage device.Device is implemented
Example can be realized by software, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as
Device on one logical meaning, being will be right in nonvolatile memory by the processor of server where it and storage device
The computer program instructions answered read what operation in internal memory was formed.For hardware view, as shown in figure 4, being the application one
A kind of hardware structure diagram of server where the processing unit of kind daily record, as shown in figure 5, being filled for a kind of processing of daily record of the application
A kind of hardware structure diagram of storage device where putting, except the processor shown in Figure 4 and 5, internal memory, network outgoing interface, Yi Jifei
Outside volatile memory, the server or storage device in embodiment where device are generally according to the server or storage device
Actual functional capability, other hardware can also be included, this is repeated no more.
Fig. 6 is refer to, Fig. 6 is a kind of structural representation of the processing unit of daily record shown in the embodiment of the present application, described
Device is applied to server, it may include with lower module:
Preserving module 610, the load information that storage device is sent is received, and set the load information as the storage
Standby current load information preserves;
Module 620 is chosen, for obtaining the current load information of each storage device, and chooses current load information satisfaction
The storage device of predetermined load condition is as the storage device chosen for the network equipment;
First sending module 630, for the communication information of the storage device of selection to be sent into the network equipment,
So that the network equipment is based on the communication information and sends the daily record storage request to the storage device, and based on described
Storage device completes the daily record storage request.
In the embodiment of the present application, described device also includes the second sending module 640, is used for:
When the log query for receiving the network equipment is asked, the network equipment is added in being asked to the log query
The communication information, and by the log query request be broadcast to storage device so that the storage device is looked into according to the daily record
Ask the querying condition in request and inquire about locally stored daily record, and will be inquired according to the communication information of the network equipment
Meet that the daily record of the querying condition is sent to the network equipment
In the embodiment of the present application, the communication information includes IP address and port numbers.
Fig. 7 is refer to, Fig. 7 is a kind of structural representation of the processing unit of daily record shown in the embodiment of the present application, described
Device is applied to storage device, it may include with lower module:
3rd sending module 710, for when being stored with the daily record for meeting the querying condition, according to the log query
The daily record for meeting the querying condition is sent to the network equipment by the communication information of the network equipment in request;
Execution module 720, when being asked for being stored in the daily record for receiving network equipment transmission, perform the daily record storage
Request, the communication information of this equipment that the daily record storage request is chosen by the network equipment according to server are sent;
Judge module 730, the daily record that do not create for after the storage of the daily record is completed, judging currently stored index
Daily record quantity whether reach predetermined threshold value;
Creation module 740, for reaching the predetermined threshold value in the daily record quantity for not creating daily record index stored, it is
The log creation daily record index for not creating daily record index.
In the embodiment of the present application, described device also includes:
Enquiry module 750, for when receiving the log query request of server broadcast, whether inquiry is local to be stored with
Meet the daily record of the querying condition in the log query request;
4th sending module 760, for when predetermined condition is triggered, sending load information to server, for service
Device preserves the load information as the current load information of this equipment;
The load information includes:Run load information and daily record load information.
In the embodiment of the present application, the predetermined state is when creating daily record index, and the operation in the load information is born
Information carrying breath is predetermined operation load information.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application
God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.
Claims (14)
- A kind of 1. processing method of daily record, it is characterised in that methods described is applied to server, including:It is that network equipment selection storage is set based on predetermined strategy when the daily record for receiving the network equipment stores request It is standby;The communication information of the storage device of selection is sent to the network equipment, so that the network equipment is based on described The communication information sends the daily record storage request to the storage device, and completes the daily record storage based on the storage device Request.
- 2. according to the method for claim 1, it is characterised in that also include:When the log query for receiving the network equipment is asked, the logical of the network equipment is added in being asked to the log query Letter information, and log query request is broadcast to storage device, so that the storage device please according to the log query Querying condition in asking inquires about locally stored daily record, and the satisfaction that will be inquired according to the communication information of the network equipment The daily record of the querying condition is sent to the network equipment;Wherein, the communication information includes IP address and port numbers.
- 3. according to the method for claim 1, it is characterised in that also include:Receive the load information that storage device is sent, and the current load information using the load information as the storage device Preserve;It is described that storage device is chosen for the network equipment based on predetermined strategy, including:The current load information of each storage device is obtained, and chooses current load information and meets that the storage of predetermined load condition is set For as the storage device chosen for the network equipment.
- A kind of 4. processing method of daily record, it is characterised in that methods described is applied to storage device, including:When the daily record for receiving network equipment transmission stores request, the daily record storage request is performed, the daily record storage please The communication information of this equipment chosen by the network equipment according to server is asked to send;After the storage for completing the daily record, judge whether the currently stored daily record quantity for not creating daily record index reaches default Threshold value;If reaching the predetermined threshold value, for the log creation daily record index for not creating daily record index.
- 5. according to the method for claim 4, it is characterised in that also include:When the log query for receiving server broadcast is asked, local whether be stored with of inquiry meets the log query request In querying condition daily record;If being stored with the daily record for meeting the querying condition, the communication of the network equipment in being asked according to the log query is believed The daily record for meeting the querying condition is sent to the network equipment by breath;The communication information is added by server after the log query request is received.
- 6. according to the method for claim 4, it is characterised in that also include:When predetermined condition is triggered, load information is sent to server, so that server is using the load information as originally setting Standby current load information preserves;Wherein, the load information includes:Run load information and daily record load information.
- 7. according to the method for claim 6, it is characterised in that described when the predetermined condition is to create daily record index Operation load information in load information is predetermined operation load information.
- A kind of 8. processing unit of daily record, it is characterised in that described device is applied to server, including:Module is chosen, is that the network is set based on predetermined strategy when being asked for being stored in the daily record for receiving the network equipment Alternatively take storage device;First sending module, for the communication information of the storage device of selection to be sent into the network equipment, so that institute State the network equipment and be based on the communication information to the storage device transmission daily record storage request, and set based on the storage It is standby to complete the daily record storage request.
- 9. device according to claim 8, it is characterised in that also including the second sending module, be used for:When the log query for receiving the network equipment is asked, the logical of the network equipment is added in being asked to the log query Letter information, and log query request is broadcast to storage device, so that the storage device please according to the log query Querying condition in asking inquires about locally stored daily record, and the satisfaction that will be inquired according to the communication information of the network equipment The daily record of the querying condition is sent to the network equipment;Wherein, the communication information includes IP address and port numbers.
- 10. device according to claim 8, it is characterised in that also including preserving module, be used for:Receive the load information that storage device is sent, and the current load information using the load information as the storage device Preserve;The selection module, is additionally operable to:The current load information of each storage device is obtained, and chooses current load information and meets that the storage of predetermined load condition is set For as the storage device chosen for the network equipment.
- A kind of 11. processing unit of daily record, it is characterised in that described device is applied to storage device, including:Execution module, when being asked for being stored in the daily record for receiving network equipment transmission, perform the daily record storage request, institute The communication information for stating this equipment that daily record storage request is chosen by the network equipment according to server is sent;Judge module, for after the storage of the daily record is completed, judging the currently stored daily record for not creating daily record index Whether quantity reaches predetermined threshold value;Creation module, for reaching the predetermined threshold value in the daily record quantity for not creating daily record index stored, for described in not Create the log creation daily record index of daily record index.
- 12. device according to claim 11, it is characterised in that also include:Enquiry module, for when receiving the log query request of server broadcast, local whether be stored with of inquiry to meet institute State the daily record of the querying condition in log query request;3rd sending module, for when being stored with the daily record for meeting the querying condition, in being asked according to the log query The communication information of the network equipment daily record for meeting the querying condition is sent to the network equipment;The communication information is added by server after the log query request is received.
- 13. device according to claim 11, it is characterised in that also including the 4th sending module, be used for:When predetermined condition is triggered, load information is sent to server, so that server is using the load information as originally setting Standby current load information preserves;Wherein, the load information includes:Run load information and daily record load information.
- 14. device according to claim 13, it is characterised in that when the predetermined condition is to create daily record index, institute It is predetermined operation load information to state the operation load information in load information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711160023.9A CN107835095A (en) | 2017-11-20 | 2017-11-20 | A kind of processing method and processing device of daily record |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711160023.9A CN107835095A (en) | 2017-11-20 | 2017-11-20 | A kind of processing method and processing device of daily record |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107835095A true CN107835095A (en) | 2018-03-23 |
Family
ID=61652155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711160023.9A Pending CN107835095A (en) | 2017-11-20 | 2017-11-20 | A kind of processing method and processing device of daily record |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107835095A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111046009A (en) * | 2019-11-11 | 2020-04-21 | 杭州迪普科技股份有限公司 | Log storage method and device |
CN111585807A (en) * | 2020-04-30 | 2020-08-25 | 杭州涂鸦信息技术有限公司 | Log management method and related equipment |
CN115378803A (en) * | 2022-04-13 | 2022-11-22 | 网易(杭州)网络有限公司 | Log management method and device, block chain node and storage medium |
CN116048822A (en) * | 2023-04-03 | 2023-05-02 | 成都新西旺自动化科技有限公司 | High-throughput parallel log storage system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102780777A (en) * | 2012-07-19 | 2012-11-14 | 北京蓝汛通信技术有限责任公司 | Log collecting method and log collecting system |
CN104023083A (en) * | 2014-06-23 | 2014-09-03 | 广东睿江科技有限公司 | Method and device for log collection cluster load balance |
CN104301360A (en) * | 2013-07-19 | 2015-01-21 | 阿里巴巴集团控股有限公司 | Method, log server and system for recording log data |
CN106713041A (en) * | 2016-12-29 | 2017-05-24 | 杭州迪普科技股份有限公司 | Session log transmitting method and device |
US20170169078A1 (en) * | 2015-12-14 | 2017-06-15 | Siemens Aktiengesellschaft | Log Mining with Big Data |
-
2017
- 2017-11-20 CN CN201711160023.9A patent/CN107835095A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102780777A (en) * | 2012-07-19 | 2012-11-14 | 北京蓝汛通信技术有限责任公司 | Log collecting method and log collecting system |
CN104301360A (en) * | 2013-07-19 | 2015-01-21 | 阿里巴巴集团控股有限公司 | Method, log server and system for recording log data |
CN104023083A (en) * | 2014-06-23 | 2014-09-03 | 广东睿江科技有限公司 | Method and device for log collection cluster load balance |
US20170169078A1 (en) * | 2015-12-14 | 2017-06-15 | Siemens Aktiengesellschaft | Log Mining with Big Data |
CN106713041A (en) * | 2016-12-29 | 2017-05-24 | 杭州迪普科技股份有限公司 | Session log transmitting method and device |
Non-Patent Citations (1)
Title |
---|
睿浩瑜超: "负载均衡下无文件服务器怎么存储文件", 《百度知道》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111046009A (en) * | 2019-11-11 | 2020-04-21 | 杭州迪普科技股份有限公司 | Log storage method and device |
CN111046009B (en) * | 2019-11-11 | 2023-11-21 | 杭州迪普科技股份有限公司 | Log storage method and device |
CN111585807A (en) * | 2020-04-30 | 2020-08-25 | 杭州涂鸦信息技术有限公司 | Log management method and related equipment |
CN115378803A (en) * | 2022-04-13 | 2022-11-22 | 网易(杭州)网络有限公司 | Log management method and device, block chain node and storage medium |
CN115378803B (en) * | 2022-04-13 | 2023-12-12 | 网易(杭州)网络有限公司 | Log management method, device, blockchain node and storage medium |
CN116048822A (en) * | 2023-04-03 | 2023-05-02 | 成都新西旺自动化科技有限公司 | High-throughput parallel log storage system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sundararaj | Optimal task assignment in mobile cloud computing by queue based ant-bee algorithm | |
CN104756449B (en) | From the method for node and Content owner's transmission packet in content center network | |
CN107835095A (en) | A kind of processing method and processing device of daily record | |
Zhang et al. | Proactive workload management in hybrid cloud computing | |
CN101171821B (en) | System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers | |
CN101459619B (en) | Method and apparatus for packet transmission processing in network | |
CN103905500B (en) | A kind of method and apparatus for accessing application server | |
CN105122741B (en) | The business chain control method and device of Business Stream | |
CN102932472B (en) | Data processing method and communication system | |
CN107819891A (en) | Data processing method, device, computer equipment and storage medium | |
CN107483390A (en) | A kind of cloud rendering web deployment subsystem, system and cloud rendering platform | |
CN103475566A (en) | Real-time message exchange platform and distributed cluster establishment method | |
CN104378451B (en) | Network communication route selecting method, apparatus and system | |
CN108270818A (en) | A kind of micro services architecture system and its access method | |
US7437461B2 (en) | Load balancing apparatus and method | |
CN110020061B (en) | Smart city space-time information cloud platform service engine | |
Huang et al. | Converged network-cloud service composition with end-to-end performance guarantee | |
CN105141789B (en) | Unknown phone number labeling method and device | |
CN105991793B (en) | The method and apparatus of message forwarding | |
WO2016177191A1 (en) | Packet processing method and device | |
CN103685332B (en) | File uploading method, client, server and system | |
CN107864101A (en) | Load-balancing method and device | |
CN109831536A (en) | A kind of front end load balancing service degradated system and method | |
CN104426968B (en) | Data managing method and device | |
CN102857547B (en) | The method and apparatus of distributed caching |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |