A parameter template is used to manage and apply parameter configurations to LogService clusters in batches. You can create a parameter template, define a set of parameter values, and then select to apply this template when creating a new cluster.
Note
Parameter templates can only be applied when creating a new cluster. After a cluster is created, you cannot modify its parameters via a template; you must use the Parameter Management feature to modify cluster parameters individually.
Prerequisites
Ensure the current OCP user has the following permissions:
- The Logservice Management resource permission.
- The Parameter Template menu permission for Logservice.
View the parameter template list
Log in to OCP.
In the left navigation bar, select Logservice Instance.
Click the Parameter Template tab to go to the parameter template list page.
On this page, you can view the following information:
ItemDescriptionTemplate Name The name of the parameter template. Number of Parameters The number of parameters in the template. Remarks The description of the template. Created By The user who created the template. Last Modified At The time when the template was last modified. Last Modified By The user who last modified the template.
Create a parameter template
On the parameter template list page, click Create Template.
In the Create Template dialog box, enter the following information:
ItemDescriptionTemplate Name Enter the name of the template. Remarks (Optional) Enter a description for the template. Click OK to go to the template details page.
On the template details page, add the parameters and their values you need to manage:
Information ItemDescriptionParameter Name Select the parameter you want to configure. Parameter Value Enter the value for this parameter. Value Type Displays the value type of the parameter. Value Range Displays the allowed value range of the parameter. Click + Add Parameter to add more parameters.
After configuring the parameters, click Create.
Note
To delete an added parameter, click the Delete button in the corresponding parameter row.
After creating a parameter template, you can select it when creating a new LogService cluster. For specific operations, see Create a LogService cluster.
Related operations
Edit a parameter template
In the parameter template list, find the template you want to edit.
Click the template name to go to the template details page.
You can perform the following operations:
- Modify Value: Directly modify the value of an existing parameter.
- Add Parameter: Click + Add Parameter, select new parameters, and set their values.
- Delete Parameter: Click the Delete button in the parameter row to remove unnecessary parameters.
- Modify Remarks: Modify the template's remarks in the template information area.
After completing the modifications, click Save.
Copy a parameter template
In the parameter template list, find the template you want to copy.
Click the More icon in the row where the template is located, or right-click the template.
In the action menu, select Copy.
In the copy dialog box that appears, enter the following information:
Information ItemDescriptionTemplate Name Enter the name of the copied template. Remarks (Optional) Enter a description for the template. Click OK to complete the template copy.
Delete a parameter template
In the parameter template list, find the template you want to delete.
Click the More icon in the row where the template is located, or right-click the template.
In the action menu, select Delete.
In the confirmation dialog box, confirm the deletion.
Note
After a parameter template is deleted, it cannot be restored. Ensure that the template is no longer used by any cluster.
