Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add maxOfflineRequests info #882

Merged
merged 1 commit into from
Sep 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pages/en/lb3/Defining-data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ You can use different data source definitions (including database credentials) f
environment variable, as explained in [Environment-specific configuration](Environment-specific-configuration.html#data-source-configuration),
for example `datasources.production.json` for production environment when NODE_ENV is 'production'.

Additionally, Node.js has a [default of 10 maximum listeners](https://nodejs.org/api/events.html#events_eventemitter_defaultmaxlisteners), but if you exceed this number, a warning is thrown. To avoid this warning, you can change this number by setting the `maxOfflineRequests` setting to a higher number. By default, LoopBack uses 16 as the maximum amount.

## Using multiple data source configurations

LoopBack merges environment-specific configurations (for example in `datasources.production.json`) with the baseline configuration in `datasources.json`.
Expand Down