Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass logging_config to controller global logger #48790

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

mimiliaogo
Copy link
Contributor

Why are these changes needed?

Currently in serve.run the logging_config is not passed to controller. This PR add this arguments into the function call so the logging_config can be correctly specified for system-level logging.

Related issue number

Closes #48652

Example

logging_config = {"log_level": "DEBUG", "logs_dir": "./mimi_debug"}
handle: DeploymentHandle = serve.run(app, logging_config=logging_config)

Before

controller logs aren't saved in the specified logs_dir

image

After

controller logs are correctly configured

image

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 :(

@jcotant1 jcotant1 added the serve Ray Serve Related Issue label Nov 19, 2024
@akshay-anyscale akshay-anyscale requested review from a team and zcin November 20, 2024 16:51
Copy link
Contributor

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

Thanks!

@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Nov 20, 2024
@edoakes edoakes enabled auto-merge (squash) November 20, 2024 17:15
@edoakes edoakes merged commit 9a19f79 into ray-project:master Nov 20, 2024
6 checks passed
jecsand838 pushed a commit to jecsand838/ray that referenced this pull request Dec 4, 2024
## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->
Currently in serve.run the logging_config is not passed to controller.
This PR add this arguments into the function call so the logging_config
can be correctly specified for system-level logging.

## Related issue number
Closes ray-project#48652
<!-- For example: "Closes ray-project#1234" -->

### Example
```
logging_config = {"log_level": "DEBUG", "logs_dir": "./mimi_debug"}
handle: DeploymentHandle = serve.run(app, logging_config=logging_config)
```

### Before
controller logs aren't saved in the specified logs_dir

<img width="326" alt="image"
src="https://github.com/user-attachments/assets/0d316428-e7a7-48e0-8d9d-1692a3045a4a">

### After
controller logs are correctly configured

<img width="325" alt="image"
src="https://github.com/user-attachments/assets/e05aba0b-75cd-4cd4-9a92-4ef8cdd84cce">

Signed-off-by: Mimi Liao <[email protected]>
Signed-off-by: Connor Sanders <[email protected]>
dentiny pushed a commit to dentiny/ray that referenced this pull request Dec 7, 2024
## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->
Currently in serve.run the logging_config is not passed to controller.
This PR add this arguments into the function call so the logging_config
can be correctly specified for system-level logging.

## Related issue number
Closes ray-project#48652 
<!-- For example: "Closes ray-project#1234" -->


### Example
```
logging_config = {"log_level": "DEBUG", "logs_dir": "./mimi_debug"}
handle: DeploymentHandle = serve.run(app, logging_config=logging_config)
```

### Before
controller logs aren't saved in the specified logs_dir

<img width="326" alt="image"
src="https://github.com/user-attachments/assets/0d316428-e7a7-48e0-8d9d-1692a3045a4a">

### After
controller logs are correctly configured

<img width="325" alt="image"
src="https://github.com/user-attachments/assets/e05aba0b-75cd-4cd4-9a92-4ef8cdd84cce">

Signed-off-by: Mimi Liao <[email protected]>
Signed-off-by: hjiang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests serve Ray Serve Related Issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[serve] logging_config specified in serve.run is not propagated cluster-wide
3 participants