-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support a directory as a valid location to include in the server's configuration doc changes #6872
Comments
Hi @rsherget - is there an development epic associated with this change? https://openliberty.io/docs/latest/reference/config/include.html |
Yes, the epic associated with this change is found here OpenLiberty/open-liberty#25149. |
Thanks @rsherget, I've added this issue to our 23.0.0.10 milestone. Although epic is marked |
Directory Handling-Includes Element #6872
Hi Ricky @rsherget Made the suggested correction to the documentation: Please review the same and add the Regards, |
Directory Handling-Includes Element-2 #6872
Looks good to me, thanks! |
Directory Handling-Includes Element-3 #6872
Hi Ricky @rsherget I had to make some corrections based on comments received from my doc lead. The updated doc link: https://docs-draft-openlibertyio.mqj6zf7jocq.us-south.codeengine.appdomain.cloud/docs/latest/reference/config/server-configuration-overview.html#include-processing Also, you mentioned that 2 documents need to be updated. One of them has been updated. The file can be accessed in the following location: File Name is: SchemaData.nlsprops Line no: 28 needs to be updated. Existing line: config.internal.metatype.includeType.attribute.location.documentation=Specifies the resource location. This can be a file path or a URI for a remote resource. can be replaced with the following: config.internal.metatype.includeType.attribute.location.documentation=Specifies the resource location. The value can be a file path, a directory, or a URI for a remote resource. Regards, CC @dmuelle |
Hi Ram- a couple suggestions
In addition to the default locations, additional configuration files can be brought in by using the include element.
The server reads and uses the files directly within the specified directory, ignoring any subdirectories and the files within them to avoid any significant impact on startup time. The files within the directory are also processed in alphabetical order. ---> When you specify a directory as the
<server>
<include location="./common/"/>
</server> |
Directory Handling-Includes Element-4 #6872
hi @dmuelle Please take a look at the comments incorporated. The updated doc link: https://docs-draft-openlibertyio.mqj6zf7jocq.us-south.codeengine.appdomain.cloud/docs/latest/reference/config/server-configuration-overview.html#include-processing Regards, |
LGTM, thanks |
A directory can now be used in the includes element in the server.xml. The configuration files within the specified directory will all be processed and used by the server. It will not be done recursively; only the files within the directory will be used, not any files within any subdirectories. The files within the directory are processed alphabetically, the same way that files are processed within the configDropins folder (as specified here https://openliberty.io/docs/latest/reference/config/server-configuration-overview.html#server-xml).
Previous server.xml include
Previous server startup log
The change added will add a check for directories. Instead of passing over the directory without utilizing it, we will now look at the files within the directory and add them to the server configuration. This will only check the child files of the specified directory, it will not go any deeper than that. If another directory is found within the specified directory, then it will be skipped to avoid any significant impact on startup time with a long recursive method. The files within the directory are processed in alphabetical order.
After changes server.xml include
After changes server startup log
I was thinking these two docs:
Which release will the runtime updates target? The Open Liberty docs team will aim to get the docs updates published in sync with the runtime updates.
230010
The text was updated successfully, but these errors were encountered: