Currently each host maintains their own sequencing. In case of HA, this will not work. We need to have distributed sequence generator. All server in HA will use it to get incremental sequence.
One good option is to use ZK PERSISTENT_SEQUENTIAL, other options is to use Database sequence generator (not sure if all DB provides).
There are few other discussed @