Skip to content

Commit

Permalink
Lock OMAP file before changing it to avoid corruption in multi-gatewa…
Browse files Browse the repository at this point in the history
…y environemnt.

Fixes ceph#56

Signed-off-by: Gil Bregman <[email protected]>
  • Loading branch information
gbregman committed Sep 27, 2023
1 parent 666cd04 commit 1e251c3
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 30 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ QUAY_CEPH="${CONTAINER_REGISTRY}/vstart-cluster"
QUAY_NVMEOF="${CONTAINER_REGISTRY}/nvmeof"
QUAY_NVMEOFCLI="${CONTAINER_REGISTRY}/nvmeof-cli"
MAINTAINER="Ceph Developers <[email protected]>"
COMPOSE_PROJECT_NAME="ceph-nvmeof"

# Performance
NVMEOF_NOFILE=20480 # Max number of open files (depends on number of hosts connected)
Expand Down
4 changes: 4 additions & 0 deletions ceph-nvmeof.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ state_update_interval_sec = 5
#min_controller_id = 1
#max_controller_id = 65519
enable_discovery_controller = false
#omap_file_lock_timeout = 60
#omap_file_lock_retries = 15
#omap_file_lock_retry_sleep_interval = 5
#omap_file_update_retries = 10

[discovery]
addr = 0.0.0.0
Expand Down
Loading

0 comments on commit 1e251c3

Please sign in to comment.