Open jimdigriz opened 1 year ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
I maintain a JupyterHub deployment on GKE for our academy classes and finally found the time to look into our billing spikes:
As you can see on some days logging gets 'excited', 20% of our bill 'excited' :)
Peeking into GCP's Log Explorer, I found all the
stdout
(and probablystderr
) of the notebooks were unexpectedly being logged:Now I probably did something stupid, though I have searched the documentation for 'notebook log' and really only found 'debugging' which is already disabled for me.
Others may also be following my steps though and being hit unnecessarily with a logging bill.
Proposed change
Highlight that "cloud bills you for everything, including logs". :)
Also that users can directly affect your bank balance in a negative way with no more than a
while True: print("hello world\n")
loop.Alternative options
If it does not exist, include an option to crank up and down the logging level for particular log sources, in particular 'notebook' not just a global level.
Suggesting documentation, or making it easer to locate, as this probably already exists and I just missed it.
Maybe change the defaults too, if it turns out it is turns out this is enabled by default.
Who would use this feature?
Everyone who does not have infinite money.
(Optional): Suggest a solution
For GCP, I have installed a log sink to
/dev/null
logs I am not interested in.Which as a
gcloud
command becomes: