Comments (8)
Seems fine now (cronjob broke today on algolia step due to misconfiguration, sorry; but I see in logs that you've already fixed that).
from metaforecast.
Increasing dyno size is ok as a hotfix, yes.
from metaforecast.
After some investigating:
- polymarket-fetch uses around 260MB if run by itself
- there might be also be memory leaks from the previous steps, I'm not sure
- Heroku limits are 512MB on Hobby/Free and on Standard 1X; that sounds quite limiting to me, considering that we might want to fetch huge JSON files for the backend
- Heroku's Standard 2X with 1GB RAM is $50/month :( on DO 1GB droplet is just $6/month (and on Hetzner we can get 4GB RAM VPS for €5.83)
I'm running updates by hand on my machine for now (everything from 9=polymarket).
from metaforecast.
polymarket-fetch uses around 260MB if run by itself
This number is hard to bring down for now due to how platform fetchers are currently implemented (load all data in memory and then insert everything to the DB).
So I enabled pro dynos on heroku and changed the main cron job to use Standard-2X, that should be enough. It shouldn't be as bad as $50/month just for that, since Heroku charges only for a fraction of time the dyno runs, so might be around $10/month or so.
from metaforecast.
Received, seems ok for now.
from metaforecast.
I reworked the polymarket fetcher. It should be significantly less memory intensive now. In particular, we were fetching all markets (including resolved ones), which wasn't necessary. I've reverted the change and we are now using free dynos, but feel free to restore them.
from metaforecast.
Oh, great. Btw, are https://strapi-matic.poly.market/markets query parameters documented anywhere, or are you just reverse-engineering urls from https://polymarket.com/? I couldn't find anything useful on google.
from metaforecast.
Both. There is a devs channel on the polymarket Discord on which this is kinda-but-not-really documented. In this case, I did reverse engineer the parameters.
from metaforecast.
Related Issues (20)
- Frequent 504s from Metaforecast API HOT 7
- Dashboard ids hashing leads to unexpected UX HOT 1
- Heroku not automatically building from Github HOT 2
- Add history to the graphql API HOT 2
- Documentation for grapqhl usage HOT 5
- Thoughts on next steps? HOT 4
- Fetchers status page
- fix platform fetching errors HOT 2
- Metaculus community forecasts are flipped HOT 1
- Create an embeddable chart page
- Make question page a bit nicer. HOT 4
- Smarkets: missing contracts HOT 9
- Add new questions page to API HOT 6
- "GraphQL query for this page" button
- Capture question chart instead of question card HOT 2
- Feature requests: display closed/resolved forecasts + filter forecasts by date opened
- Insight prediction API produces an error when ordering markets by is_resolved HOT 1
- GraphQL error: "Cannot use 'in' operator to search for 'hasNext' in undefined"
- Link in about section goes to localhost HOT 1
- Star rating filter not working as expected HOT 1
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 metaforecast.