Skip to content

Commit cfc887f

Browse files
nerpaulaSimran-B
andauthored
Release notes: Detached scheduler threads (#433)
* add detached scheduler threads to 3.10.13 * Apply suggestions from code review [skip ci] --------- Co-authored-by: Simran <[email protected]>
1 parent b1b75b2 commit cfc887f

File tree

6 files changed

+66
-3
lines changed

6 files changed

+66
-3
lines changed

site/content/3.10/release-notes/version-3.10/whats-new-in-3-10.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,27 @@ committed when a user requests a Hot Backup. The waiting could cause deadlocks
16211621
and thus Hot Backups to fail, in particular in ArangoGraph. Now, Hot Backups are
16221622
created immediately and commits have to wait until the backup process is done.
16231623

1624+
### Detached scheduler threads
1625+
1626+
<small>Introduced in: v3.10.13</small>
1627+
1628+
A scheduler thread now has the capability to detach itself from the scheduler
1629+
if it observes the need to perform a potentially long running task, like waiting
1630+
for a lock. This allows a new scheduler thread to be started and prevents
1631+
scenarios where all threads are blocked waiting for a lock, which has previously
1632+
led to deadlock situations.
1633+
1634+
Threads waiting for more than 1 second on a collection lock will detach
1635+
themselves.
1636+
1637+
The following startup option has been added:
1638+
- `--server.max-number-detached-threads`: The maximum number of detached scheduler
1639+
threads.
1640+
1641+
The following metric has been added:
1642+
- `arangodb_scheduler_num_detached_threads`: The number of worker threads
1643+
currently started and detached from the scheduler.
1644+
16241645
## Client tools
16251646

16261647
### arangobench

site/content/3.11/release-notes/version-3.10/whats-new-in-3-10.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,27 @@ committed when a user requests a Hot Backup. The waiting could cause deadlocks
16211621
and thus Hot Backups to fail, in particular in ArangoGraph. Now, Hot Backups are
16221622
created immediately and commits have to wait until the backup process is done.
16231623

1624+
### Detached scheduler threads
1625+
1626+
<small>Introduced in: v3.10.13</small>
1627+
1628+
A scheduler thread now has the capability to detach itself from the scheduler
1629+
if it observes the need to perform a potentially long running task, like waiting
1630+
for a lock. This allows a new scheduler thread to be started and prevents
1631+
scenarios where all threads are blocked waiting for a lock, which has previously
1632+
led to deadlock situations.
1633+
1634+
Threads waiting for more than 1 second on a collection lock will detach
1635+
themselves.
1636+
1637+
The following startup option has been added:
1638+
- `--server.max-number-detached-threads`: The maximum number of detached scheduler
1639+
threads.
1640+
1641+
The following metric has been added:
1642+
- `arangodb_scheduler_num_detached_threads`: The number of worker threads
1643+
currently started and detached from the scheduler.
1644+
16241645
## Client tools
16251646

16261647
### arangobench

site/content/3.11/release-notes/version-3.11/whats-new-in-3-11.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ cache subsystem:
12911291

12921292
### Detached scheduler threads
12931293

1294-
<small>Introduced in: v3.11.5</small>
1294+
<small>Introduced in: v3.10.13, v3.11.5</small>
12951295

12961296
A scheduler thread now has the capability to detach itself from the scheduler
12971297
if it observes the need to perform a potentially long running task, like waiting

site/content/3.12/release-notes/version-3.10/whats-new-in-3-10.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,27 @@ committed when a user requests a Hot Backup. The waiting could cause deadlocks
16211621
and thus Hot Backups to fail, in particular in ArangoGraph. Now, Hot Backups are
16221622
created immediately and commits have to wait until the backup process is done.
16231623

1624+
### Detached scheduler threads
1625+
1626+
<small>Introduced in: v3.10.13</small>
1627+
1628+
A scheduler thread now has the capability to detach itself from the scheduler
1629+
if it observes the need to perform a potentially long running task, like waiting
1630+
for a lock. This allows a new scheduler thread to be started and prevents
1631+
scenarios where all threads are blocked waiting for a lock, which has previously
1632+
led to deadlock situations.
1633+
1634+
Threads waiting for more than 1 second on a collection lock will detach
1635+
themselves.
1636+
1637+
The following startup option has been added:
1638+
- `--server.max-number-detached-threads`: The maximum number of detached scheduler
1639+
threads.
1640+
1641+
The following metric has been added:
1642+
- `arangodb_scheduler_num_detached_threads`: The number of worker threads
1643+
currently started and detached from the scheduler.
1644+
16241645
## Client tools
16251646

16261647
### arangobench

site/content/3.12/release-notes/version-3.11/whats-new-in-3-11.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ cache subsystem:
12911291

12921292
### Detached scheduler threads
12931293

1294-
<small>Introduced in: v3.11.5</small>
1294+
<small>Introduced in: v3.10.13, v3.11.5</small>
12951295

12961296
A scheduler thread now has the capability to detach itself from the scheduler
12971297
if it observes the need to perform a potentially long running task, like waiting

site/content/3.12/release-notes/version-3.12/whats-new-in-3-12.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ cache subsystem:
577577

578578
### Detached scheduler threads
579579

580-
<small>Introduced in: v3.11.5</small>
580+
<small>Introduced in: v3.10.13, v3.11.5</small>
581581

582582
A scheduler thread now has the capability to detach itself from the scheduler
583583
if it observes the need to perform a potentially long running task, like waiting

0 commit comments

Comments
 (0)