Snapshot timeout

wyvasi

New Member
Hello,
I am getting this warning every few times I try to get a snapshot and it returns status 500.
Can I increase the timeout or do something about this?

Code:
WARN  RestStreamController - HTTPS-pool-5-thread-347 Snapshot response timeout
 

Max

Administrator
Staff member
Good day.
The response timeout in this case is 3 seconds (fixed value). Usually, this is enough to take a stream snapshot. Please check your server configuration: for example, if you're using a minimal supported server config (1 CPU core) and trying to take 1080p stream snapshot, the CPU is not enough to do this. Or, on cloud server, if vrtual storage is used, dick I/O may be not enough for a continious stream snapshotting (for example, to snapshot every frame).
We raised the ticket WCS-3351 to add the setting for stream snapshot timeout, but strongly recommend to review server configuration at this point.
 

Max

Administrator
Staff member
Good day.
We added a maximum snapshot taking duration configuration in build 5.2.1116, by default 30 attempts to check if snapshot file is ready will be performed during 3000 ms
Code:
snapshot_taking_interval_ms=3000
snapshot_taking_attempts=30
You can expand this interval if CPU or disk I/O is not enough to take 1080p snapshots.
 
Top