Installing Redis on Red Hat OpenShift
Redis is a super-fast in-memory database. Redis provides a key-value store with different data structures, such as lists, for the applications to use. In our case, the video generates a lot of frames and our application will infer these frames and keep a count of frames/images with faces. So, we decided to use Redis to keep an atomic counter.
OpenShift will host the Redis server. You will find the complete non-production Redis setup in the chapter7/redis/redis-server.yaml
file. Open the file and paste it into the OpenShift GUI while you are in the face-detection
project. Hit the Create button and you will have a running Redis cluster on your platform. The following screenshot shows redis-server.yaml
in the OpenShift UI.
Figure 7.11 – Installing the Redis server
Validate that the server is running by checking the services section of the OpenShift console within the wines
project, identify the Pods, and validate...