Open RAbraham opened 1 year ago
Hi, I'm a bot from the Ray team :)
To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months.
If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel.
What happened + What you expected to happen
Hi, When I configure syslog for Ray Serve, it works during initialization of the Ray Serve Deployment but gives the above error when an endpoint is called.
We need to setup syslog for centralized logging for SOC2 certification.
Versions / Dependencies
Ray 2.3.0 Ray Serve: 2.3.0 ubuntu:20.04 Python 3.8.10
Reproduction script
systemctl start rsyslog && systemctl enable rsyslog
apt-get install -y python-is-python3 pip install ray==2.3.0 pip install "ray[serve]==2.3.0"
It should show
Just check
should show something like
Next, run the following commands, it should show some issue in docker but it's fine
Open another terminal with
Running the following logger command should show the text in the tailed logs in the other terminal
Create a file called
simple_logging.py
Run
python simple_logging.py
This will print to stdout and to the tailed logs. so
get_logger
worksNow, we call
get_logger
fromsimple_logging.py
within a ray serve environmentapp.py
@serve.deployment(route_prefix="/") @serve.ingress(app) class ServeTrial: def init(self): _logger = get_logger("attribute_prediction_api") self.logger = _logger msg = f"From Init ================================ Syslog Trial {datetime.datetime.utcnow()} ===========================" self.logger.info(msg) pass
work_api = ServeTrial.bind()
Run
You should see it error out like:
Issue Severity
High: It blocks me from completing my task.