Automating SolrMeter

28 views
Skip to first unread message

Benson Margulies

unread,
May 28, 2013, 7:39:10 AM5/28/13
to solr...@googlegroups.com
I'd like to use SolrMeter with no GUI, scripting the behavior with a program. A quick look suggests that I should be able to do this via use of executors and controllers, but I'm not a Guice expert.

Could someone give me some pointers? I'd be happy to contribute a sample back in return.

Tomas Fernandez Lobbe

unread,
May 29, 2013, 4:20:39 PM5/29/13
to solr...@googlegroups.com
Hi Benson, you should be able to hack something to use just the classes in the "model" package. You should create instances of query/update executors yourself and set the required configuration properties (Solr urls and other properties are usually taken from "SolrMeterConfiguration", so you'll have to keep that). If you need the statistics, you'll have to code yourself a way to read and interpret the data.

If you wish to do something better than a hack, Juan Grande and I have discussed many times and agreed in that it would be a great idea to refactor the current architecture to make it look much more like a REST application, moving the model and controller behind an REST API layer, and making the view consume from that layer. Finally change the view to something like a JS frontend (or any other technology here). This would not only let us get rid of Swing, but also run SolrMeter in a remote server or via script, something that has been requested many times.
I haven't found time to do this refactor yet, but if you are willing to do part of this yourself it'll be more than welcome and I'll provide as much help as I can.


Tomás



2013/5/28 Benson Margulies <ben...@basistech.com>
I'd like to use SolrMeter with no GUI, scripting the behavior with a program. A quick look suggests that I should be able to do this via use of executors and controllers, but I'm not a Guice expert.

Could someone give me some pointers? I'd be happy to contribute a sample back in return.

--
You received this message because you are subscribed to the Google Groups "SolrMeter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrmeter+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Benson Margulies

unread,
May 30, 2013, 1:09:45 PM5/30/13
to solr...@googlegroups.com
Tomas,

I wandered off a bit in another direction, and I wonder what you think of it. I concentrated on being able to do an end-to-end benchmark; configure a copy of Solr, start it, and then talk to it. I wrote my own code using ConcurrentUpdateSolrServer for the 'talk to it' part.

If I went back towards SolrMeter, do you have any interest or sympathy for this configuration/launch part of the business?


Reply all
Reply to author
Forward
0 new messages