N
N
nepster-web2014-09-20 03:25:22
PHP
nepster-web, 2014-09-20 03:25:22

Why is there no Mysql config in gearman ?

Tried to set up the tasks to be in the database (Mysql) and stumbled upon a problem:
no configuration to set up Mysql .
/usr/sbin/gearmand --help

...
HTTP:
  --http-port arg (=8080) Port to listen on.

libmemcached:
  --libmemcached-servers arg List of Memcached servers to use.

libsqlite3:
  --libsqlite3-db arg                   Database file to use.
  --libsqlite3-table arg (=gearman_queue)
                                        Table to use.

The docs write about libdrizzle, but I don't have this configuration and no matter what I do, it doesn't show up. Tell me what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Philipp, 2014-09-20
@zoonman

The client library probably needs to be put through the package manager.
And for puff, there is also www.drizzle.org/content/download

E
ErgoZru, 2014-11-27
@ErgoZru

Perhaps you didn’t search well, on centos there is a file /etc/sysconfig/gearmand (in other OSes I don’t remember where it is located, you can peep the path to this file in the init script). A connection to the database is written there, here is an example of the config:

### Settings for gearmand
OPTIONS="--listen=127.0.0.1
        --job-retries=3 \
        --queue-type=MySQL \
        --mysql-host=localhost \
        --mysql-port=3306 \
        --mysql-user=gearman \
        --mysql-password=gearman_password \
        --mysql-db=gearman \
        --mysql-table=queue"

I read this in the documentation on the gearman website.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question