If you're new to Mesos

See the getting started page for more information about downloading, building, and deploying Mesos.

If you'd like to get involved or you're looking for support

See our community page for more details.

USAGE

   /weights
   /master/weights

TL;DR;

Updates weights for the specified roles.

DESCRIPTION

Returns 200 OK when the weights update was successful.

Returns 307 TEMPORARY_REDIRECT redirect to the leading master when current master is not the leader.

Returns 503 SERVICE_UNAVAILABLE if the leading master cannot be found.

PUT: Validates the request body as JSON and updates the weights for the specified roles.

AUTHENTICATION

This endpoint requires authentication iff HTTP authentication is enabled.

AUTHORIZATION

Getting weight information for a role requires that the current principal is authorized to get weights for the target role, otherwise the entry for the target role could be silently filtered. See the authorization documentation for details.