def parse_pid(pid):
    """ Parse the mesos pid string,

    :param pid: pid of the form "id@ip:port"
    :type pid: str
    :returns: (id, ip, port)
    :rtype: (str, str, str)
    """
    id_, second = pid.split('@')
    ip, port = second.split(':')
    return id_, ip, port
