Hi Karthik,
thank you for your reply, I will take a look into livy.
The cluster Is a n1-standard-8 with 8 vCPUs and 30 GB memory but this could change depending on the workload.
Notebooks are stored in buckets so if more power is needed I delete the cluster and create a new one with more memory or CPU.
Currently there is a problem with having more than one notebooks open even if the job is finished which is very confusing as I have to
shutdown everything except for the notebook I want to work on.
here is a scrennshot of YARN UI while two notebooks are open. The first is running and the other one has finished so the kernel is idle.

However in order for the notebook that is still running to finish I have to shutdown the second one.
Maybe it has to do with the fact that progress is still not complete?