Skip to content

[performance] Added FastCGI support#383

Closed
mmd-osm wants to merge 7 commits into
drolbr:masterfrom
mmd-osm:feature/fastcgi
Closed

[performance] Added FastCGI support#383
mmd-osm wants to merge 7 commits into
drolbr:masterfrom
mmd-osm:feature/fastcgi

Conversation

@mmd-osm

@mmd-osm mmd-osm commented Mar 19, 2017

Copy link
Copy Markdown
Contributor
  • Adds FastCGI support
  • Adding new configure parameter --enable-fastcgi - new code is optional and as least invasive as possible.
  • Resulting binary still supports both CGI and FastCGI
  • Added a new Index Cache, which caches data_index & map_index across several queries. Once replicate_id changes, the cache is being discarded
  • Other caches (like User_Data_Cache and relation_member_roles) are treated in a similar way and discarded upon replicate_id changes.

See #209 for more details on how to configure Apache / Nginx for FastCGI.

TODOs:

  • Review coding
  • Check if there's anything new in 0.7.54 which needs to be initialized as well after each query
  • More testing!
  • setrlimit needs to be changed to soft limits, otherwise [maxelem: ...] and [timeout: ...] cannot be set/updated across several queries
  • Use of std::lock_guard<std::mutex> guard(transaction_mutex); is needed as preparation for [performance] Parallel database update #384, it's not really needed for FastCGI itself.

Thanks for reviewing!

@mmd-osm mmd-osm changed the title Added FastCGI support [performance] Added FastCGI support Mar 19, 2017
@DaMatrix

DaMatrix commented Oct 9, 2020

Copy link
Copy Markdown

Any updates on this?

@mmd-osm

mmd-osm commented Nov 15, 2021

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants