The invention relates to the field of
clock time service, in particular to a partition enhanced
hybrid logic
clock time service method and
system under a distributed
system, and the method comprises the steps: dividing
system nodes into a plurality of independent areas, and deploying main and standby area
clock service nodes in each area; physical
clock synchronization of all districts is achieved through a hardware
clock synchronization protocol, a transaction is received, the
transaction type is judged, and a mixed logic clock
timestamp is requested from a district clock service node; based on the local physical time of the district corresponding to the district clock service node, the time reference value and the logic counter of the associated district, the district clock service node generates a mixed logic clock
timestamp of the cross-district transaction; based on the local physical time and the logic counter, the district clock service node generates a mixed logic clock
timestamp of the local transaction; and storing the mixed logic clock timestamp, and executing the transaction. The regional architecture effectively balances the
global consistency and the local performance, and the main and standby clock nodes guarantee the
high availability of the time service.