Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customization of DataNucleus via pass-through properties #494

Merged
merged 1 commit into from
May 26, 2023

Conversation

nscuro
Copy link
Collaborator

@nscuro nscuro commented May 24, 2023

This change is mostly meant to address #493, but may be useful for other use cases as well.

Due to the sheer amount of configuration options in DataNucleus (and potentially other frameworks), it is not practical to add AlpineKeys for all of them.

With this change, it is possible to disable the DataNucleus L2 cache by either:

  • Setting the property alpine.datanucleus.cache.level2.type=none in application.properties, or
  • Setting the environment variable ALPINE_DATANUCLEUS_CACHE_LEVEL2_TYPE=none

Closes #493

This change is mostly meant to address stevespringett#493, but may be useful for other use cases as well.

Due to the sheer amount of configuration options in DataNucleus (and potentially other frameworks), it is not practical to add `AlpineKey`s for all of them.

With this change, it is possible to disable the DataNucleus L2 cache by either:

* Setting the property `alpine.datanucleus.cache.level2.type=none` in `application.properties`, or
* Setting the environment variable `ALPINE_DATANUCLEUS_CACHE_LEVEL2_TYPE=none`

Signed-off-by: nscuro <[email protected]>
@stevespringett
Copy link
Owner

Is this ready to merge?

@nscuro
Copy link
Collaborator Author

nscuro commented May 26, 2023

@stevespringett Yes, ready to go!

@stevespringett stevespringett merged commit b96d00d into stevespringett:master May 26, 2023
@nscuro nscuro deleted the property-passthrough branch May 30, 2023 13:17
nscuro added a commit to nscuro/dependency-track that referenced this pull request Jun 12, 2023
Includes stevespringett/Alpine#494 among other changes so far.

Also added documentation for `alpine.datanucleus.cache.level2.type`.

Signed-off-by: nscuro <[email protected]>
melba-lopez pushed a commit to melba-lopez/dependency-track that referenced this pull request Jun 23, 2023
Includes stevespringett/Alpine#494 among other changes so far.

Also added documentation for `alpine.datanucleus.cache.level2.type`.

Signed-off-by: nscuro <[email protected]>
Signed-off-by: Melba Lopez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a means to disable or otherwise configure the DataNucleus L2 cache
2 participants