Comments (6)
What error do you see when it crashes? The first thing I would look at is to see if it's got enough memory. Otherwise, I'd suggest either trying to pre-generate what you expect to serve, or caching aggressively.
from tileserver.
Hello, hope you guys had a great weekend.
This is the error we are getting:
Error on request:
Traceback (most recent call last):
File "/home/ubuntu/env/lib/python2.7/site-packages/werkzeug/serving.py", line 209, in run_wsgi
execute(self.server.app)
File "/home/ubuntu/env/lib/python2.7/site-packages/werkzeug/serving.py", line 200, in execute
write(data)
File "/home/ubuntu/env/lib/python2.7/site-packages/werkzeug/serving.py", line 181, in write
self.wfile.write(data)
I'm using a t2.large on ec2 to host all of the service right now (pgsql and all dependencies) going to work in a more robust environment with nginx as reverse proxy and caching results plus separate machines for the db and a fleet of 3 or 4 web servers. But my real question, do you have any specs recommended? and if I want it to put it under heavy loads any suggestion? Thanks for your help appreciate it.
from tileserver.
We split our work up into several different service layers. The most important are:
- Tileserver running on
r3.xlarge
instances. These only process "on-demand" tiles which are not part of the "Tiles of Interest" set, which (currently) lists all the tiles which have been requested and we have copies of on S3. - Tilequeue running on
c4.xlarge
instances. These process updates to the "Tiles of Interest", and so keeps S3 up-to-date so that those tiles can be served directly to clients using a service called Tapalcatl, which bypasses Tileserver and so helps reduce the number of requests. - PostgreSQL running on
db.r3.2xlarge
instances. These are in an RDS cluster, and so separate from the Tileserver and Tilequeue machines.
Looking at the monitoring for the Tileserver machines, it looks like they're hovering around 27GB heap usage. This seems like a lot, but it's hard to tell how much of that is actually in use without forcing more garbage collections to take place.
from tileserver.
We run tileserver through gunicorn, and set worker_processes to 150 for the r3.xlarge instances. With a smaller instance size, the number of worker processes running should be tweaked accordingly.
from tileserver.
Thank you very much for your response @rmarianski @zerebubuth I will replicate your settings and I will conduct some stress testing.
I'll close this issue and re-visit it later with some results from the tests.
from tileserver.
Good luck!
We have a gitter channel, if you'd find it useful to chat.
from tileserver.
Related Issues (20)
- Writing to cache/store after generation HOT 4
- Redis caching problem on last config file HOT 5
- ImportError: No module named tileserver.cache HOT 2
- custom layers in postgis HOT 9
- ImportError: No module named meta.python HOT 11
- psycopg2.ProgrammingError HOT 15
- Performance question HOT 3
- Tileserver is not accepting remote connections HOT 1
- Error with python setup.py develop, install directory is hard-coded (or sudo is required) HOT 3
- ImportError: cannot import name DataFetcher in v2.1.0, wrong tilequeue version in requirements HOT 10
- Cat readme into setup.py long description HOT 4
- pip intall error HOT 2
- pip install fails HOT 2
- Provide binary via pip. HOT 2
- AssertionError: Missing min_zoom in layer water
- Not seeing any output through tileserver appears to be running. Any advice? HOT 2
- My Server seems very slow in serving tiles,pls explain how to add tilequeue for buffering HOT 6
- CORS problem due to missing min_zoom in layer water HOT 3
- Question about scaling HOT 11
- syntax error 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 tileserver.