# Multiple Wowza servers Single application, conf, content directory on NAS

**URL:** https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031
**Category:** Wowza Streaming Engine
**Created:** [August 13, 2012, 9:37am UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031 "2012-08-13T09:37:45Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)
#### Post date: [August 13, 2012, 9:37am UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/1 "2012-08-13T09:37:45Z")

</div>

Hi

We are setting up a wowza farm connected to a NAS, so all wowza servers can find content on the same place.

How can we setup multiple wowza servers, but the applications, conf, and content directory for each of these reside on a NAS instead of the server itself ?

Wowza 1

Wowza 2

Wowza 3

NAS

All 3 wowza servers should be able to access the same applications of customers and same content, hence the NAS.

How can I make them all point to the same one without having to create these on each wowza server ?

Thank you

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [August 13, 2012, 4:02pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/2 "2012-08-13T16:02:29Z")

</div>

Hi

Although this is possible its not a good idea I’m afraid.

The applications directory will have some temporary data which could get overwritten by another servers temp data breaking your application.

It also means that you can’t have the same named applications for this reason as well.

Jason

---

<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: [August 13, 2012, 4:19pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/3 "2012-08-13T16:19:21Z")

</div>

You can centralize content with MediaCache which include NAS configuration:

> **[WowzaStreamingEngine\_MediaCacheUsersGuide.pdf](https://www.wowza.com/resources/WowzaStreamingEngine_MediaCacheUsersGuide.pdf)**
>
> 1306.53 KB

There is a way to centralize configuration, which is generally used for very large deployments:

[https://www.wowza.com/docs/how-to-get-central-configuration-addon-simplify-multiple-server-deployments](https://www.wowza.com/docs/how-to-get-central-configuration-addon-simplify-multiple-server-deployments)

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: [August 13, 2012, 9:38pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/4 "2012-08-13T21:38:29Z")

</div>

Probably not a good idea. Take a look at this configurable method of copying after recording

[https://www.wowza.com/docs/how-to-move-recordings-from-live-streams](https://www.wowza.com/docs/how-to-move-recordings-from-live-streams)

For more control there is this API:

[https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams](https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams)

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: [August 13, 2012, 9:45pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/5 "2012-08-13T21:45:59Z")

</div>

MediaCache is only for vod streaming. Once you move the recording there it is available for vod. But for the live streams you need to use application configured for live streaming

Richard

---

<div class="post-metadata">

### Author: ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)
#### Post date: [August 13, 2012, 11:04am UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/6 "2012-08-13T11:04:54Z")

</div>

ill take a look at those, thank you.

Hmm, if applications cannot be served centrally, how do people usually go about this? You create applications manually in all the servers, or do you do like an rsync or something ?

Looking at the last post here by Richard [https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache)

It looks like we can play a file frmo any wowza server, without having to define any application as long as a http server can access the file on a NAS. Am i correct in assuming this?

While this scenario works for the playback, what about live-record type things, can we use MediaCache for that as well to write to that http available NAS ?

---

<div class="post-metadata">

### Author: ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)
#### Post date: [August 13, 2012, 3:34pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/7 "2012-08-13T15:34:37Z")

</div>

Got the MediaCache working properly to play vod off a nas - thanks Richard.

Is it possible to use this same thing to implement LiveStreamRecord 3.0 and record live streams directly on the nas as well ?

Is it possible to get the source for mediacache ?

Is it possible then to perhaps implement something like

class StreamListener implements IMediaStreamActionNotify3 {

public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {

into the mediacache and since its at Server.xml, no other application would be required except mediacache and we could implement an onpublish within it?

---

<div class="post-metadata">

### Author: ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)
#### Post date: [August 13, 2012, 3:41pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/8 "2012-08-13T15:41:49Z")

</div>

Hi Richard,

I have implemented that portion already where I move files after recording and can change the output directory based on params coming in. Just wondering if mediacache was also a viable option (that way we dont have to create any applications or confs for the customers and can have all livestreams point to the same mediacache application and have an onpublish to trap ).

But if its not a good idea then nevermind.

updated my earlier post too while you replied 😃

---

<div class="post-metadata">

### Author: ![Arpan\_Darivemula](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Arpan\_Darivemula](https://community.wowza.com/u/Arpan_Darivemula)
#### Post date: [August 13, 2012, 3:46pm UTC](https://community.wowza.com/t/multiple-wowza-servers-single-application-conf-content-directory-on-nas/39031/9 "2012-08-13T15:46:34Z")

</div>

ok thank you
