default String getIdentity() {
        String serverId;
        try {
            serverId = InetAddress.getLocalHost().getHostName();
        } catch (UnknownHostException e) {
            serverId = System.getenv("HOSTNAME");
        }
        if (serverId == null) {
            serverId =
                    (EC2MetadataUtils.getInstanceId() == null)
                            ? System.getProperty("user.name")
                            : EC2MetadataUtils.getInstanceId();
        }
        LoggerHolder.logger.debug("Setting worker id to {}", serverId);
        return serverId;
    }
Override this method to app specific rules.

@return returns the serverId as the id of the instance that the worker is running.
client/src/main/java/com/netflix/conductor/client/worker/Worker.java