bind = 'localhost:8000'

# Use three workers in addition to the master process. Since the Avalon
# Music Server is largely CPU bound, you can increase the number of
# request that can be handled by increasing this number (up to a point!).
# The Gunicorn docs recommend 2N + 1 where N is the number of CPUs you
# have.
workers = 3

# Make sure to load the application only in the main process before
# spawning the worker processes. Necessary when the server is scanning
# a music collection on start up to prevent multiple workers from
# stomping all over the database at the same time.
preload_app = True

bind = 'localhost:8000'

# Use three workers in addition to the master process. Since the Avalon
# Music Server is largely CPU bound, you can increase the number of
# request that can be handled by increasing this number (up to a point!).
# The Gunicorn docs recommend 2N + 1 where N is the number of CPUs you
# have.
workers = 3

# Make sure to load the application only in the main process before
# spawning the worker processes. This will save us memory when using
# multiple worker processes since the OS will be be able to take advantage
# of copy-on-write optimizations.
preload_app = True

Fix comment about why we use preload
Fix comment about why we use preload

  bind = 'localhost:8000'
  
  # Use three workers in addition to the master process. Since the Avalon
  # Music Server is largely CPU bound, you can increase the number of
  # request that can be handled by increasing this number (up to a point!).
  # The Gunicorn docs recommend 2N + 1 where N is the number of CPUs you
  # have.
  workers = 3
  
  # Make sure to load the application only in the main process before
- # spawning the worker processes. Necessary when the server is scanning
- # a music collection on start up to prevent multiple workers from
- # stomping all over the database at the same time.
+ # spawning the worker processes. This will save us memory when using
+ # multiple worker processes since the OS will be be able to take advantage
+ # of copy-on-write optimizations.
  preload_app = True
  
Fix comment about why we use preload
## Code Before:
bind = 'localhost:8000'

# Use three workers in addition to the master process. Since the Avalon
# Music Server is largely CPU bound, you can increase the number of
# request that can be handled by increasing this number (up to a point!).
# The Gunicorn docs recommend 2N + 1 where N is the number of CPUs you
# have.
workers = 3

# Make sure to load the application only in the main process before
# spawning the worker processes. Necessary when the server is scanning
# a music collection on start up to prevent multiple workers from
# stomping all over the database at the same time.
preload_app = True

## Instruction:
Fix comment about why we use preload
## Code After:
bind = 'localhost:8000'

# Use three workers in addition to the master process. Since the Avalon
# Music Server is largely CPU bound, you can increase the number of
# request that can be handled by increasing this number (up to a point!).
# The Gunicorn docs recommend 2N + 1 where N is the number of CPUs you
# have.
workers = 3

# Make sure to load the application only in the main process before
# spawning the worker processes. This will save us memory when using
# multiple worker processes since the OS will be be able to take advantage
# of copy-on-write optimizations.
preload_app = True
