• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • On-Demand Streaming /
avatar image
Question by Ek Palmer · Aug 27, 2014 at 07:35 AM · on-demand streaming

Multiple instances sharing MediaCache

I have 2 Wowza Streaming Engine servers running (load balanced), both host a VOD Edge application that is configured to use a medicache that shares the same storeage. Generally this appears to work as expected however some files seem to be located in the cache:

2014-08-27 12:05:22 UTC comment server ERROR 500 - MediaCacheReaderCached.openInternal[movie/1709046/03BPDS.mp4] : java.io.FileNotFoundException: /mnt/VOD/previews/mediacache/00/00/00000008.media (No such file or directory)|at java.io.RandomAccessFile.open(Native Method)|at java.io.RandomAccessFile.<init>(Unknown Source)|at com.wowza.io.WowzaRandomAccessFile.<init>(WowzaRandomAccessFile.java:12)|at com.wowza.wms.mediacache.model.MediaCacheReaderCached.a(MediaCacheReaderCached.java:47)|at com.wowza.wms.mediacache.model.MediaCacheReaderCached.open(MediaCacheReaderCached.java:22)| - - - 597698.024 - - - - - - - -

which would be fine however it continues to throw the above error instead of trying to re-fetch the file from the source.

My assumption is the 2 boxes are not able to share a single cache source for some reason, which would be unfortunate, but I'd like to know if that's the case before I reconfigure.

Thx
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image

Answer by sal jefferson · Aug 27, 2014 at 08:22 AM

Hi there and welcome to the Wowza support forum.

Yes, MediaCache is capable and designed to be accessed by multiple servers.

Is it possible that you inadvertently(or deliberately) deleted the MediaCache store you are trying to access? As that is what it looks like according to the error message.

Salvadore
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ek Palmer · Aug 27, 2014 at 10:06 AM 0
Share
Hi there and welcome to the Wowza support forum.

Yes, MediaCache is capable and designed to be accessed by multiple servers.

Is it possible that you inadvertently(or deliberately) deleted the MediaCache store you are trying to access? As that is what it looks like according to the error message.

Salvadore


Thanks for the quick response.

It's good to know that I can share a single cache drive across servers, that will save me a few TBs ;-}

The MediaCache store is still active on both servers and works in many (most) cases. There are at least a few thousand videos cached and served without a problem however there are a handful that seem to be bad. One thing of note is I attempted to access the same file (movie/1709046/03BPDS.mp4) from each of the 2 servers directly and noticed that the cache filenames were different? /mnt/VOD/previews/mediacache/00/00/0000000 8.media vs /mnt/VOD/previews/mediacache/00/00/0000000 7.media

One thing I don't understand is, if the MediaCacheReaderCached can't find the cached media file why does it keep trying? If, when it failed, it went back to the source then I could (probably live with it.

Is there maybe a way I could purge an item from the cache and force it to re-fetch the source?

TTFN
avatar image

Answer by sal jefferson · Aug 27, 2014 at 09:42 AM

I believe the .media files are actually chunks, not the entire file.

Have a look at this guide:

How to purge an item from the cache (MediaCache)

Salvadore
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ek Palmer · Aug 27, 2014 at 11:59 AM 0
Share
You are correct, the .media are chunks, my bad.

I solved my problem. I fired up a test instance that was set to clear the cache on startup (unintentionally). That pretty much killed everything and forced me to reset my servers. Not the most graceful solution and I'm sure there are a couple hundred users wondering why their video stopped but it appears to have fixed the glitch so.... silver lining ;-}

Thanks for your help.
avatar image

Answer by sal jefferson · Aug 27, 2014 at 11:41 AM

Thanks for the update and glad you got it working.

Salvadore
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

multi-bitrate streaming encoding 5 Answers

test streams 4 Answers

Stream WMV on VOD 1 Answer

Codec Private Data missing 1 Answer

How to streaming a mp3 audio with HLS? 0 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges