Defining your internal storage space

If you don't want to use the shared storage that's configured by default for VMware, update the analytics-extra-values.yaml file 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 retain the default shared storage configuration (described in Declaring your storage type).
  1. Open the analytics-extra-values.yaml file for editing.
    Remember: All additions to the file must appear after the spec: statement.
  2. In the file, add the storage.data section as shown in the following example:
    
    spec:
      storage:
        data:
          volumeClaimTemplate:
            storageClassName: ...
            volumeSize: $DATA_VOLUME_SIZE

    Replace $DATA_VOLUME_SIZE with the value that you calculated for Storage per node in Data storage: calculate how much data you want to store.

  3. Next, add the storage.master section and add the volumeSize field as shown in the following example:
    
    spec:
      storage:
        master:
          volumeClaimTemplate:
            storageClassName: ...
            volumeSize: $VOLUME_SIZE

    Replace $VOLUME_SIZE with the value that you calculated in Master storage: estimate disk space needs.

  4. Save the file.

  5. Skip to the section for MQ storage.

Shared storage
If you are using shared storage (the default setting), complete the following steps to allocate disk space for the share storage.
  1. Open the analytics-extra-values.yaml file for editing.
    Remember: All additions to the file must appear after the spec: statement.
  2. In the file, add the storage.shared section as shown in the following example:
    
    spec:
      storage:
        shared:
          volumeClaimTemplate:
            storageClassName: ...
            volumeSize: $STORAGE_PER_NODE

    Replace $STORAGE_PER_NODE with the value that you calculated for Storage per node in Data storage: calculate how much data you want to store.

  3. Save the file.

  4. 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.
  1. In the file, add the mq: section.
  2. Add the mq.zk section as shown in the following example:
    
    spec:
      mq:
        zk:
          volumeClaimTemplate:
            storageClassName: ...
            volumeSize: $VOLUME_SIZE

    Replace $VOLUME_SIZE with the value that you calculated for mq-zk in MQ storage: estimate disk space needs.

  3. Add the mq.kafka section as shown in the following example:
    
    spec:
      mq:
        kafka:
          volumeClaimTemplate:
            storageClassName: ...
            volumeSize: $VOLUME_SIZE

    Replace $VOLUME_SIZE with the value that you calculated for mq-kafka in MQ storage: estimate disk space needs.

  4. Save and close the file.

What to do next

Your Analytics configuration is complete. Proceed to Deploying the Analytics subsystem.