~soren/nova/rpc-threadpool

« back to all changes in this revision

Viewing changes to nova/flags.py

  • Committer: Tarmac
  • Author(s): Rick Harris
  • Date: 2011-02-10 20:49:39 UTC
  • mfrom: (662.1.1 bug706405)
  • Revision ID: tarmac-20110210204939-98acj6n15l287w7c
Define sql_idle_timeout flag to be an integer.

This fixes bug706405 where MySQL Gone Away Errors were being generated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
DEFINE_string('sql_connection',
287
287
              'sqlite:///$state_path/nova.sqlite',
288
288
              'connection string for sql database')
289
 
DEFINE_string('sql_idle_timeout',
290
 
              '3600',
 
289
DEFINE_integer('sql_idle_timeout',
 
290
              3600,
291
291
              'timeout for idle sql database connections')
292
292
DEFINE_integer('sql_max_retries', 12, 'sql connection attempts')
293
293
DEFINE_integer('sql_retry_interval', 10, 'sql connection retry interval')