We use iControl to manipulate node session states & pool member states from within our applications: Is it a good idea (time / resources / performance etc) to do a sync after each state change and if so which level will preserve the configuration if something caused a failover?
If you’re disabling a node on one unit, it would make sense to synchronize the change to the peer to ensure it has the same configuration in case you needed to fail over to it. If you’re only making changes to the high level configuration (the bigip.conf), you could just save that (like running a ‘b save’) and then sync the config (like running ‘b config sync’).
System.ConfigSync.save_configuration (SaveMode), where
SaveMode = SAVE_HIGH_LEVEL_CONFIG will save the configuration to /config/bigip.conf (similar to “b save”)
SaveMode = SAVE_BASE_LEVEL_CONFIG will save the configuration to /config/bigip_base.conf (similar to “b base save”)