Dear Eric
Yes I have added port 4730 to security group on EC2 instance
The exact problem I have is: My Client and my Worker cannot send/receive Job to/from JobServer which is setup in Amazon EC2 instance.
In Job Server, all configs is default (please see the post above)
In log file, it show "ERROR 2014-05-14 10:56:26.000000 [ main ] Timeout occured when calling bind() for
0.0.0.0:4730 -> libgearman-server/gearmand.cc:
688"
The code in Client like as:
gearman_client_st *client= gearman_client_create(NULL);
gearman_return_t ret= gearman_client_add_server(client, "EC2 public IP", 4730);
if (gearman_failed(ret))
{
return EXIT_FAILURE;
}
gearman_argument_t value= gearman_argument_make(0, 0, myMessage.c_str(), (long) myMessage.size());
gearman_task_st *task= gearman_execute(client,
"jobName", strlen(jobName),
NULL, 0,
NULL,
&value, 0);
Could you hep me solve this issue?