snapshot_taking_interval_ms=3000
snapshot_taking_attempts=30
{
"exception": "com.flashphoner.rest.server.exception.InternalErrorException",
"reason": "com.flashphoner.rest.server.exception.InternalErrorException, Internal Server Error, Snapshot response timeout, ts: 1648354288600, path: /rest-api/stream/snapshot",
"path": "/rest-api/stream/snapshot",
"error": "Internal Server Error",
"message": "Snapshot response timeout",
"timestamp": 1648354288600,
"status": 500
}
Yes, the parameters are applied to REST API query.Good day, does this settings help in case of POST request to /rest-api/stream/snapshot
The CPU is not a bottleneck in this case, but disk I/O is. You can set up RAM drive and assign snapshots dir to it:We have like 5 streams(720p) and 5 streams(320p) on 10cpu 64gb ram machine, we don't use transcoding, is the server to weak?
snapshot_auto_dir=/ramdrive
sudo mount -t tmpfs -o rw,size=2G tmpfs /mnt/snapshots
sudo docker run \
-e PASSWORD=PASSWORD\
-e LICENSE=LICENSE \
-e WCS_FD_LIMIT=100000 \
-e WCS_NON_ROOT=false \
-v /usr/local/wcs/bin/setenv.sh:/usr/local/FlashphonerWebCallServer/bin/setenv.sh \
-v /usr/local/wcs/conf/flashphoner.properties:/usr/local/FlashphonerWebCallServer/conf/flashphoner.properties \
-v /usr/local/wcs/conf/database.yml:/usr/local/FlashphonerWebCallServer/conf/database.yml \
-v /usr/local/wcs/conf/wss.jks:/usr/local/FlashphonerWebCallServer/conf/wss.jks \
-v /usr/local/wcs/conf/wcs-core.properties:/usr/local/FlashphonerWebCallServer/conf/wcs-core.properties \
-v /usr/local/wcs/bin/on_record_hook.sh:/usr/local/FlashphonerWebCallServer/bin/on_record_hook.sh \
-v /usr/local/wcs/logs:/usr/local/FlashphonerWebCallServer/logs \
-v /usr/local/wcs/hls:/usr/local/FlashphonerWebCallServer/hls \
-v /usr/local/wcs/media:/usr/local/FlashphonerWebCallServer/media \
-v /usr/local/wcs/records:/usr/local/FlashphonerWebCallServer/records \
-v /mnt/snapshots:/usr/local/FlashphonerWebCallServer/snapshots \
--restart unless-stopped \
--net host \
--name wcs -d flashphoner/webcallserver:5.2.1146
This should work in any environment.Does it work with docker? I still get timeout sometimes after this changes:
snapshot_taking_interval_ms=6000