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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/_partials/concepts/channels.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ image::channel-access-grant-3.0.png["Access Control Points 3.x",400]
64
64
You can provide the `admin_channels` property using the *Admin REST API* endpoint ({rest-api-admin-user-put--xref}).
65
65
66
66
<2> Programmatically using Access Grant Document: +
67
-
The {loc-sync-function--xref} provides a flexible and secure method for controlling document access and routing.
67
+
The {sync-function--xref} provides a flexible and secure method for controlling document access and routing.
68
68
You can program it to derive appropriate access and channel routing information from document properties. +
69
69
Optionally, the access grant can be specified via a designated extended attribute (XATTR) — see: {access-control-how-use-xattrs-for-access-grants--xref} for how to define the XATTR.
70
70
@@ -141,7 +141,7 @@ TIP: Always use a filter in conjunction with the _all channels_ wildcard, to avo
141
141
142
142
// ADD THS TO HOW-tO/SYNC FUNCTION EXAMPLES
143
143
144
-
You assign documents to channels in the {loc-sync-function--xref}.
144
+
You assign documents to channels in the {sync-function--xref}.
145
145
146
146
Channels are created as documents are assigned to them.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/access-control-how.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ There are a number of ways in which you can control document distribution and us
54
54
55
55
[#lst1]
56
56
.Ways to configure access
57
-
* Using the Sync Gateway Configuration Properties file's {configuration-properties--xref--databases-user-admin-channels} setting
57
+
* Legacy Pre 3.0 Beta: Use the xref:configuration-properties.adoc[Legacy Configuration Properties] file's xref:configuration-properties.adoc#databases-user-admin-channels[admin_user_channels]
58
58
* Dynamically
59
59
** At the time of user creation with Admin REST Endpoint {rest-api-admin-user-post--xref} using `admin_channel`
60
60
** Using the Sync Function's {sync-function-api-access-cmd--xref}.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/auto-purge-channel-access-revocation.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ NOTE: This behavior is the *reverse* of that between {sgw-t} and Couchbase Lite
132
132
133
133
By default, documents are *not* auto purged on the active sync gateway even if the user on the passive sync gateway loses channel access.
134
134
135
-
You can opt-in to auto-purge behavior using the replicator level option `purge_on_removal` in the REST API -- see {configuration-schema--isgr--xref-purge-on-removal}.
135
+
You can opt-in to auto-purge behavior using the replicator level option `purge_on_removal` in the REST API -- see: xref:configuration-schema-isgr.adoc#replication-purge_on_removal[replication-purge_on_removal].
136
136
137
137
Documents will then *be* auto-purged -- on active Sync Gateway nodes that have opted-in -- if they do not belong to *any* of the replicating user’s footnote:[pass:q,a[The _replicating user_ is the user on the _passive_ sync gateway cluster; the user specified in the replication definition.]] channels -- see: <<lbl-isgr-revoke-behaviors>>.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deployment.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Tuning the cache values in the configuration file can speed up the performance (
59
59
It uses lightweight threads and asynchronous I/O.
60
60
Therefore, adding more CPU cores to a Sync Gateway node can speed it up.
61
61
- As is typical with databases, writes are going to put a greater load on the system than reads.
62
-
In particular, every write operation gets processed by the {xref-sgw-pg-adv-sgw-cfg-sync-function} and triggers notifications to other clients with read access, who then perform reads to get the new data.
62
+
In particular, every write operation gets processed by the {sync-function--xref} and triggers notifications to other clients with read access, who then perform reads to get the new data.
63
63
- Each client running a continuous replication has an open socket to be notified of changes, these sockets remain idle most of the time (unless documents are being modified at a very high rate), so the actual data traffic is low — the issue is just managing that many sockets.
64
64
We recommend developers to optimize how many connections they need to open to the sync tier (see the xref:os-level-tuning.adoc[OS Level Tuning] guide).
65
65
- In a Sync Gateway deployment with xref:indexing.adoc[GSI/N1QL indexing], the resources allocated to the Couchbase Server index node must be sufficient to support Sync Gateway operations.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/glossary.adoc
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -350,7 +350,7 @@ Subsequent retries may be made after the maximum limit time period has elapsed.
350
350
The term _Persistent replication_ refers to replications that survive Sync Gateway restarts.
351
351
All replications are persisted by default unless explicitly flagged as not.
352
352
// end::sgw-icr-persistent-replication[]
353
-
Persistent replication is defined in the configuration file sync-gateway.json -- see {xref-sgw-pg-cofig-properties}.
353
+
Persistent replication is defined in the configuration file sync-gateway.json -- see {configuration-properties--xref}.
354
354
It is started automatically and survives restarts.
355
355
The recommended method of defining a persistent replication is by using the configuration file.
356
356
With Inter-Sync Gateway replication you can configure all nodes with the replicators.
@@ -431,11 +431,12 @@ The term, _Synchronization_, refers to the process of replicating the changes ma
431
431
// tag::sgw-icr-sync-function-full[]
432
432
// tag::sgw-icr-sync-function[]
433
433
// tag::sgw-icr-sync-function-def[]
434
-
The Sync Function is a JavaScript function whose source code is stored in the Sync Gateway’s database configuration file. It is in charge of data validation, and of authorizing both read and write access to documents.
434
+
The Sync Function is a JavaScript function whose source code is provisioned using the Admin Rest API.
435
+
It is in charge of data validation, and of authorizing both read and write access to documents.
This guide covers handling data conflicts while syncing with Couchbase Lite 1.x clients or syncing with pre 2.8 version of Sync Gateway nodes using SG-Replicate
15
15
16
-
In these cases, the conflict resolution happens on the server-side using the Sync Gateway Admin REST API. This information does not apply to applications using Couchbase Mobile 2.x _only_ -- see {xref-sgw-pg-resolving-conflicts} or inter-Sync Gateway replication with versions of Sync Gateway 2.8 and above -- see {xref-sgw-pg-resolving-conflicts}
16
+
In these cases, the conflict resolution happens on the server-side using the Sync Gateway Admin REST API. This information does not apply to applications using Couchbase Mobile 2.x _only_ -- see xref:conflict-resolution.adoc[Resolving Conflicts]
17
17
18
18
In Couchbase Lite 1.x, a conflict usually occurs when two writers are offline and save a different revision of the same document.
19
19
Couchbase Mobile provides features to resolve these conflicts, the resolution rules are written in the application to keep full control over which edit (also called a revision) should be picked.
0 commit comments