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 Oct 3, 2023
1 parent 666cd04 commit 8fda271
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ 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"
NVMEOF_CONTAINER_NAME="${COMPOSE_PROJECT_NAME}-nvmeof-1"

# Performance
NVMEOF_NOFILE=20480 # Max number of open files (depends on number of hosts connected)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:

- name: Test
run: |
make demo OPTS=-T
make demo OPTS=-T NVMEOF_CONTAINER_NAME="ceph-nvmeof_nvmeof_1"
- name: Get subsystems
run: |
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 8fda271

Please sign in to comment.