简体   繁体   中英

Google App Engine /_ah/health

I've set up my Node.js app to log any request that returns 404. Like this:

console.error("404: " + req.url);

Now when debugging other issue, I found out that my log is flooded with these:

404: /_ah/health
404: /_ah/health
404: /_ah/health

There are countless number of them and they aren't even 1ms apart.

What are they? Who sent them? Is it from GAE? Some sort of health check polling or something? Should I serve that URL? What should I serve in that URL?

For example when using nodejs with express you can do something like:

app.get('/_ah/health', function(req, res) {
  res.type('text').send('ok');
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM