|
2 | 2 | // |
3 | 3 | // * scalability_and_performance/ztp_far_edge/ztp-advanced-policy-config.adoc |
4 | 4 |
|
5 | | -:_module-type: PROCEDURE |
| 5 | +:_content-type: PROCEDURE |
6 | 6 | [id="ztp-configuring-ptp-fast-events_{context}"] |
7 | 7 | = Configuring PTP events that use HTTP transport |
8 | 8 |
|
@@ -30,11 +30,8 @@ You can configure PTP events that use HTTP transport on managed clusters that yo |
30 | 30 | daemonNodeSelector: {} |
31 | 31 | ptpEventConfig: |
32 | 32 | enableEventPublisher: true |
33 | | - storageType: "storage-class-http-events" <1> |
34 | 33 | transportHost: http://ptp-event-publisher-service-NODE_NAME.openshift-ptp.svc.cluster.local:9043 |
35 | 34 | ---- |
36 | | -<1> The value that you set for `storageType` is used to populate the `StorageClassName` field for the `PersistentVolumeClaim` (`PVC`) resource that the PTP Operator automatically deploys. |
37 | | -The `PVC` resource is used to persist consumer event subscriptions. |
38 | 35 | + |
39 | 36 | [NOTE] |
40 | 37 | ==== |
@@ -66,58 +63,6 @@ In {product-title} 4.13 or later, you do not need to set the `transportHost` fie |
66 | 63 | <4> Required `phc2sysOpts` values. `-m` prints messages to `stdout`. The `linuxptp-daemon` `DaemonSet` parses the logs and generates Prometheus metrics. |
67 | 64 | <5> Optional. If the `ptpClockThreshold` stanza is not present, default values are used for the `ptpClockThreshold` fields. The stanza shows default `ptpClockThreshold` values. The `ptpClockThreshold` values configure how long after the PTP master clock is disconnected before PTP events are triggered. `holdOverTimeout` is the time value in seconds before the PTP clock event state changes to `FREERUN` when the PTP master clock is disconnected. The `maxOffsetThreshold` and `minOffsetThreshold` settings configure offset values in nanoseconds that compare against the values for `CLOCK_REALTIME` (`phc2sys`) or master offset (`ptp4l`). When the `ptp4l` or `phc2sys` offset value is outside this range, the PTP clock state is set to `FREERUN`. When the offset value is within this range, the PTP clock state is set to `LOCKED`. |
68 | 65 |
|
69 | | -. Configure a `LocalVolume` (`LV`) to persist the PTP events subscription on the host. |
70 | | -+ |
71 | | -For example, add the following YAML to the `group-du-sno-ranGen.yaml` file: |
72 | | -+ |
73 | | -[source,yaml] |
74 | | ----- |
75 | | -- fileName: StorageLV.yaml <1> |
76 | | - policyName: "config-policy" |
77 | | - spec: |
78 | | - storageClassDevices: |
79 | | - - storageClassName: "storage-class-http-events" <2> |
80 | | - volumeMode: Filesystem |
81 | | - fsType: xfs |
82 | | - devicePaths: |
83 | | - - /dev/disk/by-partlabel/httpevent1 |
84 | | - - /dev/disk/by-partlabel/httpevent2 |
85 | | -- fileName: StoragePV.yaml <3> |
86 | | - policyName: "config-policy" |
87 | | - metadata: |
88 | | - name: pv-storage-ptp |
89 | | - spec: |
90 | | - storageClassName: "storage-class-http-events" <4> |
91 | | ----- |
92 | | -<1> PTP events with HTTP transport requires local storage on the cluster node provided by the Local Storage Operator. |
93 | | -<2> Set `storageClassName` to `storage-class-http-events` to use HTTP transport with the PTP Operator. |
94 | | -Use the `ignitionConfigOverride` field in the related `SiteConfig` CR to manage the disk labels. |
95 | | -<3> Optional. Configure storage for the `cloud-event-proxy` pubsubstore. |
96 | | -`StoragePV.yaml` is required only if the `PersistentVolume` (`PV`) CR is not dynamically created by the Local Storage Operator. |
97 | | -<4> Set the value of `storageClassName` to match the name set in the `PVC` CR that the PTP Operator deploys. |
98 | | -
|
99 | | -. Configure a namespace and Operator group for the persistent storage this is used by the HTTP message transporter. |
100 | | -For example, add the following YAML to `spec.sourceFiles` in `common-ranGen.yaml` file: |
101 | | -+ |
102 | | -[source,yaml] |
103 | | ----- |
104 | | -- fileName: StorageNS.yaml |
105 | | - policyName: "storage-sub-policy" |
106 | | -- fileName: StorageOperGroup.yaml |
107 | | - policyName: "storage-sub-policy" |
108 | | -- fileName: StorageOperatorStatus.yaml |
109 | | - policyName: "storage-sub-policy" |
110 | | ----- |
111 | | -
|
112 | | -. Configure the individual site `SiteConfig` CR that you use to provision the managed cluster. |
113 | | -For example, in `example-sno-site-1.yaml`, add the following YAML to the `spec.clusters.nodes` field: |
114 | | -+ |
115 | | -[source,yaml] |
116 | | ----- |
117 | | -ignitionConfigOverride: |
118 | | - '{"ignition":{"version":"3.2.0"},"storage":{"disks":[{"device":"/dev/disk/by-id/wwn-0x11111000000asd123","wipeTable":false,"partitions":[{"sizeMiB":16,"label":"httpevent1","startMiB":350000},{"sizeMiB":16,"label":"httpevent2","startMiB":350016}]}],"filesystem":[{"device":"/dev/disk/by-partlabel/httpevent1","format":"xfs","wipeFilesystem":true},{"device":"/dev/disk/by-partlabel/httpevent2","format":"xfs","wipeFilesystem":true}]}}' |
119 | | ----- |
120 | | - |
121 | 66 | . Merge any other required changes and files with your custom site repository. |
122 | 67 |
|
123 | 68 | . Push the changes to your site configuration repository to deploy PTP fast events to new sites using {ztp}. |
0 commit comments