We're updating the issue view to help you get more done. 

HA: contact center statistics generation fail on slave

Description

Given I have two Wazo Platform configured as master / slave
Given the slave is configured to send emails when a cron job fails
When I wait until any hour :00
Then I receive an email with the following error:

 

Expected: I don't receive any email

Technical details: at XX:00, there are two cron jobs running:

  • the DB replication

  • wazo-stat generation
    The DB replication locks the database for a relatively long time (more than 10 seconds). The situation is then wazo-stat waits for wazo-confd waits for database. The wazo-stat timeout expires after 10 seconds are raise the error sent in the email.

Possible solutions:

  • increase wazo-stat timeout

  • disable wazo-stat cron job on the slave

  • desync cron jobs to not be started at the same time

Environment

None
Done

Assignee

François Blackburn

Reporter

Sébastien Duthil

Labels

None

Approvers

Sébastien Duthil

Pair

None

Sprint

None

Fix versions

Priority

Medium
Configure