Project

General

Profile

Feature #5865

migration personal contacts performance

Added by Anonymous over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Read documentation?:
No

Description

Same XiVO as #5862

grep ERROR /var/log/xivo-ctid.log|grep -v 'connection to user'|grep -v 'Exception caught in callback'|grep -o 'bound method [A-Za-z\._]* of'|sort |uniq -c|sort -nr
     96 bound method DirectoriesCommand.lookup of
     88 bound method PersonalCommand.import_csv of
     27 bound method PersonalCommand.delete of
     27 bound method DirectoriesCommand.personal of
     18 bound method PersonalCommand.edit of
     14 bound method PersonalCommand.create of
      5 bound method DirectoriesCommand.favorites of
      4 bound method PersonalCommand.purge of
      3 bound method PersonalCommand.get of
      1 bound method DirectoriesCommand.new_favorite of

The main problem may be

     88 bound method PersonalCommand.import_csv of

because it seems that personal contacts import timeout (why?) and then is re-attempted at each CTI Client connection.
And it is perhaps the reason why consul consumes a lot of I/O (see #5862)


Related issues

Related to Wazo Software - Bug #5862: Consul writes quite a lot of data Rejected 2015-10-14

History

#1 Updated by Anonymous over 2 years ago

  • Description updated (diff)

#2 Updated by Anonymous over 2 years ago

  • Related to Bug #5862: Consul writes quite a lot of data added

#3 Updated by Pascal Cadotte-Michaud over 2 years ago

On my installation, it takes ~35 seconds to import 1000 contacts using xivo-dird.

the default timeout for xivo-dird in /etc/xivo-ctid/config.yml is 3 seconds.

My guess is that every time someone with enough contacts to have an import that last more that 3 seconds.
The POST on xivo-dird timeouts, all contacts are inserted but the succes never reaches the xivo client which
never remove the old contact file. The result is another import on the next connection... with no success.

I will test the following config file in `/etc/xivo-ctid/conf.d/timeout.yml`

dird:
    timeout: 60

and see if it would be a possible work around for the time of the migration or if its going to wreak havoc with every thing else in xivo-ctid.

#4 Updated by Sylvain Boily over 2 years ago

  • Subject changed from Lots of timeout in xivo-ctid calls to xivo-dird to migration personal contacts performance
  • Tracker changed from Bug to Feature

The migration need to be improved.

#5 Updated by Pascal Cadotte-Michaud about 2 years ago

  • Assignee set to Pascal Cadotte-Michaud
  • Read documentation? set to No
  • Status changed from New to Code review
  • Target version set to 16.06

This ticket will be completed at the same time as #5867

on a xivo-business the time to import a sample csv file of 1000 entries went from 543 to 7 seconds.

#6 Updated by S├ębastien Duthil about 2 years ago

  • Status changed from Code review to Resolved

Also available in: Atom PDF