# Restream from CDN, how to synch multiple servers?

**URL:** <https://community.wowza.com/t/restream-from-cdn-how-to-synch-multiple-servers/462>\
**Category:** Wowza Streaming Engine\
**Created:** [September 23, 2013, 9:43am UTC](https://community.wowza.com/t/restream-from-cdn-how-to-synch-multiple-servers/462 "2013-09-23T09:43:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [September 23, 2013, 9:43am UTC](https://community.wowza.com/t/restream-from-cdn-how-to-synch-multiple-servers/462/1 "2013-09-23T09:43:43Z")

</div>

I have the task of restreaming a RTMP stream that exists on a CDN. We currently pull the stream with streammanager and then make it available as HLS. However, we have multi-server environment and would like to build in some redundancy on the mechanism which pulls and segments.

If we were to use two origins ( which is the normal approach) then each origin produces

1. differently named .ts files

2. splits the segments at different keyframes.

W are using the HTTP cache origin feature to remove the ?wowzasessionid so that the resultant segments can be CDN cached in return.

Is there a way of synching and asking for similar names across the origins or another way to build redundancy?

Thanks,

Joe

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [September 23, 2013, 12:29pm UTC](https://community.wowza.com/t/restream-from-cdn-how-to-synch-multiple-servers/462/2 "2013-09-23T12:29:38Z")

</div>

Joe,

There is nothing built-in to Wowza to sync servers in this way. You can configure primary and backup origins using pipe delimited urls in your .stream file, but the failover happens when a client connects, and this is not going to work for HTTPOrigin server because clients playback the CDN cache not from Wowza.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 6, 2013, 7:40pm UTC](https://community.wowza.com/t/restream-from-cdn-how-to-synch-multiple-servers/462/3 "2013-10-06T19:40:38Z")

</div>

Joe,

You can sync chunks from the same source in two servers using the Application.xml /LiveStreamPacketizer cupertinoCalculateChunkIDBasedOnTimecode Property

```auto
		<Property>
		    <Name>cupertinoCalculateChunkIDBasedOnTimecode </Name>
		    <Type>Boolean</Type>
		    <Value>true</Value>
		</Property>

```

Richard

---

<div class="post-metadata">

**Author:** ![Chris\_Williams1](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@Chris\_Williams1](https://community.wowza.com/u/Chris_Williams1)\
**Post date:** [November 8, 2013, 4:36pm UTC](https://community.wowza.com/t/restream-from-cdn-how-to-synch-multiple-servers/462/4 "2013-11-08T16:36:04Z")

</div>

> Joe,
> 
> You can sync chunks from the same source in two servers using the Application.xml /LiveStreamPacketizer cupertinoCalculateChunkIDBasedOnTimecode Property
> 
> ```auto
> <Property>
> <Name>cupertinoCalculateChunkIDBasedOnTimecode </Name>
> <Type>Boolean</Type>
> <Value>true</Value>
> </Property>
> 
> ```
> 
> Richard

I’ve been trying to replicate this all day with no joy - I’ve added it into the /conf/livecf/Application.xml file from the new(ish) CloudFront distribution packages and it’s not creating the chunk Id based on timestamp - which is a problem

Any pointers would be wonderful thanks
