Questions tagged [gearman]

Gearman is a system to farm out work to other machines, dispatching function calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Problem with Gearman: GEARMAN_INVALID_ARGUMENT

I have automatic php crons those run at midnight everyday. I am using Gearman in one of them. But recently I've been getting warnings that break my script. warning: GearmanClient::doBackground(): ...
Geeta Upadhyay's user avatar
0 votes
1 answer
256 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 ...
Jake's user avatar
  • 59
0 votes
0 answers
27 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. ...
user2678738's user avatar
0 votes
1 answer
325 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 ...
Abhinav's user avatar
  • 701
0 votes
1 answer
106 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 < /...
Georgi D. Sotirov's user avatar
0 votes
1 answer
327 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/...
Larest's user avatar
  • 336
0 votes
0 answers
23 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.
JBOSSUSER's user avatar
0 votes
0 answers
48 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', ...
Howard's user avatar
  • 31
1 vote
1 answer
483 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 ...
Abhinav's user avatar
  • 701
0 votes
1 answer
206 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....
nikhil gantyala's user avatar
1 vote
1 answer
2k 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 ...
Edi 0's user avatar
  • 212
0 votes
1 answer
951 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 ...
John Lewis's user avatar
2 votes
3 answers
378 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 ...
Rohith Mohan's user avatar
1 vote
1 answer
85 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 ...
DMK's user avatar
  • 53
0 votes
2 answers
3k views

How to install gearman extension in php7 running on ubuntu 18.04

I am currently required to setup the new server running php7.2 and the server will have many background process for sending emails to customer. the recommendation I got was to use Gearman Job Server. ...
Ruberandinda Patience's user avatar
1 vote
0 answers
54 views

Passing dynamic arguments to gman_do mysql udf function

I am trying to use gearman's mysql udf functions (version 0.6) . When i call it like this : select gman_do_background("test", "_", "_"); or even select gman_do_background(CONCAT("te","st"), "_"...
Laloutre's user avatar
  • 173
0 votes
0 answers
82 views

gearman works very slow with out of memory

gearmand version 1.1.18 (latest) works very slow when free RAM runs out. I have 64 GB RAM on server and when gearman use all free memory and goes to 1mb of swap - gearmand starts to work very-very ...
maxwp's user avatar
  • 83
0 votes
1 answer
117 views

Sending a job to gearman from a mysql trigger on large updates

I am using gearman's udf to send a background job to gearman from an after update trigger. the documentation states the following : The gman_do* functions take an optional third parameter, which ...
Laloutre's user avatar
  • 173
1 vote
2 answers
405 views

PHP GearmanClient::doBackground just hangs

Mehod doBackground of GearmanClient and its descendants such as doLowBackground and doHighBackground sometimes hang. I cannot figure out why. php 5.4 Gearman server version 1.1.18 Gearman ...
Velaro's user avatar
  • 491
0 votes
1 answer
617 views

Worker for Gearman getting Segmentation Fault

I am getting error when run my worker: Segmentation fault (core dumped) I'm getting a segmentation fault when trying to run worker for Gearman Client via the command line. This message worker ...
Anton's user avatar
  • 1
0 votes
1 answer
150 views

Schedule jobs in Gearman

I want to schedule a job in Gearman. I found some options like SUBMIT_JOB_SCHED and SUBMIT_JOB_EPOCH from Gearman protocol documentation here. But I did not find any implementation on any existing ...
Shaheer's user avatar
  • 1,613
0 votes
1 answer
1k views

How to make jenkins HA?

I have two physical servers(Ab and Bb) for batch. Each of them runs separately with its own Jenkins Master. What I want to do is make HA environment for them. If Ab died, then Bb could start Jenkins ...
jkkang's user avatar
  • 21
0 votes
0 answers
200 views

Loading large size model file in web application

I have created on Machine learning model file in pickle format(~100MB). To get the sentiment analysis result, I have to call that file. It is not feasible to load this file everytime, so what I was ...
user2129623's user avatar
  • 2,187
0 votes
2 answers
380 views

PHP GearmanClient not working on Ubuntu 16.04 LTS

I have this simple code: <?php $client = new \GearmanClient(); $client->addServer(); This gives following error: PHP Fatal error: Uncaught GearmanException: Failed to set exception option in ...
kargirwar's user avatar
  • 586
0 votes
1 answer
95 views

Gearman PHP job not submitted to server if workers running

I installed gearman v1.1.18-27-ga778fee on my machine and also installed the php-pecl extension. I am able to submit the job to server and they are persisted to a mysql table. When no worker is ...
Rajesh's user avatar
  • 3,741
1 vote
1 answer
340 views

High Availability of Gearman Server

I am using Jenkins with Gearman Plugin to achieve master-master high availability in Jenkins. But now the single point of failure has become the Gearman-Server. Gearman Plugin allows me to connect to ...
ksmaurya's user avatar
  • 101
1 vote
0 answers
143 views

python gearman worker on ec2 instance not responding

I have two aws ec2 instances. Client is running on first ec2 instance and worker is running on second ec2 instance. But worker on second ec2 instance is not responding to clients job and not even ...
suraj deshmukh's user avatar
1 vote
1 answer
117 views

PHP gearman - calling a gearman worker within a gearman worker

I am very new to gearman. I am trying to write a PHP script to download scripts from a URL and upload it to user's google drive. sort of a backup script.. What I am trying to do is to call initiate a ...
sameer manek's user avatar
0 votes
0 answers
152 views

trying to install mmoreram/gearman-bundle gives error on symfony 2.7

Looks like I'm missing something or maybe wrong doctrine version. Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'The service "...
Nicholas Robertson's user avatar
1 vote
1 answer
682 views

Supervisor std out log is empty when executing shell script for command

My supervisor log is empty and I don't know what to do to populate it. I have a simple test bash script #!/usr/bin/env bash echo "STARTING SCRIPT" while read LINE do echo ${LINE} 2>&1 ...
Valor_'s user avatar
  • 3,481
0 votes
1 answer
507 views

Multiple Gearman workers receive same job

I have two workers running at the same time, currently they both receive the same job at the exact same time. I was under the impression that while Worker A was running a job, Worker B would receive ...
Andrew's user avatar
  • 3,575
0 votes
0 answers
711 views

How to create the exact same jobs on each Jenkins master while using gearman plugin

I am using Gearman plugin with Jenkins to provide higher availability. According to the Gearman plugin document to configure Multiple Jenkins Masters I need to 1.Install the gearman plugin on each ...
Kuldeep Singh's user avatar
0 votes
1 answer
148 views

How does gearman distinguish two jobs?

In our scenario, we launch multiple gearman servers, and using multiple threads to assign jobs to workers. In below API function, the unique parameter is given the default value of NULL. void *...
werk's user avatar
  • 342
0 votes
1 answer
509 views

Gearman refusing to connect to mysql

gearmand --queue-type=MySQL --mysql-host=localhost --mysql-port=3306 --mysql-user=user --mysql-password=pass--mysql-db=gearman --mysql-table=...
Dave Yang's user avatar
0 votes
2 answers
26 views

Gearman: troubles with first use

I tried to start with Gearman. After downloading and setting it, gearman_version() works. But, when I start server and try to init worker like so: php myFileName.php & I see the code: And when ...
Alex Khonko's user avatar
2 votes
1 answer
254 views

php gearman worker function no synchronized with doctrine

I observed a strange behavior of my doctrine object. In my symfony project I'm using ORM with doctrine to save my data in a mysql database. This is working normal in the most situations. I'm also ...
Ole's user avatar
  • 161
0 votes
0 answers
391 views

Gearman on multiple servers in the Cloud

I've installed Gearman, when running on one server everything is going fine. Now I have three servers, on one I want to run my Client, on one the Worker and another working as the Server. When I run ...
Maarten Raaijmakers's user avatar
1 vote
1 answer
62 views

MySql - Fetch tasks which need to be run in the current minute

Situation: I have a table with tasks (which need to run at different intervals) and two php scripts (initator.php & worker.php). The initiator script is run every minute by cron and the intervals ...
T K's user avatar
  • 618
-1 votes
1 answer
573 views

Is it possible to install php gearman extension on wamp or xampp ( windows )

Is it possible to install php gearman extension on wamp or xampp in windows? I'm running after it for many days. No good news.
Binil John's user avatar
1 vote
1 answer
2k views

How to install Gearman PHP extension on Windows?

Background: 1. How can i install gearman php extension on Windows OS? 2. Installing gearman PHP extension on Windows using cygwin and pecl Following the answer in 1. question, I've made my cygwin ...
LihO's user avatar
  • 41.4k
0 votes
0 answers
733 views

How to install Gearman on MAMP (OSX)

I'm trying to install and run Gearman on my local env using MAMP pro. Mainly I followed this guide How to install gearman extension on MAMP but for some reason this won't work for me. Exact steps: ...
Joren Van Hocht's user avatar
1 vote
0 answers
159 views

PHP - multi-thread jobs working with Google Cloud API

I created a Saas that collect orders from different websites for companies, the websites are kind of "publishers" that provide the company orders every day. I don't have an API so I'm scraping HTML ...
Ilan Finkel's user avatar
1 vote
0 answers
107 views

Gearman with mysql support

I have complied gearman 1.1.18 on ubuntu 16 . I am using gearman with node library const gearman = require('gearman'); let client = gearman("localhost", 4730, { timeout: 10000 }); // timeout in ...
alwaysLearn's user avatar
  • 6,910
1 vote
2 answers
1k views

Get response from multiple jobs in Gearman, but abort after a timeout

In a nutshell: I want to have an overall timeout for a call to runTasks() in a Gearman client. I feel like I can't be the first person to want this, but I can't find an example of how to put it ...
IMSoP's user avatar
  • 91k
0 votes
0 answers
30 views

Tracking Gearman Worker based on the workload Parameter

I am new to Gearman and I am using it in an email setting. We are sending email campaigns using Gearman. So we create a campaigns (divided in batches sent every x minutes) and we assign those ...
masterseo's user avatar
0 votes
1 answer
192 views

Gearman is not writing anything to DB

I'm new with gearman and cannot figure out why it's not sending anything in DB So, I've created new EC2 and RDS instances for gearman. RDS Engine version - MySQL 5.7.19 On EC2 I've performed: rpm -...
Vasyl Stepulo's user avatar
0 votes
0 answers
776 views

Installing gearman PHP extension on Windows using cygwin and pecl

There is only a handful of threads on installing gearman on Windows, especially the gearman PHP extension. I have not found a solution yet. If anyone found a solution to get gearman PHP extension ...
Dorjee Dhondup's user avatar
-2 votes
1 answer
145 views

Increase connections to mysql cause rising sending data time in each on same query

Forking multiple process in php (Supervisor). Each create connection to same Mysql DB and execute same SELECT query in parallel (Gearman). If i increase amount of processes (i.e. same time connections)...
Marat Minnekhanov's user avatar
0 votes
1 answer
1k views

how to install gearman on ubuntu

I'm trying to install Gearman on Ubuntu 16.04. the gearman documentation said: If you are running Debian/sid, run apt-get install gearman-job-server. This package may be slightly out of date due to ...
Meysam M's user avatar
0 votes
1 answer
511 views

How to process a git submodule's parent repo with zuul, Gearman and Jenkins?

Following tools are used: Gerrit Openstack/Zuul which includes Gearman Jenkins (Pipeline jobs) Project configuration: Project "parent" as a git repository. Project "child" as a git repository. "...
qwc's user avatar
  • 243

1
2 3 4 5
10