For nginx-samples/slb directory, steps to setup:
- Place the nginx.conf in the OpenResty install directory for nginx (that is /usr/local/openresty/nginx/conf).
- Modify the upstream ecs_9020 and ecs_9024 with the IPs of the ECS nodes for S3 and Swift respectively.
- For NFS, modify the IPs in the stream context with the IPs of the ECS nodes.
- Create a “lua” directory in the OpenResty install directory for nginx (that is /usr/local/openresty/nginx/lua)
- Place the prometheus.lua script in the lua directory created in step 4.