Ryan Blue created NIFI-290:
------------------------------
Summary: Add example configuration to distributed cache docs
Key: NIFI-290
URL: https://issues.apache.org/jira/browse/NIFI-290
Project: Apache NiFi
Issue Type: Bug
Components: Documentation & Website
Affects Versions: 0.0.1
Reporter: Ryan Blue
>From the current docs, it was a little unclear how to set up a distributed
>cache service in controller-services.xml. I figured it out from looking at the
>example for the SSL service, but an example XML snippet would be useful for
>any controller service.
Here's the one I ended up getting to work:
{code:xml}
<services>
<service>
<identifier>cache-client</identifier>
<class>org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService</class>
<property name="Server Hostname">localhost</property>
<property name="Server Port">4557</property>
<property name="Communications Timeout">30 secs</property>
</service>
<service>
<identifier>cache-server</identifier>
<class>org.apache.nifi.distributed.cache.server.map.DistributedMapCacheServer</class>
<property name="Port">4557</property>
<property name="Maximum Cache Entries">10000</property>
<property name="Eviction Strategy">Least Recently Used</property>
</service>
</services>
{code}
It would also be helpful to have the same paragraph about adding services to
`controller-services.xml`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)