Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to optimize ocelot startup time. #1526

Closed
heizel184 opened this issue Oct 12, 2021 · 3 comments · May be fixed by #1964
Closed

How to optimize ocelot startup time. #1526

heizel184 opened this issue Oct 12, 2021 · 3 comments · May be fixed by #1964
Assignees
Labels
bug Identified as a potential bug Configuration Ocelot feature: Configuration needs feedback Issue is waiting on feedback before acceptance needs validation Issue has not been replicated or verified yet

Comments

@heizel184
Copy link

Hi I am using Ocelot 15.0.6 as a gateway. Since Ocelot supports multiple configuration files. Previously I include seven different configurations files with the routes of different projects API, The problem occurred when a new file is added with more than 80 routes in it. After adding that file The ocelot took too long at startup that the application got stuck and shut down later when deploying gateway.

The current behavior of ocelot is unacceptable, application should not take much time for a startup. How can I optimize that time or speed up the startup time of ocelot at production?

Steps to Reproduce the Problem

Add multiple configuration files with a large no of routes

Specifications

  • Version: 15.0.6
@ks1990cn
Copy link
Contributor

ks1990cn commented Dec 17, 2023

@raman-m Interesting, how we can test it? Is there any test cases for this thing?

Any suggestions?

@ks1990cn
Copy link
Contributor

@heizel184 are you still facing it on latest versions?

@raman-m
Copy link
Member

raman-m commented Dec 19, 2023

@heizel184 Dear Hina!
Thanks for reporting it!

Your issue is quite outdated because of legacy version 15.0.6.
Could you upgrade your solution to the latest version and check the issue once again please?


The problem occurred when a new file is added with more than 80 routes in it.

Are you sure that all files are valid? So, have all these files valid JSON formatting and syntax?
Can you attach all config to the issue plz?


After adding that file The ocelot took too long at startup that the application got stuck and shut down later when deploying gateway.

Deployment can fail because of critical error when starting up the app...
Can you attach Ocelot log please?

@raman-m raman-m added the question Initially seen a question could become a new feature or bug or closed ;) label Dec 19, 2023
@raman-m raman-m self-assigned this Dec 19, 2023
@ThreeMammals ThreeMammals locked and limited conversation to collaborators Dec 19, 2023
@raman-m raman-m converted this issue into discussion #1857 Dec 19, 2023
@raman-m raman-m added bug Identified as a potential bug needs validation Issue has not been replicated or verified yet needs feedback Issue is waiting on feedback before acceptance Configuration Ocelot feature: Configuration and removed question Initially seen a question could become a new feature or bug or closed ;) labels Feb 17, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Identified as a potential bug Configuration Ocelot feature: Configuration needs feedback Issue is waiting on feedback before acceptance needs validation Issue has not been replicated or verified yet
Projects
None yet
3 participants