开发者

How to deploy and manage java programs across servers?

开发者 https://www.devze.com 2023-01-16 08:49 出处:网络
I wrote some java server side processing apps that have been running on a couple se开发者_运维百科rvers but will be expanded to 20 servers. Right now I\'m just using ant scripts to deploy my jar to se

I wrote some java server side processing apps that have been running on a couple se开发者_运维百科rvers but will be expanded to 20 servers. Right now I'm just using ant scripts to deploy my jar to servers via rsync and then using screen to start the jobs.

This requires me to ssh in and restart the jobs each time I deploy new code, once I go to 20 servers this will become unmanageable.

I'm pretty new to java, is there a standard way of deploying across servers along with restarting jobs afterwards? Ideally I'm looking for a free and easy solution.

thanks


It looks you would benefit from using OSGi. You would need to migrate your application into an OSGi bundle but it looks it would be worth the pain. Equinox, Knopflerfish and Felix are open source implementations. This link could be useful too.


Twitter uses bittorrent and murder

Going with what works well for others seems to be a really good start! Read about murder here


Maybe it's an option to enter into system administration domain and evaluate remote configuration management tools like Chef or Puppet for the task.

Not sure if it fulfills the 'easy' condition, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消