Project

General

Profile

Anomalie #8467

reconfigure : le redémarrage de creoled est extrêmement long

Added by Emmanuel GARETTE almost 6 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
06/23/2014
Due date:
07/04/2014
% Done:

100%

Distribution:
EOLE 2.4

Description

>>> from timeit import timeit 
>>> from pyeole.service import unmanaged_service
>>> from pyeole.process import system_code
>>> 
>>> def unmanage():
...  unmanaged_service(u'stop', u'creoled', u'service', display='console')
...  unmanaged_service(u'start', u'creoled', u'service', display='console')
... 
>>> def system():
...  system_code(['service', 'creoled', 'stop'])
...  system_code(['service', 'creoled', 'start'])
... 
>>> timeit(lambda: unmanage(), number=1)
Stop System V service creoled                                                                                                                         [  OK  ]
Start System V service creoled                                                                                                                        [  OK  ]
10.869958877563477
>>> timeit(lambda: system(), number=1)
 * Stopping Creole daemon creoled                                                                                                                      [ OK ] 
 * Starting Creole daemon creoled                                                                                                                      [ OK ] 
2.747856855392456

unmanaged_service est (dans ce cas, mais uniquement ce cas) 4 fois plus lent que system_code.

Je pense que le gain de 7 secds en vaut le coup.


Related issues

Related to creole - Anomalie #8448: impossible de reconfigurer si creoled est arrêté sur un serveur enregistré dans Zéphir Fermé 07/04/2014

History

#1 Updated by Emmanuel GARETTE almost 6 years ago

  • Due date set to 07/04/2014
  • Assigned To set to Emmanuel GARETTE
  • Target version set to Eole 2.4.0.1
  • Start date set to 06/23/2014

Corrigé avec la demande liée

#2 Updated by Emmanuel GARETTE almost 6 years ago

  • % Done changed from 0 to 100

#3 Updated by Emmanuel GARETTE almost 6 years ago

  • Status changed from Nouveau to Résolu

#4 Updated by Daniel Dehennin almost 6 years ago

  • Status changed from Résolu to Fermé

Le start de creoled à l’instance est beaucoup plus rapide.

Also available in: Atom PDF