Pomelo running on Amazon EC2

150 views
Skip to first unread message

Dirk Krause

unread,
Nov 27, 2013, 3:04:43 AM11/27/13
to pome...@googlegroups.com
Hi,

I finally managed to get 'Lords of Pomelo' working in the Amazon EC2 infrastructure on a Ubuntu 12.04 server instance.

I'd like to share some insights on a couple of challenges I faced.

- the smallest of the Amazon virtual machines (t1.micro) just won't cut it. If you try, you will find out that the various processes kill your mysql server. You need at least an m1.small and this will also be not big enough for any real world testing.
- getting the installation to work took me some time, because things fail silently sometimes (or get buried in the logs). Namely this goes for the 'pidstat' (in the sysstat package) which means needs to be installed. I added this to the wiki.
- don't try to kill the pomelo processes by ctrl-c, because they will spawn again (why?), and things will get uncontrollable. Use 'pomelo kill --force' always.
- other problems were related to ports that I didn't open by default. I still have to find which ones you really need, but it's safe to say that if you open 3000-3100 you are good to go (but you probably need only three open ports)

I wrote one big shell script that should get you up and running on EC2:

I continue reporting my findings here.

Best,
  Dirk

Charlie Crane

unread,
Nov 28, 2013, 9:15:36 PM11/28/13
to pome...@googlegroups.com
Good job,  we haven't installed it on amazon ec2 yet, thank you so much.
We will add your post to wiki.

Charlie Crane

unread,
Nov 28, 2013, 9:20:41 PM11/28/13
to pome...@googlegroups.com
It's on the wiki now,   https://github.com/NetEase/pomelo/wiki/Lordofpomelo-install-amazon-ec2  

Thank you so much.


On Wednesday, November 27, 2013 4:04:43 PM UTC+8, Dirk Krause wrote:

Charlie Crane

unread,
Nov 28, 2013, 9:32:22 PM11/28/13
to pome...@googlegroups.com
About  restart again,  if you do not config 'auto-restart', the process will not 'auto-restart' again.

But in production environment, you should not use Ctrl+C, since we run detached mode in production environment.

Use pomelo stop anyway,  if it still restart,  contact me.


On Wednesday, November 27, 2013 4:04:43 PM UTC+8, Dirk Krause wrote:
Reply all
Reply to author
Forward
0 new messages