[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Memcached cartridge

Hi Mateus,
Thanks for creating the cartridge!

Here are some initial review comments:

1. Move the password generation and client_result from setup into a separate install script, since setup is meant to be called
   again during migrations and install is a one time script that is called when a cartridge is first installed.
   (See https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-mysql/bin/install.)

2. It might make sense to add a OPENSHIFT_MEMCACHED_VERSION environment variable and use that, so it will be easier to add support for
   newer versions in the future. (See https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-python/bin/install.)

3. The best place to put binaries is under usr/ directory, so you could move your binaries to usr/versions/1.4.15/bin.
   The reason is that for non-downloadable cartridges, the usr/ directory is shared among all users to save disk space.
   (It will help if we were to make this a first class cartridge at some point.)

I will inspect the scripts in more detail and reply with more comments, if any, later.


----- Original Message -----
> From: "Mateus Caruccio" <mateus caruccio getupcloud com>
> To: dev lists openshift redhat com
> Sent: Monday, September 2, 2013 5:38:54 PM
> Subject: Memcached cartridge
> Hi everyone.
> I've built this memcached cartridge. It is pretty initial code, heavilly
> based upon github.com/brianredbeard/openshift-cartridges and
> github.com/smarterclayton/openshift-redis-cart
> It's hosted on github.com/getupcloud/openshift-origin-cartridge-memcached ,
> with builds served by memcached-caruccio.getup.io/
> The cart adds sasl support (memcached binary protocol only), so it's safe to
> deploy on a dedicated gear. My goal is to allow instant apps like wordpress
> to auto-scale while benefiting from the use of memcached.
> I appreciate if someone could review it and give some advice/suggestion/PR
> since this is my very first cart.
> Thanks.
> --
> Mateus Caruccio
> ‚Äč getupcloud.com
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]