<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is it possible to distribute different renditions of a video to different nuxeo instances in a cluster setup? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-distribute-different-renditions-of-a-video-to/m-p/315107#M2108</link>
    <description>&lt;P&gt;I have setup a cluster system on my local where I have three nuxeo instances. Out of the three instances, one is the interactive node(or producer node), from where I am uploading video, and the other two nodes(consumer node) are dedicated for video conversions. I have setup kafka, clustering, shared repository for binaries, and stream work manager for all this.&lt;/P&gt;
&lt;P&gt;What I want is when I upload a video on the producer node, and if 4 automatic conversions are setup, then 2 of the conversions must happen on consumer node 1 and the other 2 conversion on the other consumer node.&lt;/P&gt;
&lt;P&gt;I have contributed variants of the extensions shown below for each of the nodes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.video.service.VideoService"  point="videoConversions"&amp;gt;      
&amp;lt;videoConversion name="MP4 480p" converter="convertToMP4" height="480" enabled = "true" rendition="true"/&amp;gt;  
&amp;lt;videoConversion name="MP4 360p" converter="convertToMP4" height="360" enabled = "true" rendition="true"/&amp;gt;    
&amp;lt;videoConversion name="MP4 720p" converter="convertToMP4" height="720" enabled = "true" rendition="true"/&amp;gt;    
&amp;lt;videoConversion name="MP4 1080p" converter="convertToMP4" height="1080" enabled = "true" rendition="true"/&amp;gt;    
&amp;lt;/extension&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.video.service.VideoService"         point="automaticVideoConversions"&amp;gt;   
 &amp;lt;automaticVideoConversion name="MP4 480p" enabled = "true" order="0"/&amp;gt;  
  &amp;lt;automaticVideoConversion name="MP4 360p" enabled = "true" order="0"/&amp;gt; 
 &amp;lt;automaticVideoConversion name="MP4 720p" enabled = "true" order="0"/&amp;gt;  
&amp;lt;automaticVideoConversion name="MP4 1080p" enabled = "true" order="0"/&amp;gt;

&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The producer node has all of the automatic video conversions enabled, where as the consumer 1 has the first two enabled and the consumer 2 has the last two enabled.&lt;/P&gt;
&lt;P&gt;Kafka Settings: The producer node has only producer configuration while the two consumer nodes have both producer and consumer kafka settings as shown below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.runtime.stream.kafka.service" point="kafkaConfig"&amp;gt;    
&amp;lt;kafkaConfig name="default" zkServers="localhost:2181" topicPrefix="nuxeo-"&amp;gt;        
&amp;lt;!-- Both producer and consumer settings are required for consumer instance--&amp;gt;        
&amp;lt;producer&amp;gt;            
	&amp;lt;property name="bootstrap.servers"&amp;gt;localhost:9092&amp;lt;/property&amp;gt;        
&amp;lt;/producer&amp;gt;       
&amp;lt;consumer&amp;gt;            
&amp;lt;property name="bootstrap.servers"&amp;gt;localhost:9092&amp;lt;/property&amp;gt;            
&amp;lt;property name="request.timeout.ms"&amp;gt;65000&amp;lt;/property&amp;gt;           
 &amp;lt;property name="max.poll.interval.ms"&amp;gt;3600000&amp;lt;/property&amp;gt;            
&amp;lt;property name="session.timeout.ms"&amp;gt;20000&amp;lt;/property&amp;gt;            
&amp;lt;property name="heartbeat.interval.ms"&amp;gt;1000&amp;lt;/property&amp;gt;           
 &amp;lt;property name="max.poll.records"&amp;gt;50&amp;lt;/property&amp;gt;       
 &amp;lt;/consumer&amp;gt;     
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As per my testing, the conversion work was picked up by the consumer 1 but not consumer 2, and consumer two could not create the other two renditions which were not enabled. Is the conversion work, i.e. creating 4 renditions of a video, queued as a single work? How can I distribute these tasks among other worker nodes?&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 10:04:30 GMT</pubDate>
    <dc:creator>Ritesh_Kumar</dc:creator>
    <dc:date>2019-05-31T10:04:30Z</dc:date>
    <item>
      <title>Is it possible to distribute different renditions of a video to different nuxeo instances in a cluster setup?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-distribute-different-renditions-of-a-video-to/m-p/315107#M2108</link>
      <description>&lt;P&gt;I have setup a cluster system on my local where I have three nuxeo instances. Out of the three instances, one is the interactive node(or producer node), from where I am uploading video, and the other two nodes(consumer node) are dedicated for video conversions. I have setup kafka, clustering, shared repository for binaries, and stream work manager for all this.&lt;/P&gt;
&lt;P&gt;What I want is when I upload a video on the producer node, and if 4 automatic conversions are setup, then 2 of the conversions must happen on consumer node 1 and the other 2 conversion on the other consumer node.&lt;/P&gt;
&lt;P&gt;I have contributed variants of the extensions shown below for each of the nodes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.video.service.VideoService"  point="videoConversions"&amp;gt;      
&amp;lt;videoConversion name="MP4 480p" converter="convertToMP4" height="480" enabled = "true" rendition="true"/&amp;gt;  
&amp;lt;videoConversion name="MP4 360p" converter="convertToMP4" height="360" enabled = "true" rendition="true"/&amp;gt;    
&amp;lt;videoConversion name="MP4 720p" converter="convertToMP4" height="720" enabled = "true" rendition="true"/&amp;gt;    
&amp;lt;videoConversion name="MP4 1080p" converter="convertToMP4" height="1080" enabled = "true" rendition="true"/&amp;gt;    
&amp;lt;/extension&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.video.service.VideoService"         point="automaticVideoConversions"&amp;gt;   
 &amp;lt;automaticVideoConversion name="MP4 480p" enabled = "true" order="0"/&amp;gt;  
  &amp;lt;automaticVideoConversion name="MP4 360p" enabled = "true" order="0"/&amp;gt; 
 &amp;lt;automaticVideoConversion name="MP4 720p" enabled = "true" order="0"/&amp;gt;  
&amp;lt;automaticVideoConversion name="MP4 1080p" enabled = "true" order="0"/&amp;gt;

&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The producer node has all of the automatic video conversions enabled, where as the consumer 1 has the first two enabled and the consumer 2 has the last two enabled.&lt;/P&gt;
&lt;P&gt;Kafka Settings: The producer node has only producer configuration while the two consumer nodes have both producer and consumer kafka settings as shown below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.runtime.stream.kafka.service" point="kafkaConfig"&amp;gt;    
&amp;lt;kafkaConfig name="default" zkServers="localhost:2181" topicPrefix="nuxeo-"&amp;gt;        
&amp;lt;!-- Both producer and consumer settings are required for consumer instance--&amp;gt;        
&amp;lt;producer&amp;gt;            
	&amp;lt;property name="bootstrap.servers"&amp;gt;localhost:9092&amp;lt;/property&amp;gt;        
&amp;lt;/producer&amp;gt;       
&amp;lt;consumer&amp;gt;            
&amp;lt;property name="bootstrap.servers"&amp;gt;localhost:9092&amp;lt;/property&amp;gt;            
&amp;lt;property name="request.timeout.ms"&amp;gt;65000&amp;lt;/property&amp;gt;           
 &amp;lt;property name="max.poll.interval.ms"&amp;gt;3600000&amp;lt;/property&amp;gt;            
&amp;lt;property name="session.timeout.ms"&amp;gt;20000&amp;lt;/property&amp;gt;            
&amp;lt;property name="heartbeat.interval.ms"&amp;gt;1000&amp;lt;/property&amp;gt;           
 &amp;lt;property name="max.poll.records"&amp;gt;50&amp;lt;/property&amp;gt;       
 &amp;lt;/consumer&amp;gt;     
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As per my testing, the conversion work was picked up by the consumer 1 but not consumer 2, and consumer two could not create the other two renditions which were not enabled. Is the conversion work, i.e. creating 4 renditions of a video, queued as a single work? How can I distribute these tasks among other worker nodes?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 10:04:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-it-possible-to-distribute-different-renditions-of-a-video-to/m-p/315107#M2108</guid>
      <dc:creator>Ritesh_Kumar</dc:creator>
      <dc:date>2019-05-31T10:04:30Z</dc:date>
    </item>
  </channel>
</rss>

