Skip to content

Commit

Permalink
pool: make metadata directory location configurable
Browse files Browse the repository at this point in the history
Motivation:
Many deployments prefer to keep pool's metadata on a different disk then
the data directory. As this is not possible out-of-box, typically this
is achieved with a help of sym-links

Modification:
introduce a property `pool.path.meta` to control location of medata
directory, that falls back to `pool.path`.

Result:
more flexible pool deployment

Acked-by: Marina Sahakyan
Target: master
Require-book: no
Require-notes: yes
  • Loading branch information
kofemann committed Nov 8, 2023
1 parent afb15bb commit bd1abd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<bean class="${pool.plugins.meta}" init-method="init">
<description>Store for pool meta data</description>
<constructor-arg ref="file-store"/>
<constructor-arg value="#{ T(java.nio.file.FileSystems).getDefault().getPath('${pool.path}') }"/>
<constructor-arg value="#{ T(java.nio.file.FileSystems).getDefault().getPath('${pool.path.meta}') }"/>
<constructor-arg value="${pool.name}"/>
</bean>
</constructor-arg>
Expand Down
7 changes: 7 additions & 0 deletions skel/share/defaults/pool.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ pool.name =
# Path to pool directory
pool.path =

# Path to metadata directory base
#
# Note: this is the base directory where metadata implementation will create their
# own subdirectories, like ${pool.path}/meta or ${pool.path}/control
#
pool.path.meta = ${pool.path}

# ---- Mover queues to create on a pool
#
# Mover queues schedule and execute transfers on a pool. Each mover
Expand Down

0 comments on commit bd1abd3

Please sign in to comment.