-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What does this PR do? Updates offline-tools pages for [JS 6](https://deploy-preview-269--kuzzle-doc-v2.netlify.com/sdk-reference/js/6/offline-tools/) and [CPP 1](https://deploy-preview-269--kuzzle-doc-v2.netlify.com/sdk-reference/cpp/1/offline-tools/): - add links to related properties/methods - better organization I didn't update the documentation for Go because we first need to move offline-tools related properties documentation to Kuzzle instead of WebSocket protocol. I didn't update the documentation for Java because we will generate it from CPP
- Loading branch information
Showing
5 changed files
with
150 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
layout: full.html.hbs | ||
title: Signal Handling | ||
order: 1000 | ||
--- | ||
|
||
# Signal Handling | ||
|
||
Kuzzle handles certain Unix signals which fit into the following three categories: | ||
|
||
* Abnormal termination | ||
* Normal termination | ||
* Dump report generation | ||
|
||
The code related to signal handling can be seen here : [lib/api/kuzzle.js#L183](https://github.com/kuzzleio/kuzzle/blob/master/lib/api/kuzzle.js#L183) | ||
|
||
## Abnormal termination | ||
|
||
Unix signal names: | ||
* `SIGQUIT` | ||
* `SIGABRT` | ||
* `SIGPIPE` | ||
|
||
These signals are the result of a critical error and will force Kuzzle to shutdown. | ||
When one of the aforementioned Unix signals is detected, Kuzzle will first generate a [dump report]({{ site_base_path }}guide/1/essentials/cli#dump) then shutdown. | ||
|
||
## Normal termination | ||
|
||
Unix signal names: | ||
* `SIGTERM` | ||
* `SIGINT` | ||
|
||
These signals are the result of a request to terminate gracefully. | ||
When one of the aforementioned Unix signals is detected, Kuzzle will refuse new requests, exit the cluster, finish the current request queue then shutdown. | ||
|
||
## Dump report | ||
|
||
Unix signal names: | ||
* `SIGTRAP` | ||
|
||
When one of the aforementioned Unix signals is detected, Kuzzle will generate a dump report and continue to serve requests normally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
src/sdk-reference/cpp/1/kuzzle/getters/snippets/getters.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters