Skip to content

Commit

Permalink
Add deployment note about thread count
Browse files Browse the repository at this point in the history
  • Loading branch information
lainets committed Sep 1, 2023
1 parent b481e37 commit a76e195
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ recloned from git afterwards but it is still generally faster to do that than to
Only the Huey process needs access to the build folder while only the main django process needs
access to the publish folder. Both processes need access to the store folder.

# Number of threads per process

Each process should only have a single thread as the advisory file locks obtained by the lockf posix
function are process specific. This means that two threads in the same process accessing the same
file at the same time can cause issues with the lock being released early or a lock being given when
it shouldn't (because the other thread had it). This should be very rare but to eliminate the
possibility, only one thread should be run per process.

# Custom build runners (running builds on something other than locally or on docker containers)

Expand Down

0 comments on commit a76e195

Please sign in to comment.