carribeiro / vdeli

Video Delivery Network
2 stars 0 forks source link

Save rotated nginx log files with the actual date in the file name #47

Open carribeiro opened 13 years ago

carribeiro commented 13 years ago

Nginx log files are stored in the cdnservers and contain all the information about access to the video files. This information is needed to calculate the volume of transfer, that in turn is how we charge our customers (TB/month). We need to retrieve all the log information from the cdnservers and put in into the cdmanager for billing and other purposes.

We need to make sure that we never miss a log file and also, that we never collect a log file twice. One single way to make it work is to save the date of the file in the filename. The logrotate then automatically rotates and compresses the file, saving it with the day of the rotation.

Note:

References:

akostyuk commented 13 years ago

I added a new fabfile which uses cuisine to install nginx. You will need to pass options to the command line: fab variables:'10.7.1.5',user='deploy' install_nginx

carribeiro commented 13 years ago

Should it be:

fab variables:hosts='10.7.1.5',user='deploy' install_nginx

??

On Wed, Jun 8, 2011 at 16:32, akostyuk < reply@reply.github.com>wrote:

I added a new fabfile which uses cuisine to install nginx. You will need to pass options to the command line: fab variables:'10.7.1.5',user='deploy' install_nginx

Reply to this email directly or view it on GitHub: https://github.com/carribeiro/vdeli/issues/47#comment_1329222

Carlos Ribeiro Consultoria em Projetos twitter: http://twitter.com/carribeiro blog: http://rascunhosrotos.blogspot.com mail: carribeiro@gmail.com

akostyuk commented 13 years ago

No, it is just the example. You will need to run it:

fab install_nginx

and it will ask you a host on which you want to processed the action. You can pass it to the variables, like this:

fab variables:hosts='10.1.1.1, 10.2.2.2, 10.3.3.3', user='deploy' install_nginx