Take the 2-minute tour ×

Can Solr be run on Azure?

share|improve this question
Since this is the #1 Google result for "solr on azure" I think it's worth adding this now that it's available: interoperabilitybridges.com/Azure/… –  Andrew Hare Dec 14 '11 at 0:36
add comment

3 Answers

up vote 11 down vote accepted

You'll find explanations on how to run Java's version of solr and Lucene there: http://www.interoperabilitybridges.com/Azure/Getting_Started_Guide_Solr_Lucene.asp

share|improve this answer
thanks I was looking for this –  Krunal May 7 '13 at 11:47
add comment

I know this thread is old, but I wanted to share our two cents. We are running SOLR on Azure with no big problems. We've created a startup task to install Java and create the deployment, and we have a SOLR instance on each web role. From there on, it's a bit of magic figuring out which master/slave configuration, but we've solved that too.

So yes, it can be done with a little bit of work. Most importantly, the startup task is key. Index doesn't have to be stored anywhere but on local disk (Local Resource), because indexing is part of the role startup. If you have to speed it up and a few minute differences are acceptable, you can have the index synced with a blob storage copy every once in a while by the master. But in this case you need to implement a voting algorithm so that the SOLR instances don't override each other.

We'll be posting info on our blog, but I don't want to post links in answers for old threads because I'll look like a spammer :o)

share|improve this answer
Cool, please add your blog post if you want to. –  HaavardMeling Aug 15 '11 at 6:41
add comment

I haven't actually tried, but Azure can run Java, so theoretically it should be able to run Solr.

This article ("Run Java with Jetty in Windows Azure") should be useful.

The coordinator for "Lucene.Net on Azure" also claims it should run.

EDIT : The Microsoft Interop team has written a great guide and config tips for running Solr on Azure!

share|improve this answer
I was thinking since Solr store its index to a file. Does Azure support writing to a file? –  HaavardMeling Oct 4 '10 at 19:15
@Håvard Meling: I think it does, look up "Azure local storage" –  Mauricio Scheffer Oct 4 '10 at 21:44
After what I can see the local storage is only temporary to the lifetime of the instance. Which would mean it has to be rebuilt all the time. –  HaavardMeling Oct 5 '10 at 21:28
add comment

Your Answer


