Debugger cant connector on CloudFoundry with multiple horizontal instances

0
Hi there, We are trying to get Mendix running on CloudFoundry with multiple instances, zo we have enough resources to handle all the traffic. It seems everything is working properly  except connecting with the debugger to the environment. When trying to connect to https://[appurl]/debugger and tapping on the connect button, doesn’t do anything. When you check the logging you’ll see: Debugging session started from [Source-IP: 127.0.0.1, X-Forwarded-For: xxx.xxx.xxx.xxx, User-Agent: Mendix Modeler 7.23.4]. Is anyone familiar to this? Wouter.  
asked
2 answers
0

Don't think this is possible. You first have to scale down to one instance. See https://docs.mendix.com/howto/monitoring-troubleshooting/debug-microflows-remotely

 

The debugger supports only debugging of single-instance environments. Multi-instance environments need to be scaled down to one instance before the debugger can be used. See Scaling Your Environment in Mendix Cloud v4 for more information.

answered
0

Hello Wouter, debugging multi-instance apps is not supported for Mendix Cloud. On Github you mention “because we see some strange activities when running in this mode....”.  Can you describe that strange activities result in? 

In general, make sure you have proper logging in your system as well to follow the process. Each request can be sent to a different instance because CloudFoundry will balance the requests over all instances running, so you’re never sure which instance gets the request. Any state you need, will need to be synced via the database.
To continue reasoning about possible causes, it would also be good to know if you run on Mendix Cloud and which login type you use (e.g. are you using Mendix AppCloudServices).

 

answered