I want to run mongos (that’s the mongo route server named mongos, not a malformed plural, but I digress) on the server that’s hosting our application layer. I need to run as a Windows service and I have poured over the directions on 10Gen’s website. However, the tool set they recommend (Windows Resource Kit) is for Server 2003 (and prior) and is not recommended for use on 64-bit platforms. All my application servers are 64-bit 2008r2.
The documentation implies that mongos as a Windows service may be supported beyond v1.8.1. Has anyone had success deploying mongos as a Windows service on a 2008 server? If there is no native support, is there another version of the resource kit, or did you roll your own service wrapper?
Thanks for any information you may have.
-Seth
The request to add built-in support for running mongos.exe as a Windows service (the way you can run mongod.exe as a service) is outstanding as https://jira.mongodb.org/browse/SERVER-1589 — you can vote for it to show your support.
srvany.exe does work in Windows Server 2008 R2 using the directions you referenced: I just tested it with MongoDB 2.0.2. The srvany.exe process is 32-bits, but it runs a 64-bit mongos.exe just fine.