![]() ![]() You can easily add non-existent options to your config files (as placeholders, custom options, or app-related configuration items). ![]() This feature is not enabled by default because of some other features described in the Things to Know doc: This option tells uWSGI to fail to start if any parameter in the configuration file isn’t explicitly understood by uWSGI. Let’s look at each one, what it does, and our argument for setting it ‘on’ by default. You can then remove them later should your particular situation benefit from their removal. One or two of them might not suit your deployment, but it is best to start with them ‘on’. These options should be set by default - but aren’t. Vacuum = true Delete sockets during shutdownĭie-on-term = true Shutdown when receiving SIGTERM (default is respawn) Note: Unbit, the developer of uWSGI, has “decided to fix all of the bad defaults (especially for the Python plugin) in the 2.1 branch.” The 2.1 branch is not released yet (as of June 2019), but it may provide some respite from the issues presented in this article. We strongly recommend that all uWSGI users read the official Things to Know doc. New services use this standard config to avoid any known gotchas and provide a base level of defensiveness and high reliability. As we’ve scaled up the number of services hosted by uWSGI over the last year, we’ve had to tweak our standard configuration. Powerful features can be overlooked due to the sheer magnitude of its feature set and spotty documentation. ![]() But, while powerful, uWSGI’s defaults are driven by backward compatibility and are not ideal for new deployments. We chose uWSGI as our host because of its performance and feature set. Two years ago, we began migrating our micro-services from a proprietary service framework to a WSGI-compliant one. It is a more detailed version of Peter’s talk “ Configuring uWSGI for Production: The defaults are all wrong” delivered at EuroPython 2019.īloomberg’s Structured Products team is responsible for providing analytics, data, and other software tools to support the Structured Products Industry, which includes financial securities backed by Mortgages, Student Loans, Auto Loans, Credit Cards, and more. Engineering Manager Peter Sperl and Software Engineer Ben Green of Bloomberg Engineering’s Structured Products Applications group wrote the following article to offer some tips to other developers about avoiding known gotchas when configuring uWSGI to host services at scale - while still providing a base level of defensiveness and high reliability. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |