Defining your internal storage space
Update the Analytics CR to define the internal storage space for your IBM® API Connect Analytics deployment.
Before you begin
This task only applies to deployments that use internal storage or have a message queue enabled. If you disabled internal storage but did not enable the message queue, then skip this task.
Review Estimating internal storage space to make sure you know how much disk space to allocate for internal storage. If you disabled internal storage, skip this task.
About this task
For information about offloading data from your Analytics deployment, see Planning to offload data to a third-party system.
The steps that you complete to define your internal storage allocations depend on the deployment options that you configured.
- Data & Master storage
- Complete the following steps only if you did not configure shared storage (described in Reducing storage complexity).
- Open the analytics_cr.yaml file for editing.
- In the CR, locate the
storage.data.volumeClaimTemplate
section and add thevolumeSize
field as shown in the following example.storage: data: volumeClaimTemplate: storageClassName: ... volumeSize: $DATA_VOLUME_SIZE
Replace
$DATA_VOLUME_SIZE
with the value that you calculated forStorage per node
in Data storage: calculate how much data you want to store. - Next, locate the
storage.master.volumeClaimTemplate
section and add thevolumeSize
field as shown in the following example.storage: master: volumeClaimTemplate: storageClassName: ... volumeSize: $VOLUME_SIZE
Replace
$VOLUME_SIZE
with the value that you calculated in Master storage: estimate disk space needs. - Save the file.
- Skip to the section for MQ storage.
- Shared storage
- Complete the following steps only if you configured shared storage by completing the steps in
Reducing storage complexity to set
storage.type: shared
.- Open the analytics_cr.yaml file for editing.
- In the CR, locate the
storage.shared.volumeClaimTemplate
section and add thevolumeSize
field as shown in the following example.storage: shared: volumeClaimTemplate: storageClassName: ... volumeSize: $STORAGE_PER_NODE
Replace
$STORAGE_PER_NODE
with the value that you calculated forStorage per node
in Data storage: calculate how much data you want to store. - Save the file.
- Continue to the section for MQ storage.
- MQ storage
- Complete this procedure only if you added a message queue to your Analytics topology by setting
mq.enabled: true
as explained in Adding a message queue.- In the CR, locate the
mq.zk.volumeClaimTemplate
section and add thevolumeSize
field as shown in the following example.mq: zk: volumeClaimTemplate: storageClassName: ... volumeSize: $VOLUME_SIZE
Replace
$VOLUME_SIZE
with the value that you calculated formq-zk
in MQ storage: estimate disk space needs. - In the CR, locate the
mq.kafka.volumeClaimTemplate
section and add thevolumeSize
field as shown in the following example.mq: kafka: volumeClaimTemplate: storageClassName: ... volumeSize: $VOLUME_SIZE
Replace
$VOLUME_SIZE
with the value that you calculated formq-kafka
in MQ storage: estimate disk space needs. - Save and close the file.
- In the CR, locate the
What to do next
Your Analytics configuration is complete. Proceed to Installing analytics.