With Lua you will find many examples how to interact (non-blocking) with mysql, Lua also contains a load balancer which can be adapted to loadbalance sql instances.
See also https://www.google.nl/#q=nginx+lua+mysql
---
nginx for Windows http://nginx-win.ecsds.eu/