environment.rst 738 B

123456789101112131415161718192021
  1. .. _env_vars:
  2. Environment Variables
  3. ======================
  4. Eventlet's behavior can be controlled by a few environment variables.
  5. These are only for the advanced user.
  6. EVENTLET_HUB
  7. Used to force Eventlet to use the specified hub instead of the
  8. optimal one. See :ref:`understanding_hubs` for the list of
  9. acceptable hubs and what they mean (note that picking a hub not on
  10. the list will silently fail). Equivalent to calling
  11. :meth:`eventlet.hubs.use_hub` at the beginning of the program.
  12. EVENTLET_THREADPOOL_SIZE
  13. The size of the threadpool in :mod:`~eventlet.tpool`. This is an
  14. environment variable because tpool constructs its pool on first
  15. use, so any control of the pool size needs to happen before then.