The Artima Developer Community
Sponsored Link

Java Buzz Forum
Deployment Systems - Packaging

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Deployment Systems - Packaging Posted: Feb 24, 2011 9:21 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Deployment Systems - Packaging
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

Picking back up on the earlier discussion of deployment in non-trivial systems, I’d like to suggest another useful pattern of behavior I’ve observed.

Deploy Complete, Singular, Packages

Package up your service and its dependencies into a single file, then always test and deploy that package. When an artifact moves into test, be it automated or exploratory, the binary package is what is tested, not a tag, or branch or so on. Tags can be used to tell the automated build infrastructure to produce a candidate, or can be used by the automated build infrastructure to mark what was used to build a package, but they are used by developers and build the process, not by the deployment process.

At Ning we use a tarball containing the service, needed libraries, any containing server it runs in (such as Apache or Jetty), and the services post-deploy and control (rc) scripts. The project build produces this, interestingly, via a maven plugin, which we also use to build Apache/PHP based components at this point! Our deployment system, galaxy, defines the contract for this package. Aside from personal experiance, my understanding is that Google statically compiles everything into a monolithic binary for most of their services (go C++). Similarly, my understanding is that Apple deploys cpio bundles.

My rule of thumb for what needs to go into the bundle is that if it is configured for your service, you rely on a specific version, or you rely on something that is evolving rapidly (cough node cough redis cough) it goes in the bundle. This is why we package up even very stable things like Apache into our tarballs. Operational automation and configuration management (chef, etc) can handle all of the other dependencies.

Read: Deployment Systems - Packaging

Topic: links for 2011-02-05 Previous Topic   Next Topic Topic: IntelliJ IDEA 10.0.2 Release Candidate

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use