Lines Matching refs:servers
5 """This module provides utility functions to help managing servers in server
44 servers = server_models.Server.objects.filter(
48 if not servers:
57 """Find servers with given role and status.
75 def get_server_details(servers, table=False, summary=False):
76 """Get a string of given servers' details.
105 @param servers: A list of servers to get details.
109 given servers.
111 @return: A string of the information of given servers.
120 for server in servers:
127 for server in servers:
137 result += 'Roles and status of servers:\n\n'
139 servers_of_role = [s for s in servers if role in
145 servers_without_role = [s.hostname for s in servers
227 servers = get_servers(role=server_models.ServerRole.ROLE.DRONE,
229 return [s.hostname for s in servers]
281 servers = get_servers(role=server_models.ServerRole.ROLE.SHARD,
283 return [s.hostname for s in servers]
298 servers = get_servers(role=role, status=server_models.Server.STATUS.PRIMARY)
299 for server in servers: