Learn how to use logging to track available space in Media Cache stores. Media Cache is a built-in caching mechanism included with Wowza Streaming Engine™ media server software that increases the scalability of video-on-demand (VOD) streaming.
Note: Media Cache store logging is available in Wowza Streaming Engine 4.8.8.01 and later.
About Media Cache store logging
When Media Cache store logging is enabled, a message similar to the following is added to the wowzastreamingengine_access.log file each time a new item enters the store.
MediaCacheItemBase.getStoreItem[AWS S3] Item added to store: mediaName:amazons3/sample.mp4 length:58958409 store:{name:"default",fullness:0.55%,currSize:58961505,maxSize:10737418240,itemsInStore:1}
If the store is full or there isn't enough space left, the following message is displayed:
MediaCacheItemBase.getStoreItem[AWS S3] No room for item in store(s): mediaName:amazons3/sample.mp4 length:58958409
Enable store logging in Wowza Streaming Engine Manager
- In Wowza Streaming Engine Manager, click the Server tab, and then click Media Cache in the contents panel.
- On the Properties tab, click Custom in the Quick Links bar.
- In the Custom area, click Edit.
- Click Add Custom Property, specify the following settings in the Add Custom Property dialog box, and then click Add:
- Path – Select /Root/MediaCache.
- Name – Enter logStoreCapacityInterval.
- Type – Select Integer.
- Value – Enter a value, in milliseconds, to specify how often the store should be checked.
- Click Save, and then restart the server when prompted to apply the changes.
Enable store logging in XML
- Navigate to [install-dir]/conf/ and open MediaCache.xml in a text editor.
- Add the logStoreCapacityInterval property to the <MediaCache>/<Properties> container element.
<Property> <Name>logStoreCapacityInterval</Name> <Value>10000</Value> <Type>Integer</Type> </Property>
- Restart Wowza Streaming Engine to apply the changes.