Never used it, but I doubt swarm has anything to do with application state; only about making sure the right configuration and quantity of containers is running somewhere on the cluster.