Skip to content

Commit

Permalink
commit cfe9c34
Browse files Browse the repository at this point in the history
Merge: ce198ce 3ac7701
Author: Michael Barz <[email protected]>
Date:   Fri Nov 25 14:47:24 2022 +0100

    Merge pull request #5130 from owncloud/filelock-duration-factor-config

    decomposedfs increase filelock duration factor
  • Loading branch information
micbar committed Nov 25, 2022
1 parent affe7c4 commit 117ceee
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 12 deletions.
2 changes: 1 addition & 1 deletion grpc_apis/ocis/messages/search/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.messages.search.v0"
url: /grpc_apis/ocis_messages_search_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/messages/settings/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.messages.settings.v0"
url: /grpc_apis/ocis_messages_settings_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/messages/store/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.messages.store.v0"
url: /grpc_apis/ocis_messages_store_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/messages/thumbnails/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.messages.thumbnails.v0"
url: /grpc_apis/ocis_messages_thumbnails_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/services/search/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.services.search.v0"
url: /grpc_apis/ocis_services_search_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/services/settings/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.services.settings.v0"
url: /grpc_apis/ocis_services_settings_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/services/store/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.services.store.v0"
url: /grpc_apis/ocis_services_store_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
2 changes: 1 addition & 1 deletion grpc_apis/ocis/services/thumbnails/v0/grpc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ocis.services.thumbnails.v0"
url: /grpc_apis/ocis_services_thumbnails_v0
date: 2022-11-25T12:48:51Z
date: 2022-11-25T13:48:41Z
weight: 50
geekdocRepo: https://github.com/owncloud/ocis
---
Expand Down
14 changes: 14 additions & 0 deletions services/_includes/adoc/storage-system_configvars.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,20 @@ a| [subs=-attributes]
++~/.ocis/storage/metadata ++
a| [subs=-attributes]
Path for the directory where the STORAGE-SYSTEM service stores it's persistent data.
|`STORAGE_SYSTEM_OCIS_MAX_ACQUIRE_LOCK_CYCLES`
a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++20 ++
a| [subs=-attributes]
When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.
|`STORAGE_SYSTEM_OCIS_LOCK_CYCLE_DURATION_FACTOR`
a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++30 ++
a| [subs=-attributes]
When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.
|`STORAGE_SYSTEM_DATA_SERVER_URL`
a| [subs=-attributes]
++string ++
Expand Down
25 changes: 23 additions & 2 deletions services/_includes/adoc/storage-users_configvars.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,16 @@ Name of the folder jailing all shares.
a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++25 ++
++20 ++
a| [subs=-attributes]
When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 25 will be used
When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.
|`STORAGE_USERS_OCIS_LOCK_CYCLE_DURATION_FACTOR`
a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++30 ++
a| [subs=-attributes]
When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.
|`STORAGE_USERS_S3NG_ROOT`
a| [subs=-attributes]
++string ++
Expand Down Expand Up @@ -317,6 +324,20 @@ a| [subs=-attributes]
++/Shares ++
a| [subs=-attributes]
Name of the folder jailing all shares.
|`STORAGE_USERS_S3NG_MAX_ACQUIRE_LOCK_CYCLES`
a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++20 ++
a| [subs=-attributes]
When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.
|`STORAGE_USERS_S3NG_LOCK_CYCLE_DURATION_FACTOR`
a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++30 ++
a| [subs=-attributes]
When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.
|`STORAGE_USERS_OWNCLOUDSQL_DATADIR`
a| [subs=-attributes]
++string ++
Expand Down
2 changes: 2 additions & 0 deletions services/_includes/storage-system-config-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ driver: ocis
drivers:
ocis:
root: ~/.ocis/storage/metadata
max_acquire_lock_cycles: 20
lock_cycle_duration_factor: 30
data_server_url: http://localhost:9216/data
2 changes: 2 additions & 0 deletions services/_includes/storage-system_configvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@
| STORAGE_SYSTEM_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.|
| STORAGE_SYSTEM_DRIVER | string | ocis | The driver which should be used by the service.|
| STORAGE_SYSTEM_OCIS_ROOT | string | ~/.ocis/storage/metadata | Path for the directory where the STORAGE-SYSTEM service stores it's persistent data.|
| STORAGE_SYSTEM_OCIS_MAX_ACQUIRE_LOCK_CYCLES | int | 20 | When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.|
| STORAGE_SYSTEM_OCIS_LOCK_CYCLE_DURATION_FACTOR | int | 30 | When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.|
| STORAGE_SYSTEM_DATA_SERVER_URL | string | http://localhost:9216/data | URL of the data server, needs to be reachable by other services using this service.|
5 changes: 4 additions & 1 deletion services/_includes/storage-users-config-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ drivers:
personalspacealias_template: '{{.SpaceType}}/{{.User.Username | lower}}'
generalspacealias_template: '{{.SpaceType}}/{{.SpaceName | replace " " "-" | lower}}'
share_folder: /Shares
max_acquire_lock_cycles: 25
max_acquire_lock_cycles: 20
lock_cycle_duration_factor: 30
s3ng:
root: ~/.ocis/storage/users
user_layout: '{{.Id.OpaqueId}}'
Expand All @@ -57,6 +58,8 @@ drivers:
personalspacealias_template: '{{.SpaceType}}/{{.User.Username | lower}}'
generalspacealias_template: '{{.SpaceType}}/{{.SpaceName | replace " " "-" | lower}}'
share_folder: /Shares
max_acquire_lock_cycles: 20
lock_cycle_duration_factor: 30
owncloudsql:
root: ~/.ocis/storage/owncloud
share_folder: /Shares
Expand Down
5 changes: 4 additions & 1 deletion services/_includes/storage-users_configvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
| STORAGE_USERS_OCIS_PERSONAL_SPACE_ALIAS_TEMPLATE | string | {{.SpaceType}}/{{.User.Username \| lower}} | Template string to construct personal space aliases.|
| STORAGE_USERS_OCIS_GENERAL_SPACE_ALIAS_TEMPLATE | string | {{.SpaceType}}/{{.SpaceName \| replace &#34; &#34; &#34;-&#34; \| lower}} | Template string to construct general space aliases.|
| STORAGE_USERS_OCIS_SHARE_FOLDER | string | /Shares | Name of the folder jailing all shares.|
| STORAGE_USERS_OCIS_MAX_ACQUIRE_LOCK_CYCLES | int | 25 | When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 25 will be used|
| STORAGE_USERS_OCIS_MAX_ACQUIRE_LOCK_CYCLES | int | 20 | When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.|
| STORAGE_USERS_OCIS_LOCK_CYCLE_DURATION_FACTOR | int | 30 | When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.|
| STORAGE_USERS_S3NG_ROOT | string | ~/.ocis/storage/users | The directory where the filesystem storage will store user files. If not definied, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users.|
| STORAGE_USERS_S3NG_USER_LAYOUT | string | {{.Id.OpaqueId}} | Template string for the user storage layout in the user directory.|
| STORAGE_USERS_PERMISSION_ENDPOINT<br/>STORAGE_USERS_S3NG_PERMISSIONS_ENDPOINT | string | 127.0.0.1:9191 | Endpoint of the permissions service.|
Expand All @@ -45,6 +46,8 @@
| STORAGE_USERS_S3NG_PERSONAL_SPACE_ALIAS_TEMPLATE | string | {{.SpaceType}}/{{.User.Username \| lower}} | Template string to construct personal space aliases.|
| STORAGE_USERS_S3NG_GENERAL_SPACE_ALIAS_TEMPLATE | string | {{.SpaceType}}/{{.SpaceName \| replace &#34; &#34; &#34;-&#34; \| lower}} | Template string to construct general space aliases.|
| STORAGE_USERS_S3NG_SHARE_FOLDER | string | /Shares | Name of the folder jailing all shares.|
| STORAGE_USERS_S3NG_MAX_ACQUIRE_LOCK_CYCLES | int | 20 | When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.|
| STORAGE_USERS_S3NG_LOCK_CYCLE_DURATION_FACTOR | int | 30 | When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.|
| STORAGE_USERS_OWNCLOUDSQL_DATADIR | string | ~/.ocis/storage/owncloud | The directory where the filesystem storage will store SQL migration data. If not definied, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/owncloud.|
| STORAGE_USERS_OWNCLOUDSQL_SHARE_FOLDER | string | /Shares | Name of the folder jailing all shares.|
| STORAGE_USERS_OWNCLOUDSQL_LAYOUT | string | {{.Username}} | Path layout to use to navigate into a users folder in an owncloud data directory|
Expand Down

0 comments on commit 117ceee

Please sign in to comment.