How to deactivate the event log?

Is there an easy way to deactivate the event log? It’s nice to see for administrators what is going on, but I think that in most cases it is confusing for regular users. For example, there should be no need for users to see that a node didn’t match a Pod’s node affinity/selector before a scaleup is triggered correctly. Information about the maximum number of nodes, image names and where they are stored also seem to be unnecessary for regular users. The progress bar should be sufficient :slight_smile:

Try setting singleuser.events = False:

1 Like

This works, but unfortunately it also kills the progress bar progression, which is just left as an empty box. Is there a way to maintain the progress bar progression, while leaving out the written event log details? This would be an elegant solution :slight_smile:

Your suggestion is almost there, but without the progression it’s very easy to be in doubt if anything is happening at all. It seems to take an incredibly long time if a new node needs to be started without the progress bar progression.

This is the code controlling the progress display: kubespawner/spawner.py at b9fc97099ce9bf25376f68090f4fd9499b97f812 · jupyterhub/kubespawner · GitHub
You could subclass KubeSpawner and override progress() to change the returned progress information:
kubespawner/spawner.py at b9fc97099ce9bf25376f68090f4fd9499b97f812 · jupyterhub/kubespawner · GitHub

1 Like