Skip to content

Commit 5c3f923

Browse files
committed
wip
1 parent 79af10f commit 5c3f923

File tree

7 files changed

+9
-64
lines changed

7 files changed

+9
-64
lines changed

advanced/option-database-tuning.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

includes/env-vars.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ STTRACE
88
Main and operational facilities:
99
config
1010
Configuration loading and saving.
11-
db
12-
The database layer.
1311
main
1412
Main package.
1513
model
@@ -51,6 +49,8 @@ STTRACE
5149
REST API.
5250
sha256
5351
SHA256 hashing package (this facility currently unused).
52+
sqlite
53+
The SQLite database
5454
stats
5555
Persistent device and folder statistics.
5656
sync
@@ -113,14 +113,8 @@ STPERFSTATS
113113
Write running performance statistics to ``perf-$pid.csv``. Not supported on
114114
Windows.
115115

116-
STRECHECKDBEVERY
117-
Time before folder statistics (file, dir, ... counts) are recalculated from
118-
scratch. The given duration must be parseable by Go's ``time.ParseDuration``. If
119-
missing or not parseable, the default value of 1 month is used. To force
120-
recalculation on every startup, set it to ``1s``.
121-
122-
STGCINDIRECTEVERY
123-
Sets the time interval in between database garbage collection runs. The
116+
STDBMAINTINTERVAL
117+
Sets the time interval in between database maintenance runs. The
124118
given duration must be parseable by Go's ``time.ParseDuration``.
125119

126120
GOMAXPROCS

rest/system-config-get.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ Returns the current configuration.
171171
"stunServers": [
172172
"default"
173173
],
174-
"databaseTuning": "auto",
175174
"maxConcurrentIncomingRequestKiB": 0,
176175
"announceLANAddresses": true,
177176
"sendFullIndexOnUpgrade": false,

rest/system-paths-get.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and others.
1616
"certFile": "/home/user/.config/syncthing/cert.pem",
1717
"config": "/home/user/.config/syncthing/config.xml",
1818
"csrfTokens": "/home/user/.config/syncthing/csrftokens.txt",
19-
"database": "/home/user/.local/share/syncthing/index-v0.14.0.db",
19+
"database": "/home/user/.local/share/syncthing/index-v2.db",
2020
"defFolder": "/home/user/Sync",
2121
"guiAssets": "/home/user/src/syncthing/gui",
2222
"httpsCertFile": "/home/user/.config/syncthing/https-cert.pem",

users/config.rst

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ corresponding environment variables (``$STDATADIR`` or ``STHOMEDIR``).
6464
The database directory contains the following files, among others:
6565

6666
:file:`index-{*}.db`
67-
A directory holding the database with metadata and hashes of the files
68-
currently on disk and available from peers.
67+
The database with metadata and hashes of the files currently on disk and
68+
available from peers.
6969

7070
:file:`syncthing.log`
7171
Log output, on some systems.
@@ -188,7 +188,6 @@ The following shows an example of a default configuration file (IDs will differ)
188188
<stunKeepaliveStartS>180</stunKeepaliveStartS>
189189
<stunKeepaliveMinS>20</stunKeepaliveMinS>
190190
<stunServer>default</stunServer>
191-
<databaseTuning>auto</databaseTuning>
192191
<maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
193192
<announceLANAddresses>true</announceLANAddresses>
194193
<sendFullIndexOnUpgrade>false</sendFullIndexOnUpgrade>
@@ -1046,7 +1045,6 @@ Options Element
10461045
<stunKeepaliveStartS>180</stunKeepaliveStartS>
10471046
<stunKeepaliveMinS>20</stunKeepaliveMinS>
10481047
<stunServer>default</stunServer>
1049-
<databaseTuning>auto</databaseTuning>
10501048
<maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
10511049
<announceLANAddresses>true</announceLANAddresses>
10521050
<sendFullIndexOnUpgrade>false</sendFullIndexOnUpgrade>
@@ -1306,13 +1304,6 @@ The ``options`` element contains all other global configuration options.
13061304
feature. Set ``false`` to keep Syncthing from sending panic logs on serious
13071305
troubles. Defaults to ``true``, to help the developers troubleshoot.
13081306

1309-
.. option:: options.databaseTuning
1310-
1311-
Controls how Syncthing uses the backend key-value database that stores the
1312-
index data and other persistent data it needs. The available options and
1313-
implications are explained in a :doc:`separate chapter
1314-
</advanced/option-database-tuning>`.
1315-
13161307
.. option:: options.maxConcurrentIncomingRequestKiB
13171308

13181309
This limits how many bytes we have "in the air" in the form of response data

users/syncing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ version of the file. This version is called the *global* version and is the
6969
one that each device strives to be up to date with.
7070

7171
This information is kept in the *index database*, which is stored in the
72-
configuration directory and called ``index-vx.y.z.db`` (for some version
73-
x.y.z which may not be exactly the version of Syncthing you're running).
72+
configuration or data directory and called ``index-*.db``, with some version
73+
number in place of the asterisk.
7474

7575
When new index data is received from other devices Syncthing recalculates
7676
which version for each file should be the global version, and compares this

users/tuning.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ is on an SSD. First some general options:
3232
performance. If the underlying storage is a large array of disk,
3333
then syncing many folders concurrently may be beneficial.
3434

35-
- :opt:`databaseTuning`
36-
Set to ``large``. Regardless of the size of the actual database, this
37-
increases a number of buffers and settings to optimize for higher
38-
throughput.
39-
4035
- :opt:`maxConcurrentIncomingRequestKiB`
4136
This sets the maximum amount of data being processed (loaded from
4237
disk and transmitted over the network) concurrently at any given
@@ -152,11 +147,6 @@ General options:
152147
- :opt:`maxFolderConcurrency`
153148
Set to 1 to sync folders sequentially, reducing the peak memory usage.
154149

155-
- :opt:`databaseTuning`
156-
Set to ``small``. Regardless of the size of the actual database size,
157-
this reduces the size of a number of buffers to optimize for reduced
158-
memory usage.
159-
160150
- :opt:`maxConcurrentIncomingRequestKiB`
161151
Set to 32 MiB to reduce the amount of memory used for buffering
162152
responses to incoming requests.

0 commit comments

Comments
 (0)