Comments (6)
Thanks Yoshiki. AWS is just the hosting environment, and I used docker for the deployment, nothing special.
The problem is indeed the "/" health check, which I don't think cache works in this case. Is there any other path that I can use for the health check monitoring without loading all the history?
Will check the Upstash region settings.
from morphic.
Another vote for local redis #110
from morphic.
@miurla also, please note that it makes the app extremely slow. I have not used morphic a lot, but still it takes forever to get started. In the logs, it appears that loading history takes a LONG time:
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
✓ Ready in 1041ms
○ Compiling /search/[id] ...
✓ Compiled /search/[id] in 76.1s
history loaded
history loaded
GET / 200 in 72931ms
from morphic.
Thank you for the report.
The AWS EC2 Load Balancer is frequently accessing the "/" path, which may be causing a large number of data requests to Upstash. It is also possible that the cache is not working effectively. The reads are abnormally high for the amount of writing.
Even morphic.sh, hosted on Vercel, is still at 12GB of bandwidth and 0.6M reads. I believe it is unlikely to exceed the free tier of Upstash with normal personal use.
Since we don't support the AWS environment, we don't know the details.
Upstash doesn't cover global regions such as Singapore and Hong Kong.
If you choose the global type, you can select the Singapore region as well.
from morphic.
Since the search path also loads history, it seems best to create a custom path for health checks.
from morphic.
Yup, should be easy to fix.
from morphic.
Related Issues (20)
- [BUG] Errror when sending follow-ups HOT 1
- [BUG] SyntaxError: Unexpected token < in JSON during AI SDK usage after update
- Amazon and other sites in UK
- Outdated web response HOT 2
- Add message saving HOT 1
- Issue when opening Morphic website HOT 1
- I asked a follow-up prompt, and, Application error: a client-side exception has occurred.. then, after I refresh page, the follow-up question I asked is not there, and I ask again, and it is okay after, and error doesn't occur..
- Add a model selection menu
- Quality (claude) inaccuracy in response HOT 4
- Error happening with only (Quality) Claude.. HOT 3
- [BUG]: A message can be sent twice
- New GPT-4o mini api to replace GPT-3.5 turbo on Morphic.sh website
- Future feature possibilities HOT 2
- Improve share results pages with metadata and expanded answers
- Caching of same / similar queries
- Question's about sources HOT 1
- Application error: a server-side exception has occurred HOT 1
- Swap llama-3-70b Groq with llama-3.1-405b Groq model HOT 1
- <issue>There is no option to select the Speed model after deploying in Vercel like morphic.sh.B HOT 1
- Errors happening with Llama-3.1-70b mode HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morphic.