application depolyment

45
Application Deployment By Shrikant Lokhande Exclusive For SBS. © 2012 Shrikant Lokhande All rights reserved.

Post on 20-Oct-2014

193 views

Category:

Health & Medicine


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Application depolyment

Application Deployment

By Shrikant Lokhande

Exclusive For SBS.

© 2012 Shrikant Lokhande All rights reserved.

Page 2: Application depolyment

1. Proper skeleton using Capistrano remote deployment. Directory Structure as follows: myapp/releases |_ 20081019001122 20081019001123 myapp/current -> releases/20081019001122 # Sym link current. myapp/shared |_ images config |_ config.php myapp/system |_maintenance.html

Page 3: Application depolyment

2. Proper Permission. File's and Folder's

Page 4: Application depolyment

3. Backend process

Configuration And Management.

Page 5: Application depolyment

4. SEO optimization. Check which URLs feeds are submitted to webmaster.

http://devgrow.com/quick-seo-tip-set-preferred-domain-in-google-webmaster-tools/

Page 6: Application depolyment

5. Source code under Git (Version Control). Maintained Branches as per release.

http://philsturgeon.co.uk/blog/2010/02/Deploying-websites-with-Git

Page 7: Application depolyment

6. Source code should be Clean. (Do not push any unused file/folder's in that)

Page 8: Application depolyment

7. Rewrite Rules / URL's

Page 9: Application depolyment

8. Should be use oops Language's like:

Python, Ruby, Jruby, Java for Frontend and Backend for application scalability.

Page 10: Application depolyment

9. Always use and work on cutting edge technology.

Page 11: Application depolyment

10. If using Check Framework/API/Library/Plugins versions for Application.

Page 12: Application depolyment

11. Simple and quick setup.

Page 13: Application depolyment

12. Check Efficiency and Scalability.

# NewRelic ? http://newrelic.com/php

Page 14: Application depolyment

13. Stress testing with using testing tools Like: Apache benchmark (ab)

Page 15: Application depolyment

14. Check the performance tool. i.e. yslow and firebug. http://developer.yahoo.com/performance/rules.html

Page 16: Application depolyment

15. Images should lightweight for serving. Create in .PNG format from designer. http://www.codinghorror.com/blog/2007/03/getting-the-most-out-of-png.html

Page 17: Application depolyment

16.CDN setup and update DNS records for serving only static content.http://www.codinghorror.com/blog/2007/03/using-amazon-s3-as-an-image-hosting-service.html

Page 18: Application depolyment

17. Exception notification for Application.

Page 19: Application depolyment

18. No hard coding please.

Page 20: Application depolyment

19. Bug/Testing resolve dependency.

Page 21: Application depolyment

20. Error Pages. ( If the links broken) use 404 for not found. if break URLS redirect to home path.

Page 22: Application depolyment

21. Only one DB and SMTP config file for each application. Do not add DB connection and SMTP in any .php file.

Page 23: Application depolyment

22. We all should know and follow the Agile Development. http://en.wikipedia.org/wiki/Agile_software_development

Page 24: Application depolyment

23. After production deployment will not change any things manually. If we found it should to update it will go in next release.

Page 25: Application depolyment

24. Enable Error Logs and Access Logs for Application

Page 26: Application depolyment

25. Add SSL for site if there is any account activity done.

Page 27: Application depolyment

26. Understanding of software designing.

Page 28: Application depolyment

27. Good in estimation.

Page 29: Application depolyment

28. Involved in code review and check coding stranded. With PM, Dev, Operation Team.

Page 30: Application depolyment

29. Contribution towards performance, stability and operation of the app

Page 31: Application depolyment

30. Strategy: Start 1. create revision and functionality for the release. 2. List the changes and To do's in revision. 3. Updates on local/staging 4. Testing and Bug fix. 5. Push to production. End.

Page 32: Application depolyment

31. Production deploy only on weekdays Tuesday or Wednesday, so everyone in office. Starting Time: 10:00 Am End Time : 5:00 PM #After that will stop deployment.

Page 33: Application depolyment

Planning2

Shrikant Lokhande

Page 34: Application depolyment

Proper Planning and discussion. All should be on same page.

Page 35: Application depolyment

If site down should show Maintenance page on website.

Page 36: Application depolyment

Continuous Integration and Proper development and deployment

Page 37: Application depolyment

Do major services optimization.

Httpd, mysql, if any other.

Page 38: Application depolyment

Database side optimization. Do plan which database is suitable for our application.

e.g. pgsql,nosql,mongodb,mysql,percona,tok

yo cabinet

Page 39: Application depolyment

Database Slow query optimization. Make it to faster to them.

Page 40: Application depolyment

Master-master, Master-slave, Multi master environment.

Page 41: Application depolyment

Mail server configuration. All set with mail server

prospective.

Page 42: Application depolyment

Work on critical task.

Page 43: Application depolyment

Proper server management by server admin only. There will no any kind

of access for developers.

Page 44: Application depolyment

Backup and Restoration plan and management.

AWS S3, NFS. Volume, Snapshot, Backup Directory.

Page 45: Application depolyment

The good comes not from the code or the features,but process standardization.