Archive

Archive for the ‘cloud’ Category

Celery configuration for Redis backend

November 13th, 2010 alex No comments

Not too obvious since doc here doesn’t mention it. Working configuration:

  1. CARROT_BACKEND = "ghettoq.taproot.Redis"
  2. CELERY_RESULT_BACKEND = "redis"
  3. REDIS_HOST = "localhost"
  4. REDIS_PORT = 6379
  5. REDIS_DB = 0
  6. REDIS_CONNECT_RETRY = True #this one is deprecated
  7.  
  8. BROKER_HOST = "localhost"  # Maps to redis host.
  9. BROKER_PORT = 6379         # Maps to redis port.
  10. BROKER_VHOST = "0"         # Maps to database number.
  11. #this line will screw up things for ghettoq backend
  12. #CELERY_DEFAULT_EXCHANGE = "tasks"
  13. CELERY_IMPORTS = ("tasks", )

Follow this link for more details

Tags: , ,
Categories: cloud, web Tags: , ,

Compliting redis 2.0.3 on mac os leopard with ppc

October 28th, 2010 alex No comments

Just notes to myself: redis.c line 10897

  1.  #if defined(__FreeBSD__)
  2.     return (void*) uc->uc_mcontext.mc_eip;
  3. #elif defined(__dietlibc__)
  4.     return (void*) uc->uc_mcontext.eip;
  5. #elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
  6.   #if __x86_64__
  7.     return (void*) uc->uc_mcontext->__ss.__rip;
  8.  #elif defined (__i386__)
  9.       return (void*) uc->uc_mcontext->__ss.__eip;
  10.   #else
  11.     return (void*) uc->uc_mcontext->__ss.__srr0;
  12.   #endif
  1.  CFLAGS='-mmacosx-version-min=10.5 -arch ppc -sysroot=/Developer/SDKs/MacOSX10.5.sdk' make

See ticket for more details

No tags for this post.
Categories: cloud Tags:

WordPress deployment on the live server using chef (and vagrant)

October 26th, 2010 alex No comments

When I decided to move from movable type to wordpress, I wasn’t quite happy with default wordpress cookbook. I also had an offer to have a cheap dedicated server instead of VPS, so I decided to test two things simultaneously:

  • Preparation of new live server using fabric
  • Deployment of new wordpress installation using chef with opscode server
  • And of cause testing wordpress cookbook on vagrant Here is how I do it:

    Read more…

Tags: , , , ,

Upgrading to Movable Type 5 using chef and vagrant

October 26th, 2010 alex 1 comment

As a long time perl developer, I have admired Movable Type (mt). So recently I decided to upgrade to MT5. In the end I decided to move from movable type to wordpress, but this is my notes:

Read more…

Tags: , , , , , , ,

Quick way to bootstrap chef server with vagrant

August 26th, 2010 alex No comments

As a big fan of automatic software deployment and cloud computing, today I tried chef following several tutorials one, two and three. But because I am lazy, I decided to try to use vagrant to setup chef server.

Read more…

Tags: , , , , ,

Cloud computing security, common questions and my answers

January 15th, 2010 alex No comments

I have a several friends, who have a great product ideas, based on complex scientific algorithms. Each time when I suggest using cloud computing for developing product we go through a round of questions. I will put them down here, so I can reference it.

Read more…

Tags: , , , ,

DIY Amazon EC2 Spot Instances price chart

December 17th, 2009 alex No comments

This is a short example how to build very simple chart for EC2 Spot Instances using Timeplot

Read more…

Tags: , , ,