Answer the question
In order to leave comments, you need to log in
It is necessary to constantly transfer the logs to another server. How to do it?
In general, I have a vps with a 20 GB SSD, it has certain software that writes to the log very quickly and thus this disk is completely clogged in about an hour. Then the vps lies until I clean everything and reboot the server.
You need to do something so that this file with logs itself is transferred to another server with several terabytes of disk, at a certain time (once every half an hour or an hour, or for example, when 10 gigabytes are filled).
Is it possible to do this somehow? Maybe there is a script or something else? Or who has already done this?
Tell me who can.
Answer the question
In order to leave comments, you need to log in
Mount the disk via NFS\CIFS and write to it directly.
If the network speed or the speed of the remote disk is not enough, then it looks like you are in a hopeless situation on the current hardware, you will either have to expand the local disk (so that its size is enough to write all the data during the peak period, and then transfer this log during the downturn), or speed up remote storage.
Purely as an option (without knowing the details).
You can transfer the software to a server with terabytes of space (judging by the fact that it works on vps, it does not require many resources).
If you need to have a specific IP address, then with VPS you can organize port forwarding to another server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question