Deploying distributed applications
Developing a strategy for application deployment is always hard. Every environment has its own characteristics. It's far easier to see the problem with popular applications that are installed by the end user. Custom applications are sometimes installed by an expert; sometimes the developer himself is available to do it. This helps to make the difficulty of this task to be greatly underestimated. The result is something that seasoned programmers will readily recognize: an installation that “should be a snap” takes many hours, or even days, to finish - and sometimes the developer just gives up as it discovers that the application, after all, was not ready for deployment. It's not enough to have the application working on the development environment.
Distributed applications bring this problem to a new level. The developer has now a lot of variables to predict; the interaction between the parts can have surprising results. It's not always obvious what is to best way to start up all the pieces, because they may exhibit circular dependencies. Bootstrapping a distributed application is much harder than installing a simple one.
I'm now writing code to 'bootstrap' one such application. It's a complex application that has several independent server processes communicating with XMLRPC. It's interesting to note how many issues pop up while doing it. For example: simple applications usually have a single test sequence. But distributed applications have to test combinations of components; they must fail gracefully when a server is not online. Some tests may require different combinations of servers, with different configurations. It's something that goes way beyond the features provided by the unittest module.
Starting the server in production mode is also a chore. It requires starting all individual servers, often in separate machines, all sharing some common configuration. This is an error prone task, specially if done manually. On the other hand, it's something difficult to automate because there are many things that can go wrong. At this point, I can only hope to get it right.
On a related note, I've found today a small gem: a Python library that encapsulates the Standard Windows Management Instrumentation framework. If you need it, check Tim Golden's wmi module. In my case, I had to download some updates from Microsoft to have WMI running on Win98. I'll post my experiences later when I finish testing it.
Distributed applications bring this problem to a new level. The developer has now a lot of variables to predict; the interaction between the parts can have surprising results. It's not always obvious what is to best way to start up all the pieces, because they may exhibit circular dependencies. Bootstrapping a distributed application is much harder than installing a simple one.
I'm now writing code to 'bootstrap' one such application. It's a complex application that has several independent server processes communicating with XMLRPC. It's interesting to note how many issues pop up while doing it. For example: simple applications usually have a single test sequence. But distributed applications have to test combinations of components; they must fail gracefully when a server is not online. Some tests may require different combinations of servers, with different configurations. It's something that goes way beyond the features provided by the unittest module.
Starting the server in production mode is also a chore. It requires starting all individual servers, often in separate machines, all sharing some common configuration. This is an error prone task, specially if done manually. On the other hand, it's something difficult to automate because there are many things that can go wrong. At this point, I can only hope to get it right.
On a related note, I've found today a small gem: a Python library that encapsulates the Standard Windows Management Instrumentation framework. If you need it, check Tim Golden's wmi module. In my case, I had to download some updates from Microsoft to have WMI running on Win98. I'll post my experiences later when I finish testing it.

41 Comments:
At May 3, 2005 4:14 AM,
Michael Van Wesenbeeck said…
Nice article,
I'm interested in seeing the rest of it. ;-)
At October 2, 2005 8:51 AM,
Steve Austin said…
Interesting blog. I have a weather xml blog.
At February 15, 2006 9:08 AM,
Best Home Based Business said…
Wondrous blog. Your site was very pleasing and I
will go back again! I like surfing the net for blogs
as good as yours.
Look into my based business business business home home home idea opportunity work blog.
At December 9, 2006 9:33 PM,
Scott A. Edwards said…
Are You an Advanced Marketer? Click here to learn how to broadcast thousands of messages directly to people's desktops with just a click from your mouse, Spam Free. Learn more about it here: making money on the internet site. It pretty much covers making money on the internet related stuff and it is FREE to join.
At December 10, 2006 10:13 AM,
Scott A. Edwards said…
This is COOL...!!! Dear friends, Now you can help yourself take advantage of the huge frenzy of FREE advertising in your spare time, while in the comfort of your own home. Hook up NOW with this exiting program. Click here: FREE INFORMATION
At December 10, 2006 12:05 PM,
Scott A. Edwards said…
Dear friends, Now you can help yourself take advantage of the huge surpluses of FREE advertising in your spare time, in the comfort of your own home. Hook up NOW with this exiting program. Click here: FREE INFORMATION
At December 10, 2006 4:37 PM,
Scott A. Edwards said…
WATCH CAREFULLY...Here it is... FREE advertising, FREE download. No cost to you! Get your FREE download NOW! Make money and get FREE advertising! This is a great program for you to take advantage of... Check this out now for FREE!
To find out more visit: mlm site. It successfully exposes FREE information covering traffic and mlm related stuff. Don't forget, FREE, FREE, FREE!!!
At December 10, 2006 6:31 PM,
Scott A. Edwards said…
Are You an Advanced Marketer? Click here to learn how to broadcast thousands of messages directly to people's desktops with just a click from your mouse, Spam Free. Learn more about it here: multi-level marketing site. It pretty much covers multi-level marketing related stuff and it is FREE to join.
At December 10, 2006 8:10 PM,
Scott A. Edwards said…
Attention Blog Owners...!!! WARNING: A new immensely powerful viral marketing system has been released, which allows marketers to broadcast messages directly to people's desktops. Learn more about it here: home based business opportunity internet home business site. It pretty much covers home based business opportunity internet home business related stuff and it is FREE to join.
At December 22, 2006 12:39 PM,
Scott Arthur Edwards said…
Check this out for FREE...
This opportunity says:
"Your Ad" Will Be Instantly Displayed on Thousands of Websites and Read By Over 10 Million People Per Week For FREE, and It Only Takes 60 Seconds To Get Started!
To find out more visit: marketing global online site. It successfully exposes FREE information covering Traffic and marketing global online related stuff.
At December 22, 2006 12:42 PM,
Anonymous said…
This is COOL...!!! Dear friends, Now you can help yourself take advantage of the huge frenzy of FREE advertising in your spare time, while in the comfort of your own home. Hook up NOW with this exiting program. Click here: FREE INFORMATION
At February 2, 2007 10:41 AM,
Anonymous said…
Good morning,
I don't know if for you is the same but I love the world where we live in, especially for the new technology and at the present time it sounds hard to me to stay without.
The appliabces that I love the most are those things that I can keep in my pourse. As you are already presuming my mobile phone has an important role in my daily life.
I can't resist to a new motorola ringtone. I change several of them a month so I feel the need to get a new one. The good part is I'm a student so my parents pay for them and further to buy a subscription is not difficult.
Time to go back to study.
Goodbye everyone
Francine.
At February 2, 2007 3:18 PM,
Anonymous said…
Only *Suckers* Buy Leads! Stop Wasting Time
And Money On Leads And Cold Calling. See How.
http://theparkers.magneticsponsoringonline.com/
At February 5, 2007 4:49 AM,
Anonymous said…
Hey, you have a great blog here! I'm definitely going to bookmark you!
I have a mugs site. It pretty much covers mugs related stuff.
Come and check it out if you get time :-)
At February 5, 2007 9:37 AM,
Anonymous said…
Dear friends, Now you can help yourself take advantage of the huge surpluses of FREE advertising in your spare time, in the comfort of your own home. Hook up NOW with this exiting program. Click here: FREE INFORMATION
At February 5, 2007 9:59 AM,
Anonymous said…
Dear friends, Now you can Fulfill your destiny! LordoftheHits is the lord of all exchanges. One exchange to rule them all!!! Hook up NOW with this exiting program. Click here: FREE INFORMATION
At February 5, 2007 10:14 AM,
Anonymous said…
Dear friend, Here is an opportunity for you that is taking over the internet. The compensation plan is second to none. The spill over will blow your mind and the educational products are of the highest quality. Knowledge is power and nobody can ever take that away from you. Join me in this business and see for yourself what you will be getting. Click here: FREE Information
At February 5, 2007 6:26 PM,
Anonymous said…
Dear friends, Now you can help yourself take advantage of the huge surpluses of FREE advertising in your spare time, in the comfort of your own home. Hook up NOW with this exiting program. Click here: FREE INFORMATION
At February 10, 2007 8:37 AM,
Anonymous said…
I enjoyed your blog on best home business idea we provide free home business blogs best home business idea
At February 10, 2007 9:13 AM,
Anonymous said…
First To The Market work from home internet business
Enjoy the opportunity, change your life -work from home internet business. Don't Miss work from home internet business - Visit Today...
At February 14, 2007 5:18 AM,
Anonymous said…
http://www.moneymakersecrets.com/firstmoneysecrets/ First Time To The Market work at home income
Enjoy the opportunity, change your life -work at home income. Don't Miss work at home income - Visit Today...http://www.moneymakersecrets.com/firstmoneysecrets/
At February 15, 2007 12:59 PM,
Anonymous said…
ads free pet us
At February 16, 2007 10:34 AM,
Anonymous said…
Hey I am definataly bookmarking this blog. Hey If you get the chance and you need advertising really cheap but highly effective check out this site http://sitesubmit.ecrater.com
At February 19, 2007 11:24 AM,
Anonymous said…
Nice blog!! I'm into engine search site traffic web and to drive traffic to my website I signed up free for this superb traffic gereating tool - I now have loads of hits to my websites and blogs. This can see your affiliate commission shoot through the roof - meaning lots of extra money coming in for you and your family. Sign up now - it's free.. Best of luck, cheers for now, dave.
At February 20, 2007 5:52 AM,
Anonymous said…
Hey, you have a great blog here!
I just saw a very good website about turnkey site. It has a lot of information on turnkey related stuff.
Check it out if you get time :-)
At February 25, 2007 4:54 AM,
Anonymous said…
Hey, has anyone seen this new site about photostar deluxe. It's pretty good!
Come and check it out if you get time :-)
At February 27, 2007 12:41 AM,
Anonymous said…
free homes swap classifieds
At March 1, 2007 5:00 PM,
Anonymous said…
Great site about
legitimate home based business opportunity. I am bookmarking it.
Please also visit my site aboutlegitimate home based business opportunity
At March 3, 2007 10:14 AM,
Anonymous said…
Thanks for the tips and insights. I run site and blog for home based business work feel free to drop by and comment or swap links.
At March 5, 2007 9:29 PM,
Anonymous said…
http://www.adquity.com
Classifieds for our community. Buy, sell, trade, date, events... post anything. Adquity Classifieds.
http://www.adquity.com
At March 6, 2007 9:27 AM,
Anonymous said…
First To The Market work at home make money
Enjoy the opportunity, change your life -work at home make money. Don't Miss work at home make money - Visit Today...
At August 18, 2007 5:36 AM,
<a href="http://www.xanga.com/buy_levitra">Buy Levitra</a> said…
Great article! Thanks.
At August 18, 2007 11:19 AM,
<a href="http://phentermine1.eamped.com">Phentermine</a> said…
Thanks for interesting article.
At September 10, 2007 1:18 AM,
<a href="http://courses.cvcc.vccs.edu/ENG112_GROSS/_Chat_Room/000008fd.htm">Anonimous</a> said…
Excellent website. Good work. Very useful. I will bookmark!
At July 12, 2009 11:21 PM,
reyt said…
Your Best Choice! wow power leveling and wow gold wow gold
At January 13, 2010 4:54 AM,
Anonymous said…
I wish not approve on it. I assume polite post. Especially the designation attracted me to read the sound story.
At January 17, 2010 2:20 AM,
Anonymous said…
Genial fill someone in on and this fill someone in on helped me alot in my college assignement. Thanks you as your information.
At March 3, 2010 6:56 PM,
Anonymous said…
Hello!
Quality assurance is implemented at the schematic design stage. Mansour Engineering’s quality assurance is an inclusive review of each discipline as well as an overall discipline coordination. Quality assurance procedures include analysis of the worst case scenario for verification of specific design parameters and for each discipline’s task. Project management overview integrates schedule and cost control into each and every aspect of design. Mansour Engineering project management objective is to develop a design that satisfies all requirements and is economically feasible to construct. To that end, cost estimating is within the preview and capabilities of each discipline project leader. Without sacrificing quality control or cost control, Mansour Engineering understands that scheduling is of the utmost importance. Mansour Engineering prepare a detailed timeline for each item on the project deliverable list and proceed on schedule by adjusting manpower activity to finish on time.
[url=http://www.mansour.ca] click here to go to Mansour Engineering[/url]
http://www.mansour.ca
At August 18, 2010 4:09 AM,
halleberry said…
Earning money online never been this easy and transparent. You would find great tips on how to make that dream amount every month. So go ahead and click here for more details and open floodgates to your online income. All the best.
At August 19, 2010 3:52 PM,
Anonymous said…
buy levitra online canada
buy
At August 25, 2010 10:21 PM,
kate said…
Earning money online never been this easy and transparent. You would find great tips on how to make that dream amount every month. So go ahead and click here for more details and open floodgates to your online income. All the best.
Post a Comment
<< Home