Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
eb01ddf
[NO ISSUE] Vector Search Index -> FTS Vector Index
sarahlwelton Jul 10, 2025
e8b0da3
[AV-105751] 8.0 on Capella - Document Search Index `Store` Object (#396)
sarahlwelton Aug 15, 2025
76127df
Merge branch 'capella' into AV-91970-8-0-docs-uptake-capella
sarahlwelton Aug 22, 2025
afcae1f
[AV-104690] 8.0 on Capella - FTS Document Filters (#393)
sarahlwelton Sep 8, 2025
b15413a
[AV-104691] 8.0 on Capella - FTS Synonyms Support (#394)
sarahlwelton Sep 8, 2025
253d1e7
DOC-12443: Reorganize GSI documents (#261)
simon-dew Aug 20, 2024
f506dad
[DOC-11988-7.6]: RBAC role change impact to eventing function
RayOffiah Aug 19, 2024
3758fdc
DOC-12652: Convert other server REST API references to use OpenAPI ge…
simon-dew Oct 22, 2024
9713d5d
DOC-12312: streaming completed requests to local files (#273)
simon-dew Sep 23, 2024
02ea005
[DOC-12901]: erroneous vector search text (#312)
RayOffiah Jan 22, 2025
12431d6
[DOC-12921]: Feedback on Search Functions | Couchbase Docs (#324)
RayOffiah Mar 4, 2025
b9a9f98
[DOC-9249] Add HASHBYTES Function (#327)
simon-dew Sep 8, 2025
00e8f38
NO ISSUE: replace callout list for diagram (#330)
simon-dew Mar 20, 2025
74f18cb
[DOC-11906] Add system:group_info & system:bucket_info keyspaces (#338)
simon-dew Sep 8, 2025
6998915
[DOC-13215] Add COMPRESS() and UNCOMPRESS() Functions (#344)
simon-dew Sep 8, 2025
b157313
[DOC-11766] Add EVALUATE Function (#346)
simon-dew Sep 8, 2025
2528215
[DOC-10871] Add OBJECT_CONCAT2 Function (#333)
simon-dew Sep 8, 2025
76d9463
[DOC-10857] Add a note to ARRAY_REMOVE() (#334)
rakhi-prathap Apr 24, 2025
d51c13c
[DOC-10792] Add OBJECT_TYPES/OBJECT_TYPES_NESTED functions (#331)
simon-dew Sep 8, 2025
f1cb69a
[DOC-10023] Add IS UNKNOWN Syntax (#343)
rakhi-prathap Apr 30, 2025
280cdd1
DOC-13223 sizing guidelines, note on residentRatio (#347)
TimLFletcher May 16, 2025
2ed8792
[DOC-10001] Add new logging qualifiers to system:completed_requests (…
rakhi-prathap Jun 10, 2025
41b92cd
[DOC 13257] Add new fields to system:completed_requests and system:ac…
rakhi-prathap Jun 12, 2025
b060f77
[DOC-12695] New SQL++ Statement - USING AI (#374)
rakhi-prathap Jul 23, 2025
a4ade00
[DOC-12880] Auto Update Statistics (#360)
rakhi-prathap Jul 24, 2025
c67aa4c
[DOC-12632] Auto Reprepare for PREPARE Statements (#387)
simon-dew Sep 8, 2025
7cde974
DOC-12757 Added information about OnDeploy (#391)
simon-dew Sep 9, 2025
b577ae4
[DOC-12493] Add XATTR support to SQL++ statements (#388)
rakhi-prathap Aug 12, 2025
986e5c2
Removing single reference to memcached buckets (#367)
ggray-cb Aug 21, 2025
d6f932c
[DOC-10909] Add 'Errors' Logging Qualifier (#365)
rakhi-prathap Jun 12, 2025
49b6286
[DOC-10618] Additional Date Formats (#368)
rakhi-prathap Jun 20, 2025
29f3d30
[DOC-11152] Changes to date functions (#383)
simon-dew Sep 9, 2025
b149bae
Merge pull request #385
RayOffiah Jul 30, 2025
5bcb630
[DOC-10551] Additional object parameters and new object_filter functi…
simon-dew Sep 9, 2025
42297b1
[DOC-10590] Add EXCLUDE clause to SELECT (#382)
simon-dew Sep 9, 2025
4fc9fb9
[DOC-10552] Changes to array operators and functions (#371)
simon-dew Sep 9, 2025
42890f7
DOC-13470: add example code snippet for on deploy (#401)
Pallavi-Janardhan Aug 26, 2025
c9eb6df
[DOC-12664] Automatic Workload Repository (AWR) (#342)
rakhi-prathap Aug 28, 2025
fa83d18
DOC-13306: Add documentation for indexer level scan timeout (#399)
simon-dew Aug 28, 2025
bb5bdd9
DOC-13111: cCURL add options cert, key, passphrase for client certifi…
simon-dew Sep 1, 2025
59cb097
[DOC-11953] New options for INFER - 8.0 (#410)
rakhi-prathap Sep 2, 2025
12d6fa2
[DOC-13464] Updates to the USING AI statement (#412)
rakhi-prathap Sep 8, 2025
5622ac7
DOC-13542: Update Capella REST API builds for Morpheus
simon-dew Sep 10, 2025
1ce7706
[AV-110437] Vector Search Index Architecture (#416)
sarahlwelton Sep 11, 2025
d2fdc95
[AV-104760] 8.0 on Capella - Search Request Partition Selection (#397)
sarahlwelton Sep 24, 2025
148526a
[AV-104692] 8.0 on Capella - FTS Scoring Models (#395)
sarahlwelton Sep 24, 2025
5688680
[AV-112236] Replace instances of tfidf with tf-idf (#435)
sarahlwelton Oct 1, 2025
2bbbb0f
[DOC-13535/release/8.0]: Update import guide to use updated Java SDK …
RayOffiah Oct 2, 2025
f28a4d6
DOC-13429 SQL++ errors generation (#424)
osfameron Sep 23, 2025
5144376
DOC-13429: SQL++ errors up to date (#426)
simon-dew Oct 3, 2025
a00ba43
[DOC-11643] New SQL++ Statements for 8.0 (#392)
rakhi-prathap Sep 24, 2025
a23b3cb
[DOC-10065] Optimizer Hints Changes for Morpheus (#404)
rakhi-prathap Sep 24, 2025
6ac07e6
DOC-11697: Add landing page for SQL++ statements (#429)
simon-dew Sep 25, 2025
b84e726
[DOC-9905] Additional date string formats (#433)
rakhi-prathap Sep 30, 2025
4698168
[DOC-13546] Update reserved keywords list (#423)
rakhi-prathap Oct 3, 2025
3f81400
DOC-13588: Issues with streaming completed requests (#434)
simon-dew Oct 3, 2025
87cb7d8
[AV-110544] Updates for Unexpected Search UI Changes (#445)
sarahlwelton Oct 9, 2025
ac1fdc5
DOC-13513: Update Configure Queries page (#446)
simon-dew Oct 10, 2025
b3879a3
DOC-12565 vector search concepts (#325)
ggray-cb Sep 10, 2025
c4e5b1f
DOC-12434: DDL for GSI Indexes with a Vector field (#275)
simon-dew Sep 12, 2025
21e7490
DOC-12437: Similarity functions (#407)
simon-dew Sep 12, 2025
7bf4bd4
NO ISSUE: Consolidate the vector index files (#419)
simon-dew Sep 12, 2025
c50d607
DOC-13545 GSI Vector Index Similarity internally uses squared variant…
ggray-cb Sep 16, 2025
cb54e59
NO ISSUE: Update workflow diagrams (#421)
simon-dew Sep 17, 2025
ad83d0e
NO ISSUE: Style fixes (#432)
simon-dew Sep 29, 2025
6ec601d
DOC-12464 Incorporate Vector Search in the Vector Index section (#443)
simon-dew Oct 7, 2025
d57b084
DOC-13622: Update GSI Vector Index docs after review (#447)
simon-dew Oct 13, 2025
2f1774b
Merge branch 'capella' into AV-91970-8-0-docs-uptake-capella
simon-dew Oct 13, 2025
ca2f345
NO ISSUE: Capella-specific GSI fixes (#449)
simon-dew Oct 14, 2025
2c0570f
DOC-13634: Fix Developer Intro page (#451)
simon-dew Oct 14, 2025
e039398
GSI Vector Index-Hyperscale indexes doc changes (#450)
rao-shwe Oct 14, 2025
695e2c7
[DOC-9906] IS DISTINCT FROM Operator (#431)
rakhi-prathap Oct 16, 2025
0da2ea3
Merge branch 'capella' into AV-91970-8-0-docs-uptake-capella
simon-dew Oct 16, 2025
7635c62
[AV-102227] Simplified Vector Index Creation (#444)
sarahlwelton Oct 16, 2025
1ade58e
[DOC-13536] USING AI - UI support and other improvements (#417)
rakhi-prathap Oct 7, 2025
baf7202
[DOC-9978] New ARRAY_REPLACE_EQUIVALENT function (#427)
rakhi-prathap Oct 7, 2025
9071112
[DOC-13581] AWR Improvements (#430)
simon-dew Oct 17, 2025
05c9239
DOC-13644: [Capella] Vector-index sample bucket (#452)
simon-dew Oct 17, 2025
36ed8f9
DOC-13645: [Capella] ALTER INDEX move is disabled (#454)
simon-dew Oct 17, 2025
6a2ff07
fixed a few issues I noticed when looking at the vector index intro. …
ggray-cb Oct 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions diagrams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
[[ -d ./build ]] || mkdir ./build

# install-rr
[[ -f ./build/rr-2.0-java11.zip ]] || curl -L -o ./build/rr-2.0-java11.zip https://github.com/GuntherRademacher/rr/releases/download/v2.0/rr-2.0-java11.zip
[[ -f ./build/rr-2.1-java11.zip ]] || curl -L -o ./build/rr-2.1-java11.zip https://github.com/GuntherRademacher/rr/releases/download/v2.1/rr-2.1-java11.zip

# extract-rr
[[ -f ./build/rr/rr.war ]] || unzip ./build/rr-2.0-java11.zip -d ./build/rr
[[ -f ./build/rr/rr.war ]] || unzip ./build/rr-2.1-java11.zip -d ./build/rr

for file in n1ql dcl ddl dml dql tcl hints utility
do
Expand Down
24 changes: 12 additions & 12 deletions modules/develop/pages/intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ This tutorial provides an introductory worked example for developers, showing ho

* xref:tutorials:couchbase-tutorial-student-records.adoc[]

== Migration Tutorial

This tutorial demonstrates how to migrate your data from a MySQL server over to Couchbase Capella.

* xref:tutorials:migration-tutorial-capella/sql-migration-tutorial-capella.adoc[]

== Connect

Choose how you want to connect your app to Couchbase Capella.
Expand All @@ -49,17 +55,17 @@ Use the Query Service and the Index Service to issue {sqlpp} queries to extract

* xref:n1ql:query.adoc[]

== Vector Search
== Vector Indexes

Vector Search builds on the Search Service to provide support for vector indexes.
The Query Service, the Index Service, and the Search Service provide support for vector indexes.
You can use vector indexes with existing Large Language Models to develop AI applications.

* xref:vector-search:vector-search.adoc[]
* xref:vector-index:vectors-and-indexes-overview.adoc[]

== Search

Use the Search Service for full-text search with natural language processing across multiple data types and languages.
Use custom text analysis, Geospatial search, and more.
Use the Search Service for Full-Text Search with natural language processing across multiple data types and languages.
Use custom text analysis, geospatial search, and more.

* xref:search:search.adoc[]

Expand Down Expand Up @@ -93,10 +99,4 @@ Couchbase offers numerous software development kits (SDKs) that provide programm
Integrations that Couchbase or partners have developed to enhance Couchbase, Capella, and partner services --
a vital tool for many larger development projects.

* xref:third-party:integrations.adoc[]

== Migration

A tutorial exercise demonstrating how to migrate your data from a MySQL server over to Couchbase Capella.

* xref:tutorials:migration-tutorial-capella/sql-migration-tutorial-capella.adoc[]
* xref:third-party:integrations.adoc[]
73 changes: 48 additions & 25 deletions modules/eventing/pages/eventing-Terminologies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The Eventing Service can run one or more Eventing Functions.
== Eventing Functions

Eventing Functions handle data changes in the Eventing Service.
They're standalone JavaScript fragments that trigger in real time as a response to document mutations and that must execute from start to finish before a specified timeout is reached.
These are standalone JavaScript fragments that trigger in real time as a response to document mutations and must be executed from start to finish before the specified timeout.

Eventing Functions allow you to:

Expand All @@ -24,7 +24,7 @@ Eventing Functions allow you to:
** Work with Atomic Counters, CAS, and TTLS
* Integrate with the Query Service to use inline {sqlpp} queries or statements
* Enable a Timer to schedule functions to run in the future
* Interact with external REST endpoints through cURL functionality
* Interact with external REST endpoints through cURL capability
* Route mutations to the entry points `OnUpdate` and `OnDelete`
* Route fired timers to a user-defined Timer callback

Expand All @@ -42,28 +42,45 @@ The `OnUpdate` handler is called when you create or modify a document.

The entry point `OnUpdate(doc,meta)` passes `doc`, the document, and `meta`, which contains additional data like the document ID, CAS, expiration date, and data type.

There are two limitations to the `OnUpdate` handler:
Limitations of the `OnUpdate` handler:

* If you modify a document several times in a short period of time, the handler calls can merge into a single event due to deduplication
* It is not possible to distinguish between Create and Update operations
* If you modify a document several times in a short period of time, the handler calls can merge into a single event due to deduplication.
* It is not possible to distinguish between Create and Update operations.

NOTE: To prevent the suppression of binary documents, you must set the language compatibility of your Function to Couchbase Server version 6.6.2 or later.

==== `OnDelete`

The `OnDelete` handler is called when you delete a document or when the document expires.

The entry point `OnDelete(meta,options)` passes `meta`, which contains information like the document, and `options`, which contains the boolean parameter `options.expired` that indicates if the document was removed because of a deletion or an expiration.
The entry point `OnDelete(meta,options)` passes `meta`, which contains information like the document, and `options`, that contains the boolean parameter `options.expired` that indicates if the document was removed because of a deletion or an expiration.

It is not possible to get the value of a document that has been deleted or expired.

==== `OnDeploy`

[.status]#Couchbase Server 8.0#

The `OnDeploy` handler runs once when an Eventing function is deployed or resumed, before any mutations are processed.

The entry point `OnDeploy(action)` receives an `action` parameter, like `deploy` or `resume`, indicating the reason for invocation. It also includes a `delay` value (in milliseconds), showing the time since the function was paused. For deployment operations, this value is `0`.

*Limitation*: Avoid long-running operations within the `OnDeploy` as they can delay function deployment.

Use `OnDeploy` for one-time setup tasks such as:

* Registering a Timer.
* Initializing resources required by the function.

If `OnDeploy` fails, no mutations are processed, and the function remains in its previous state.

==== Timer Callback

Timer callbacks are user-defined JavaScript functions passed as the `callback` argument to the built-in function call `createTimer(callback,date,reference,context)`.

When you create a Timer, the `callback` argument is executed at or close to the `date` argument.
The `reference` argument works as an identifier for the Timer scoped to an Eventing Function and callback.
The `context` argument must be serializable data that is available to the callback when the Timer is fired.
When the Timer fires, the `context` argument data must be in serialized form and available to the callback.

For more information about Timer callbacks, see xref:eventing-timers.adoc#createtimer-function[`createTimer()` and `cancelTimer()`].

Expand All @@ -72,13 +89,13 @@ For more information about Timer callbacks, see xref:eventing-timers.adoc#create

The persistent state of an Eventing Function is captured in the following external elements:

* Documents or mutations and their extended attributes
* Listen to Location, or the Eventing source: a collection that is the source of mutations sent to the Function through the Database Change Protocol (DCP)
* Eventing Storage, or the Eventing metadata: a collection used as a scratchpad for the state of the Function
* Documents or mutations and their extended attributes.
* Listen to Location, or the Eventing source: a collection that's the source of mutations sent to the Function through the Database Change Protocol (DCP).
* Eventing Storage, or the Eventing metadata: a collection used as a scratchpad for the state of the Function.
* Optional bindings for the Function:
** Bucket alias: an alias and access mode used by the Function to access a collection
** URL alias: an alias and HTTP/S setting used by the Function to access external REST APIs
** Constant alias: an alias to an integer, decimal number, string, boolean, or a JSON object used as a global variable within the Function
** Bucket alias: an alias and access mode used by the Function to access a collection.
** URL alias: an alias and HTTP/S setting used by the Function to access external REST APIs.
** Constant alias: an alias to an integer, decimal number, string, boolean, or a JSON object used as a global variable within the Function.

All states in the execution stack are short-lived.

Expand Down Expand Up @@ -150,12 +167,11 @@ The keyspaces `bucket.scope.collection` are accessible by the bound name as a Ja
You can add bucket aliases by selecting *Bucket alias* and entering an alias-name, a keyspace, and the access level.
This sequence of values does the following:

* alias-name is the name you can use to refer to the keyspace or collection from your Eventing Function code
* keyspace is the full path to a collection in the cluster
* the access level provides access to the keyspace as `read only` or `read and write`
** `read only` lets you read documents from the collection but not write (create, update, or delete) documents in the collection
** `read and write` lets you read and write documents in the collection

* alias-name is the name you can use to refer to the keyspace or collection from your Eventing Function code.
* keyspace is the full path to a collection in the cluster.
* the access level provides access to the keyspace as `read only` or `read and write`.
** `read only` lets you read documents from the collection but not write (create, update, or delete) documents in the collection.
** `read and write` lets you read and write documents in the collection.
NOTE: You must have one or more bucket alias bindings for your Eventing Function to perform operations directly against the Data Service.

An Eventing Function can listen to multiple collections when you use the `{asterisk}` wildcard in its scope or collection.
Expand Down Expand Up @@ -193,10 +209,10 @@ A keyspace is a path to a collection in the format `bucket-name.scope-name.colle
For backward compatibility, you can also use the format `bucket-name._default._default`.
This is the format of a bucket from Couchbase Server version 6.6 that has been upgraded to version 7.0.

The following are the two keyspaces used by Eventing Functions:
The two keyspaces used by Eventing Functions are:

* <<listen-to-location,Listen to Location>>, which represents the Eventing source
* <<eventing-storage,Eventing Storage>>, which represents the Eventing metadata
* <<listen-to-location,Listen to Location>>, which represents the Eventing source.
* <<eventing-storage,Eventing Storage>>, which represents the Eventing metadata.

[#listen-to-location]
==== Listen to Location
Expand Down Expand Up @@ -279,7 +295,7 @@ You can only modify the Feed Boundary when you create a Function or when a Funct

|System Log Level
|Determines the granularity of messages logged across the Eventing Function.
Can be one of `Info` (the default), `Error`, `Debug`, `Warning`, or `Trace`.
Can be `Info` (the default), `Error`, `Debug`, `Warning`, or `Trace`.

|Application Log Location
|The directory path to the log file for the Eventing Function.
Expand Down Expand Up @@ -313,15 +329,22 @@ New Functions default to the highest compatibility version available of 6.6.2.
In version 6.5.0, trying to access a non-existing item from a keyspace returns an undefined value.
In version 6.0.0, it throws an exception.

Only a Function with a language compability setting of version 6.6.2 passes binary documents to Eventing Function handlers.
Only a Function with a language compatibility setting of version 6.6.2 passes binary documents to Eventing Function handlers.
Versions 6.0.0 and 6.5.0 filter all binary documents out of the DCP mutation stream.

|Script Timeout
|The number of seconds to elapse before the script times out and is terminated.
|The number of seconds to elapse before the script times out and terminates.

The entry points into the handler processing for each mutation must run from start to finish before the specified timeout duration.
The default number of seconds is `60`.

|OnDeploy Timeout
|The number of seconds to elapse before the OnDeploy entry point times out and terminates.

The timeout is set to `60` seconds, by default.

The OnDeploy Timeout defines the maximum duration allowed for an Eventing Function to complete its initialization during deployment or resumption.

|Time Context Max Size
|The size limit of the context for any Timer created by the Eventing Function.

Expand Down
3 changes: 1 addition & 2 deletions modules/eventing/pages/eventing-faq.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ This means that the event entry points of *OnUpdate* and *OnDelete* to the Event

* Can a Function listen to all changes across Couchbase Server?
+
A defined Function listens only to changes that are exposed using the DCP for the source collection (Couchbase and Ephemeral) in the data-nodes.
Memcached buckets (and thus underlying collections) are not supported.
A defined Function listens only to changes that are exposed using the DCP for the source collection in the data-nodes.
The Function cannot listen to changes happening in other Couchbase components, such as FTS, Views, or GSI; nor can it listen to system events.


Expand Down
32 changes: 30 additions & 2 deletions modules/eventing/pages/eventing-language-constructs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -558,17 +558,18 @@ The Eventing Service calls the following JavaScript functions on events like mut

* <<onupdate_handler>>
* <<ondelete_handler>>
* <<ondeploy_handler>>
* <<timer_callback_handler>>

[#onupdate_handler]
=== OnUpdate Handler

The `OnUpdate` handler is called when you create or modify a document using an operation like insert or update.
The `OnUpdate` handler is called when you create or modify a document.
The entry point `OnUpdate(doc, meta)` listens to mutations in the associated source bucket.

The `OnUpdate` handler has the following limitations:

* If a document is modified several times in a short period of time, the handler calls might be combined into a single event due to deduplication.
* If a document is modified several times in a short period of time, the handler calls can merge into a single event due to deduplication.
* You cannot distinguish between a Create and an Update operation.

[source,javascript]
Expand Down Expand Up @@ -618,6 +619,33 @@ function OnDelete(meta) {
}
----

[#ondeploy_handler]
=== OnDeploy Handler

[.status]#Couchbase Server 8.0#

The `OnDeploy` handler is invoked once when an Eventing function is deployed or resumed, before any mutations are processed.
The entry point `OnDeploy(action)` is used for one-time setup tasks like resource initialization, creation of timers, and so on.

The `OnDeploy` handler has a limitation. Avoid any long-running operations within the `OnDeploy` as they can delay function deployment.

The timeout for OnDeploy execution is configurable separately in the xref:eventing:eventing-Terminologies.adoc#function-settings[Eventing Function Settings].

----
function OnDeploy(action) {
log("OnDeploy triggered. Reason:", action.reason, "Delay (ms):", action.delay);

if (action.reason === "deploy") {
// Perform operations for fresh deployment (like timer creation, resource initialisation)
log("Deploy: perform first time setup for function");
}
else if (action.reason === "resume") {
// Function was paused and resumed: refresh any cached information
log("Resume: perform operations before function resumption");
}
}
----

[#timer_callback_handler]
=== Timer Callback Handler

Expand Down
19 changes: 15 additions & 4 deletions modules/eventing/pages/eventing-lifecycle.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,33 @@ The minimum value is 1 (the default) and the recommended maximum is 64.
If the semantics of a language construct change in any given release the “Language compatibility” setting will ensure an older Eventing Function will continue to see the runtime behavior that existed at the time it was authored, until such behavior is deprecated and removed. Note 6.0.0, 6.5.0, and 6.6.2 (the default) are the only currently defined versions.

* *Script Timeout*: Script Timeout provides a timeout option to terminate a non-responsive Function.
The entry points into the Eventing Function, e.g. OnUpdate and OnDelete, processing for each mutation must complete from start to finish prior to this specified timeout duration. The default is 60 seconds. In addition an Timer callback must also complete within this period.
The entry points into the Eventing Function, like OnUpdate and OnDelete, processing for each mutation must complete from start to finish prior to this specified timeout duration.
The default is 60 seconds.
In addition an Timer callback must also complete within this period.

* *OnDeploy Timeout*: OnDeploy Timeout defines the maximum duration allowed for an Eventing Function to complete its initialization during deployment or resumption.
The OnDeploy entry point must complete execution, from start to end, within the specified timeout period.
If the runtime exceeds the specified duration, the function is reverted to its previous state.
By default, the timeout is set to 60 seconds.

* *Timer Context Max Size*: Timer Context Max Size limits the size of the context for any Timer created by the Function.
Eventing Timers can store and access a context which can be any JSON document, the context is used to store state when the timer is created and retrieve state when the timer fires. By default the size is 1024 bytes, but this can be adjusted on a per Function basis.
Eventing Timers can store and access a context which can be any JSON document, the context is used to store state when the timer is created and retrieve state when the timer fires. By default the size is 1024 bytes, but this can be adjusted on a per Function basis.

| Bindings
a|
A binding is a construct that allows separating environment specific variables (example: bucket names, external endpoint URLs, constants) from the Eventing Function's JavaScript source code. Currently Eventing Functions support the following binding types:
A binding is a construct that allows separating environment specific variables (example: bucket names, external endpoint URLs, constants) from the Eventing Function's JavaScript source code.

Currently Eventing Functions support the following binding types:

* *Bucket Bindings*: to access the Data Service or KV.

* *URL Bindings*: to communicate externally via cURL.

* *Constant Bindings*: to pass global settings/constants into the function.

An Eventing Function can have no bindings, just one binding, or several bindings. For more information on Bindings, refer to xref:eventing-Terminologies.adoc#section_mzd_l1p_m2b[Terminologies - Bindings].
An Eventing Function can have no bindings, just one binding, or several bindings.
For more information on Bindings, refer to xref:eventing-Terminologies.adoc#section_mzd_l1p_m2b[Terminologies - Bindings].

|===

. In the *ADD FUNCTION* dialog, configure the following information:
Expand Down
4 changes: 2 additions & 2 deletions modules/eventing/pages/eventing-rbac.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The following minimal resources are required for a non-privileged user to access
* Data DCP reader
** Mutation Source
* Eventing / Manage Scope Function
** bucket.scope or bucket.*
** bucket.scope or bucket.

== Minimal Eventing RBAC role example

Expand Down Expand Up @@ -107,7 +107,7 @@ image::rbac_min_c.png[,538,align=middle]

* Access the Couchbase Web Console > Security

* Select GROUPS on the right, you should see your definition for GROUP "eventing_min"
* Select GROUPS on the right, you should see your definition for GROUP `eventing_min`.
+
image::rbac_min_groups.png[,%100]

Expand Down
Loading
Loading