markobean commented on a change in pull request #3648: NIFI-4775: Updating 
documentation and updating rocksdb version
URL: https://github.com/apache/nifi/pull/3648#discussion_r313873351
 
 

 ##########
 File path: nifi-docs/src/main/asciidoc/administration-guide.adoc
 ##########
 @@ -2477,6 +2486,112 @@ implementation.
 |`nifi.flowfile.repository.always.sync`|If set to `true`, any change to the 
repository will be synchronized to the disk, meaning that NiFi will ask the 
operating system not to cache the information. This is very expensive and can 
significantly reduce NiFi performance. However, if it is `false`, there could 
be the potential for data loss if either there is a sudden power loss or the 
operating system crashes. The default value is `false`.
 |====
 
+
+=== Volatile FlowFile Repository
+
+This implementation stores FlowFiles in memory instead of on disk.  It *will* 
result in data loss in the event of power/machine failure or a restart of NiFi. 
 To use this implementation, set  `nifi.flowfile.repository.implementation` to 
`org.apache.nifi.controller.repository.VolatileFlowFileRepository`.
+
+
+=== RocksDB FlowFile Repository
+
+This implementation makes use of the RocksDB key-value store.  It uses 
periodic synchronization to ensure that no created or received data is lost (as 
long as `nifi.flowfile.repository.rocksdb.accept.data.loss` is set `false`).  
In the event of a failure (e.g. power loss), _work_ done on FlowFiles through 
the system (i.e. routing and transformation) may still be lost.  Specifically, 
the record of these actions may be lost, reverting the affected FlowFiles to a 
previous, valid state.  From there, they will resume their path through the 
flow as normal.  This guarantee comes at the expense of a delay on operations 
that add new data to the system.  This delay is configurable (as 
`nifi.flowfile.repository.rocksdb.sync.period`), and can be tuned to the 
individual system.
+
+The configuration parameters for this repository fall in to two categories, 
"NiFi-centric" and "RocksDB-centric".  The NiFi-centric settings have to do 
with the operations of the FlowFile Repository and its interaction with NiFi.  
The RocksDB-centric settings directly correlate to settings on the underlying 
RocksDB repo.  More information on these settings can be found in the RocksDB 
documentation: https://github.com/facebook/rocksdb/wiki/RocksJava-Basics.
+
+Note: Windows users will need to ensure "Microsoft Visual C++ 2015 
Redistributable" is installed for this repository to work.  See the following 
link for more details: 
https://github.com/facebook/rocksdb/wiki/RocksJava-Basics#maven-windows.
 
 Review comment:
   Suggest changing this "note" to an indented informational block ("i" on the 
left) to be more obvious

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to