[infinispan-dev] memcached.sh
Galder Zamarreno
galder at redhat.com
Thu Feb 25 03:36:30 EST 2010
On Wed, 24 Feb 2010 14:07:25 +0100, Manik Surtani <manik at jboss.org> wrote:
> Galder
>
> I notice you have a memcached.sh script to start the memcached server.
> I believe this should be something like startServer.sh, given that we
> are not actually starting memcached? ;)
Hmmm, depends how you look at it. You could say that we're starting
Infinispan implementation of memcached, which is memcached still ;)
>
> And perhaps the script could be reused for HotRod as well ... passing in
> a flag to specify which protocol to speak, perhaps something like:
>
> $ startServer.sh -p memcached
>
> or
>
> $ startServer.sh -p hotrod
>
> Perhaps org.infinispan.server.memcached.Main could be in the server/core
> module instead, and based on the protocol flag passed in, kick start the
> appropriate server? WDYT?
I'm easy with either option. Having a single startServer.sh script fro
both servers makes it easy to maintain since there's a single script
rather than 2.
I'll create a JIRA for this.
>
> Also, how do you handle graceful shutdown of the server? Do you need to
> do something like listen on a separate, shutdown port (accepting local
> connections only) for a shutdown signal?
Shutdown is currently handled via a shutdown hook. For remote shutdown,
listening on a shutdown port might make sense, or the protocol port could
maybe be reused. I'd probably favour the 2nd to reduce the number of ports
to maintain.
Note that I didn't see anything in memcached protocol wrt to this.
>
> Cheers
> Manik
> --
> Manik Surtani
> manik at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache
More information about the infinispan-dev
mailing list