ruby on rails - Transfer log files from root to ephemeral memory in Amazon EC2 -
I have put my Ruby on Amazon App 2M1 large (64 bit) example on Rail App / Website. I am using Nginx and Thin server because the application and webserver resp. Now the website has gone live and it is producing many requests and so log in. I have placed the application on the root directory and the problem I am facing is that it has 7.5 GB space and it can end in a few days.
I really want to take the log file for short-term memory / mount from the application so that it does not give any memory issues. Although I do not want to take the whole application in temporary memory as it is unstable and it can result in data loss.
Can anyone tell me whether it is possible to move the log file from the application only to the fleeting memory?
Please help me.
First of all, place where you Now, remove the local log folder from your app (When your app and ngnet are low, of course) and at the location on the / mnt You can now start your server again, the log will be saved to However, I would like to note that it should not change the need to rotate those logs - use to ensure that your log files are properly handled. / mnt drive < Pre>
sudo mkdir / mnt / logs sudo chown Ubuntu / mnt / log / Pre-
rm -r / my / app / log
Create a softlink / lnt>
ln -s / mnt / logs / my / app
ngnix log directory To receive it can.
/ mnt / log / .
Comments
Post a Comment