You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/01/23 20:00:36 UTC
[jira] [Commented] (NIFI-290) Add example configuration to
distributed cache docs
[ https://issues.apache.org/jira/browse/NIFI-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14289736#comment-14289736 ]
ASF subversion and git services commented on NIFI-290:
------------------------------------------------------
Commit f9cfbae643d604bb52f73955941872665c7873de in incubator-nifi's branch refs/heads/develop from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git;h=f9cfbae ]
NIFI-290: applying patch from Ricky Saltzer
> 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
> Attachments: NIFI-290.patch
>
>
> 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)