set_mode.cluster_spec function

Change mode of a cluster specification