You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/21 08:44:25 UTC

[GitHub] markusthoemmes commented on a change in pull request #2372: set kafka retention

markusthoemmes commented on a change in pull request #2372: set kafka retention
URL: https://github.com/apache/incubator-openwhisk/pull/2372#discussion_r123187183
 
 

 ##########
 File path: ansible/group_vars/all
 ##########
 @@ -114,6 +114,17 @@ kafka:
   ras:
     port: 9093
 
+# Kafka retention for topics : completed, health and invoker
+kafka_topic_completed_logRetentionBytes: 1073741824
+kafka_topic_completed_logRetentionMS: 3600000
+kafka_topic_completed_logSegmentBytes: 536870912
+kafka_topic_health_logRetentionBytes: 1073741824
+kafka_topic_health_logRetentionMS: 3600000
+kafka_topic_health_logSegmentBytes: 536870912
+kafka_topic_invoker_logRetentionBytes: 1073741824
+kafka_topic_invoker_logRetentionMS: 172800000
+kafka_topic_invoker_logSegmentBytes: 536870912
 
 Review comment:
   Why don't we put these into a dictionary rather than a flat map of properties?
   
   ```
   kafka:
     topics:
       completed:
           segmentBytes: 536870912
           retentionBytes: 1073741824
           retentionMs: 3600000
   ...
   ```
   
   That's imho much more readable. If we want those to be overridable, we can use a flat property like a above as the default:
   
   ```
   kafka:
     topics:
       completed:
           segmentBytes: "{{ kafka_topics_completed_retentionBytes | default(536870912) }}"
           retentionBytes: 1073741824
           retentionMs: 3600000
   ...
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services