<p>I want to create more than one cache using helm, my yaml is the following</p>
<pre class="lang-yaml prettyprint-override"><code>deploy:
  infinispan:
    cacheContainer:
      distributedCache:
          - name: &quot;mycache&quot;
            mode: &quot;SYNC&quot;
            owners: &quot;2&quot;
            segments: &quot;256&quot;
            capacityFactor: &quot;1.0&quot;
            statistics: &quot;false&quot;
            encoding:
              mediaType: &quot;application/x-protostream&quot;
            expiration:
              lifespan: &quot;3000&quot;
              maxIdle: &quot;1001&quot;
            memory:
              maxCount: &quot;1000000&quot;
              whenFull: &quot;REMOVE&quot;
            partitionHandling:
              whenSplit: &quot;ALLOW_READ_WRITES&quot;
              mergePolicy: &quot;PREFERRED_NON_NULL&quot;
          - name: &quot;mycache1&quot;
            mode: &quot;SYNC&quot;
            owners: &quot;2&quot;
            segments: &quot;256&quot;
            capacityFactor: &quot;1.0&quot;
            statistics: &quot;false&quot;
            encoding:
              mediaType: &quot;application/x-protostream&quot;
            expiration:
              lifespan: &quot;3000&quot;
              maxIdle: &quot;1001&quot;
            memory:
              maxCount: &quot;1000000&quot;
              whenFull: &quot;REMOVE&quot;
            partitionHandling:
              whenSplit: &quot;ALLOW_READ_WRITES&quot;
              mergePolicy: &quot;PREFERRED_NON_NULL&quot;
</code></pre>
<p>when when i install the helm i get the following error</p>
<pre class="lang-sh prettyprint-override"><code> Red Hat Data Grid Server failed to start org.infinispan.commons.configuration.io.ConfigurationReaderException: Missing required attribute(s): name[86,1]
</code></pre>
<p>I dont know if is possible to create more than one cache. I have followed the following documentation <a href="https://access.redhat.com/documentation/en-us/red_hat_data_grid/8.3/html/building_and_deploying_data_grid_clusters_with_helm/configuring-servers" rel="nofollow noreferrer">https://access.redhat.com/documentation/en-us/red_hat_data_grid/8.3/html/building_and_deploying_data_grid_clusters_with_helm/configuring-servers</a></p>
<p>Thanks for your help.</p>
<p>Alexis</p>

Alexis C. C.
<p>Yes it's possible to define multiple caches. You have to use the format:</p>
<pre class="lang-yaml prettyprint-override"><code>deploy:
  infinispan:
    cacheContainer:
      &lt;1st-cache-name&gt;:
        &lt;cache-type&gt;:
          &lt;cache-definition&gt;:
            ...
      &lt;2nd-cache-name&gt;:
        &lt;cache-type&gt;:
          &lt;cache-definition&gt;:
</code></pre>
<p>So in your case that will be:</p>
<pre class="lang-yaml prettyprint-override"><code>deploy:
  infinispan:
    cacheContainer:
      mycache: # mycache definition follows
        distributedCache:
          mode: &quot;SYNC&quot;
          owners: &quot;2&quot;
          segments: &quot;256&quot;
          capacityFactor: &quot;1.0&quot;
          statistics: &quot;false&quot;
          encoding:
            mediaType: &quot;application/x-protostream&quot;
          expiration:
            lifespan: &quot;3000&quot;
            maxIdle: &quot;1001&quot;
          memory:
            maxCount: &quot;1000000&quot;
            whenFull: &quot;REMOVE&quot;
          partitionHandling:
            whenSplit: &quot;ALLOW_READ_WRITES&quot;
            mergePolicy: &quot;PREFERRED_NON_NULL&quot;
      mycache1: # mycache1 definition follows
        distributedCache:
          mode: &quot;SYNC&quot;
          owners: &quot;2&quot;
          segments: &quot;256&quot;
          capacityFactor: &quot;1.0&quot;
          statistics: &quot;false&quot;
          encoding:
            mediaType: &quot;application/x-protostream&quot;
          expiration:
            lifespan: &quot;3000&quot;
            maxIdle: &quot;1001&quot;
          memory:
            maxCount: &quot;1000000&quot;
            whenFull: &quot;REMOVE&quot;
          partitionHandling:
            whenSplit: &quot;ALLOW_READ_WRITES&quot;
            mergePolicy: &quot;PREFERRED_NON_NULL&quot;
</code></pre>
<p>See <a href="https://infinispan.org/docs/infinispan-operator/2.2.x/operator.html#infinispan-configuration_configuring-clusters" rel="nofollow noreferrer">here</a> for an example of how to define multiple caches in json/xml/yaml formats.</p>
