Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. My Consideration:
  2. The request flow for Roadrunner APP considering the design of architecture is NGINX - AWS ELB - EC2(In fact the Roadrunner).
  3. I suppose that the NGINX works as proxy which just logs the request and the APP which is large-scale.
  4. The Web Server (NGINX) needs to a Logrotate system for sure and
  5. I suppose that The Tasmanian Devil doesn’t need to read logs from Roadrunner in real-time to generate reports, I will work in this point.
  6.  
  7. The first point is setting logrotate system up which designed to ease administration of systems that generate large numbers of log files.
  8. It allows automatic rotation, compression, removal, and sending log files.
  9. Defining policy about the file /var/log/nginx/access.log with appropriate size file, compression and structure name(i.e setting data suffix up in the end of the name) and then sending the file log to AWS S3 using AWS CLI.
  10. The amount of data transferred will be optimized and it won’t send replicated log file.
  11.  
  12. With the log file at AWS S3, We can use AWS IAM to create an user with specific permission which Tasmanian Devil will be able to read the logs and process (could be insert in a database to make easy to generate report).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement