Skip to content

[serve] Add telemetry for lightweight config updates - #34039

Merged
edoakes merged 3 commits into
ray-project:masterfrom
zcin:lightweight-telemetry
Apr 4, 2023
Merged

[serve] Add telemetry for lightweight config updates#34039
edoakes merged 3 commits into
ray-project:masterfrom
zcin:lightweight-telemetry

Conversation

@zcin

@zcin zcin commented Apr 4, 2023

Copy link
Copy Markdown
Contributor

Why are these changes needed?

This change adds new telemetry to get more insight into if and how users are using the lightweight config updates feature of Serve. It adds the telemetry tags:

  • SERVE_NUM_REPLICAS_UPDATED: whether num_replicas was updated (without any heavyweight option updated)
  • SERVE_USER_CONFIG_UPDATED: whether user_config was updated (without any heavyweight option updated)
  • SERVE_AUTOSCALING_CONFIG_UPDATED: whether autoscaling_config was updated (without any heavyweight option updated)

These values are set to True as long as the user uses the feature at least once for any deployment in any application on the cluster.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

zcin added 2 commits April 3, 2023 22:17
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
@zcin
zcin marked this pull request as ready for review April 4, 2023 14:20
@zcin
zcin requested review from pcmoritz and thomasdesr as code owners April 4, 2023 14:20

@edoakes edoakes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit, otherwise LGTM, do we need approval from anyone else on this?

Comment thread src/ray/protobuf/usage.proto Outdated
Comment on lines +63 to +68
// Whether num_replicas changed as a lightweight config update
SERVE_NUM_REPLICAS_UPDATED = 15;
// Whether user_config changed as a lightweight config update
SERVE_USER_CONFIG_UPDATED = 16;
// Whether autoscaling_config changed as a lightweight config update
SERVE_AUTOSCALING_CONFIG_UPDATED = 17;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Whether num_replicas changed as a lightweight config update
SERVE_NUM_REPLICAS_UPDATED = 15;
// Whether user_config changed as a lightweight config update
SERVE_USER_CONFIG_UPDATED = 16;
// Whether autoscaling_config changed as a lightweight config update
SERVE_AUTOSCALING_CONFIG_UPDATED = 17;
// Whether num_replicas changed as a lightweight config update
SERVE_NUM_REPLICAS_LIGHTWEIGHT_UPDATED = 15;
// Whether user_config changed as a lightweight config update
SERVE_USER_CONFIG_LIGHTWEIGHT_UPDATED = 16;
// Whether autoscaling_config changed as a lightweight config update
SERVE_AUTOSCALING_CONFIG_LIGHTWEIGHT_UPDATED = 17;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we need approval from either @pcmoritz or @thomasdesr.

Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>

@thomasdesr thomasdesr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Telemetry Boop

@zcin

zcin commented Apr 4, 2023

Copy link
Copy Markdown
Contributor Author

Failures unrelated. @edoakes ready for merge

@zhe-thoughts zhe-thoughts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for cherry picking

@edoakes
edoakes merged commit b4938b2 into ray-project:master Apr 4, 2023
@zcin
zcin deleted the lightweight-telemetry branch April 5, 2023 04:33
zcin added a commit to zcin/ray that referenced this pull request Apr 5, 2023
This change adds new telemetry to get more insight into if and how users are using the lightweight config updates feature of Serve. It adds the telemetry tags:
- `SERVE_NUM_REPLICAS_UPDATED`: whether `num_replicas` was updated (without any heavyweight option updated)
- `SERVE_USER_CONFIG_UPDATED`: whether `user_config` was updated (without any heavyweight option updated)
- `SERVE_AUTOSCALING_CONFIG_UPDATED`: whether `autoscaling_config` was updated (without any heavyweight option updated)

These values are set to True as long as the user uses the feature at least once for any deployment in any application on the cluster.

Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
clarng pushed a commit that referenced this pull request Apr 5, 2023
This change adds new telemetry to get more insight into if and how users are using the lightweight config updates feature of Serve. It adds the telemetry tags:
- `SERVE_NUM_REPLICAS_UPDATED`: whether `num_replicas` was updated (without any heavyweight option updated)
- `SERVE_USER_CONFIG_UPDATED`: whether `user_config` was updated (without any heavyweight option updated)
- `SERVE_AUTOSCALING_CONFIG_UPDATED`: whether `autoscaling_config` was updated (without any heavyweight option updated)

These values are set to True as long as the user uses the feature at least once for any deployment in any application on the cluster.

Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
This change adds new telemetry to get more insight into if and how users are using the lightweight config updates feature of Serve. It adds the telemetry tags:
- `SERVE_NUM_REPLICAS_UPDATED`: whether `num_replicas` was updated (without any heavyweight option updated)
- `SERVE_USER_CONFIG_UPDATED`: whether `user_config` was updated (without any heavyweight option updated)
- `SERVE_AUTOSCALING_CONFIG_UPDATED`: whether `autoscaling_config` was updated (without any heavyweight option updated)

These values are set to True as long as the user uses the feature at least once for any deployment in any application on the cluster.

Signed-off-by: elliottower <elliot@elliottower.com>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
This change adds new telemetry to get more insight into if and how users are using the lightweight config updates feature of Serve. It adds the telemetry tags:
- `SERVE_NUM_REPLICAS_UPDATED`: whether `num_replicas` was updated (without any heavyweight option updated)
- `SERVE_USER_CONFIG_UPDATED`: whether `user_config` was updated (without any heavyweight option updated)
- `SERVE_AUTOSCALING_CONFIG_UPDATED`: whether `autoscaling_config` was updated (without any heavyweight option updated)

These values are set to True as long as the user uses the feature at least once for any deployment in any application on the cluster.

Signed-off-by: Jack He <jackhe2345@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants