Once the cluster created, the cluster deletes itself after 10 minutes even after changing parameter to --max-idle 60m from --max-idle 10m. Unless you changed the name of cluster with new --max-idle VALUE, parameter takes the value that you used for the first time and NOT responding to new VALUE when you recreate same cluster NEXT time. I am NOT sure this is an issue or designed that way!
Here is the code for reference:
gcloud beta dataproc clusters create mycluster --enable-component-gateway --bucket mybucket --region us-west1 --subnet default --zone us-west1-a --master-machine-type n1-standard-1 --master-boot-disk-size 500 --num-workers 10 --max-idle 60m --max-age 1000 --worker-machine-type n1-standard-1 --worker-boot-disk-size 500 --image-version 1.4-debian9 --optional-components ANACONDA,JUPYTER,ZEPPELIN --scopes '
https://www.googleapis.com/auth/cloud-platform' --project myproject.
Your response would be appreciated. Thank you.
Regards.