483 questions
1
vote
0
answers
67
views
Why does Gearman worker return early when using pcntl_fork() in PHP?
I have a Gearman worker that forks multiple child processes using pcntl_fork() to handle parts of a job concurrently. Here's a simplified version of the worker script:
<?php
$worker = new \...
0
votes
0
answers
60
views
Java gearman-client wont connect to german job server
I am trying to use Gearman with my Spring project. But when i try to connect to the job server, it gets stuck, no exception, the client seems to go into some kind of endless loop.
I use docker for the ...
0
votes
1
answer
440
views
Cannot run Gearman worker - undefined symbol: ZVAL_NEW_ARR
I have installed Gearman on my system and when I run php --info | grep gearman I've got
php --info | grep gearman
gearman
gearman support => enabled
libgearman version => 1.1.19.1+ds
Also, I ...
0
votes
0
answers
47
views
How to pass resource from a Gearman worker to client
I have implemented connection pool in php with gearman. An old man techinque I know.
The concept is start a worker with x number of connections.
the client requests a connection and worker gives that.
...
0
votes
1
answer
484
views
How to install Gearman Job Server with PHP
I am trying to install Gearman client worker on Centos server. PHP has been installed and all required gearman-php module also installed. when executing command gearmand -d it gets executed ...
0
votes
1
answer
155
views
Gearman worker in shell hangs as a zombie
I have a Gearman worker in a shell script started with perp in the following way:
runuid -s gds \
/usr/bin/gearman -h 127.0.0.1 -t 1000 -w -f gds-rel \
-- xargs /home/gds/gds-rel-worker.sh < /...
0
votes
1
answer
380
views
configure gearman php extension fail on MacOS - error: unknown type name 'zend_object_value'
I tried to use this instruction to install Gearman PHP Extension for php 7.4 on MacOS:
tar xzf gearman-X.Y.tgz
cd gearman-X.Y
phpize
./configure
make
make install
and get error at ./configure
dev/...
0
votes
0
answers
30
views
How to configure the rule in sakuli_gearman_proxy.cfg that modify the output of sakuli?
I want to implement a rule which sets the status to WARN in case of a concrete error.Can someone please help.
0
votes
0
answers
123
views
Why when upgrade gearman python package from 'gearman(2.0.2)' to 'gearman3(0.2.0)', sometimes job missed and delayed
We often used the following code to connect to gearman server to get job:
gm_worker = gearman.GearmanWorker(['localhost:4730'])
gm_worker.set_client_id('xxxworker')
gm_worker.register_task(b'xxx', ...
1
vote
1
answer
716
views
Gearman installed on linux server, but not able to execute gearman commands
Iam new to Gearman and I have followed the procedure to install Gearman as suggested in How to install Gearman with PHP Extension.
Installation procedure at the end displayed a message that Gearman ...
0
votes
1
answer
246
views
Unable to download the pecl install gearman on Ubuntu
I'm trying to setup gearman on Ubuntu, installations is failed and showing the below error.
PHP Warning: PHP Startup: Unable to load dynamic library 'gearman.so' (tried: /usr/lib/php/20170718/gearman....
1
vote
1
answer
3k
views
Run Bash script once Docker container is loaded
I am running a Docker through docker-composer up. Its a LAMP environment and works fine. I have a docker file where i am installing few Apache modules and loading them. After the Docker container is ...
0
votes
1
answer
1k
views
Gearman gearadmin - command line tool - clearing stubborn jobs
With the aid of this question here, I've been busy taking over an woefully undocumented gearman setup from a previous dev. Funnily enough, I've never seen such a woefully poor excuse for documentation ...
2
votes
3
answers
569
views
Connecting from php application to gearman server over ssl
I am trying to encrypt the connection from an application running on php 5.6.40 to gearman server(version 1.1.12). I have started gearman server enabling ssl and passed the ca file, certificate and ...
1
vote
1
answer
96
views
What is a typical Gearman flow for database modification?
Would appreciate some help understanding typical best practices in carrying out a series of tasks using Gearman in conjunction with PHP (among other things).
Here is the basic scenario:
A user ...