You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DOC-12777: Update Eventing REST API with sync-gateway-aware options (#163)
* Update eventing schemas to master
* Add examples for Sync Gateway compatibility
* Updates after review: add overlay for new settings
* Updates after review: update Gradle to normalize spec and apply overlay
* Updates after review: add cursor limit
* Rebuild output documentation
Copy file name to clipboardExpand all lines: docs/modules/eventing-rest-api/pages/index.adoc
+187-2Lines changed: 187 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4276,8 +4276,7 @@ GET /api/v1/config
4276
4276
[markdown]
4277
4277
--
4278
4278
Shows all global configuration settings.
4279
-
There are currently just two settings: `enable_debugger` and `ram_quota`.
4280
-
Both of these settings can also be adjusted via the UI.
4279
+
Note that the `enable_debugger` and `ram_quota` settings can also be adjusted via the UI.
4281
4280
--
4282
4281
4283
4282
@@ -7846,6 +7845,38 @@ maximum time the handler can run before it is forcefully terminated (in seconds)
7846
7845
a¦ Integer
7847
7846
7848
7847
7848
+
a¦
7849
+
*cursor_checkpoint_timeout* +
7850
+
_optional_
7851
+
a¦
7852
+
7853
+
[markdown]
7854
+
--
7855
+
The maximum time the checkpoint writer can run before it is forcefully terminated (in seconds).
7856
+
--
7857
+
7858
+
[%hardbreaks]
7859
+
*Minimum:* `1`
7860
+
{blank}
7861
+
a¦ Integer
7862
+
7863
+
7864
+
a¦
7865
+
*on_deploy_timeout* +
7866
+
_optional_
7867
+
a¦
7868
+
7869
+
[markdown]
7870
+
--
7871
+
maximum time the OnDeploy handler can run before it is terminated (in seconds)
7872
+
--
7873
+
7874
+
[%hardbreaks]
7875
+
*Minimum:* `1`
7876
+
{blank}
7877
+
a¦ Integer
7878
+
7879
+
7849
7880
a¦
7850
7881
*language_compatibility* +
7851
7882
_optional_
@@ -8223,6 +8254,138 @@ maximum allowable curl call response in 'MegaBytes'. Setting the value to 0 lift
8223
8254
a¦ Integer
8224
8255
8225
8256
8257
+
a¦
8258
+
*allow_transaction_mutations* +
8259
+
_optional_
8260
+
a¦
8261
+
8262
+
[markdown]
8263
+
--
8264
+
allow staged transaction mutations
8265
+
--
8266
+
8267
+
[%hardbreaks]
8268
+
{blank}
8269
+
a¦ Boolean
8270
+
8271
+
8272
+
a¦
8273
+
*allow_sync_documents* +
8274
+
_optional_
8275
+
a¦
8276
+
8277
+
[markdown]
8278
+
--
8279
+
Specifies whether the function allows Sync Gateway mutations.
8280
+
8281
+
* By default, this setting is `true`, for compatibility with previous versions of Couchbase Server.
8282
+
8283
+
* When this setting is `false`, the specified function skips all internal Sync Gateway documents, whose IDs are prefixed with `_sync`.
8284
+
This enables the function to work with Sync Gateway.
8285
+
8286
+
You must ensure that none of the documents which contain your own working data have IDs which are prefixed with `_sync`.
8287
+
(Note that internal Sync Gateway attachment documents, whose IDs are prefixed with `_sync:att`, are still processed by the specified function.)
8288
+
--
8289
+
8290
+
[%hardbreaks]
8291
+
{blank}
8292
+
a¦ Boolean
8293
+
8294
+
8295
+
a¦
8296
+
*cursor_aware* +
8297
+
_optional_
8298
+
a¦
8299
+
8300
+
[markdown]
8301
+
--
8302
+
Specifies whether the function suppresses potential duplicate mutations caused by App Services or Sync Gateway book-keeping.
8303
+
8304
+
Enabling this setting guarantees that the Eventing function will only trigger once for any given mutation received from App Services or Sync Gateway.
8305
+
8306
+
Note that enabling this setting may have a noticeable impact on the performance of the Eventing function.
8307
+
--
8308
+
8309
+
[%hardbreaks]
8310
+
{blank}
8311
+
a¦ Boolean
8312
+
8313
+
8314
+
a¦
8315
+
*high_seq_check_interval* +
8316
+
_optional_
8317
+
a¦
8318
+
8319
+
[markdown]
8320
+
--
8321
+
number of milliseconds before checking for high seq number
8322
+
--
8323
+
8324
+
[%hardbreaks]
8325
+
{blank}
8326
+
a¦ Integer
8327
+
8328
+
8329
+
a¦
8330
+
*max_unacked_bytes* +
8331
+
_optional_
8332
+
a¦
8333
+
8334
+
[markdown]
8335
+
--
8336
+
max MBs to wait to send more bytes to c++ side
8337
+
--
8338
+
8339
+
[%hardbreaks]
8340
+
{blank}
8341
+
a¦ Integer
8342
+
8343
+
8344
+
a¦
8345
+
*max_unacked_count* +
8346
+
_optional_
8347
+
a¦
8348
+
8349
+
[markdown]
8350
+
--
8351
+
max number of messages on c++ side
8352
+
--
8353
+
8354
+
[%hardbreaks]
8355
+
{blank}
8356
+
a¦ Integer
8357
+
8358
+
8359
+
a¦
8360
+
*message_flush_time* +
8361
+
_optional_
8362
+
a¦
8363
+
8364
+
[markdown]
8365
+
--
8366
+
number of milliseconds before sending message to c++ side
8367
+
--
8368
+
8369
+
[%hardbreaks]
8370
+
{blank}
8371
+
a¦ Integer
8372
+
8373
+
8374
+
a¦
8375
+
*max_parallel_vb* +
8376
+
_optional_
8377
+
a¦
8378
+
8379
+
[markdown]
8380
+
--
8381
+
number of parallel vb request per cpp thread
8382
+
--
8383
+
8384
+
[%hardbreaks]
8385
+
{blank}
8386
+
a¦ Integer
8387
+
8388
+
8226
8389
|===
8227
8390
8228
8391
//end::settings_schema[]
@@ -8298,6 +8461,28 @@ For details, see [Debugging and Diagnosability](/server/8.0/eventing/eventing-de
8298
8461
a¦ Boolean
8299
8462
8300
8463
8464
+
a¦
8465
+
*cursor_limit* +
8466
+
_optional_
8467
+
a¦
8468
+
8469
+
[markdown]
8470
+
--
8471
+
The maximum number of cursor-aware Eventing functions that can coexist on a given source keyspace. (A cursor-aware Eventing function is one for which the `cursor_aware` setting is `true`.)
8472
+
8473
+
Increasing this setting enables more cursor-aware Eventing functions to register and listen to any given collection.
8474
+
8475
+
Decreasing this setting prevents further cursor-aware Eventing functions from being registered on any given collection; however, it doesn't unregister already registered cursor-aware Eventing functions.
For details, see [Debugging and Diagnosability](/server/8.0/eventing/eventing-debugging-and-diagnosability.html).
895
+
cursor_limit:
896
+
type: integer
897
+
default: 5
898
+
maximum: 20
899
+
minimum: 1
900
+
x-has-default: true
901
+
description: |-
902
+
The maximum number of cursor-aware Eventing functions that can coexist on a given source keyspace. (A cursor-aware Eventing function is one for which the `cursor_aware` setting is `true`.)
903
+
904
+
Increasing this setting enables more cursor-aware Eventing functions to register and listen to any given collection.
905
+
906
+
Decreasing this setting prevents further cursor-aware Eventing functions from being registered on any given collection; however, it doesn't unregister already registered cursor-aware Eventing functions.
"description": "Specifies whether the function allows Sync Gateway mutations.\n\n* By default, this setting is `true`, for compatibility with previous versions of Couchbase Server.\n\n* When this setting is `false`, the specified function skips all internal Sync Gateway documents, whose IDs are prefixed with `_sync`.\nThis enables the function to work with Sync Gateway.\n\nYou must ensure that none of the documents which contain your own working data have IDs which are prefixed with `_sync`.\n(Note that internal Sync Gateway attachment documents, whose IDs are prefixed with `_sync:att`, are still processed by the specified function.)"
"description": "Specifies whether the function suppresses potential duplicate mutations caused by App Services or Sync Gateway book-keeping.\n\nEnabling this setting guarantees that the Eventing function will only trigger once for any given mutation received from App Services or Sync Gateway.\n\nNote that enabling this setting may have a noticeable impact on the performance of the Eventing function."
0 commit comments