kaltura / nginx-vod-module

NGINX-based MP4 Repackager
GNU Affero General Public License v3.0
1.99k stars 439 forks source link

vod_metadata_cache monitoring #1465

Open asaretsyan opened 1 year ago

asaretsyan commented 1 year ago

Hi,

Is there a way to monitor memory usage of vod_metadata_cache directive?

erankor commented 1 year ago

You can add a location like -

location /status {
    vod_status;
}

If you curl this location, it will return an XML with stats about cache usage, e.g. used size, total number of records, hit / miss etc. Make sure to have the vod_metadata_cache directive in some upper layer (http/server) so that it will be shared by both the location serving the media and the status location.