I followed the Nodejs tutorial for App Engine Flexible @: https://cloud.google.com/nodejs/getting-started/hello-world
Having successfully deployed and tested the tutorial, I slightly modified the code for the experiment and successfully deployed it ... and then left it working, since it was a testing environment (not public).
A month later, I received from Google an account worth more than $ 370!
In the details of the transaction, I see the following:
October 1–31, 2017 RAM for the Flex App Engine instance: 5948.774 Gibibyte-Hours ([MYPROJECT]) $ 42.24
October 1–31, 2017 Base hours for an App Engine Flex instance: 5,948.774 hours ([MYPROJECT]) $ 312.91
How did this testing environment with almost 0 requests take about 6,000 hours of resources? In the worst case scenario, I would suggest that 720 hours of full-time work during the month at $ 0.05 per hour would cost me ~ $ 40. https://cloud.google.com/appengine/pricing
Can anyone help shed some light on this? I could not figure out why there were so many resources?
Thanks for the help!
For more data, this is traffic for the last month (mainly 0):
And instance data
UPDATE: note that I made one modification to package.json: I added nodemon as a dependency and added it as part of my "nmp start" script. Although I doubt this explains the 6,000 hours of resources:
"scripts": {
"deploy": "gcloud app deploy",
"start": "nodemon app.js",
"dev": "nodemon app js",
"lint": "samples lint",
"pretest": "npm run lint",
"system-test": "samples test app",
"test": "npm run system-test",
"e2e-test": "samples test deploy"
},
App.yaml (by default - no change from the tutorial)
runtime: nodejs
env: flex