

- #Development unicorn https how to#
- #Development unicorn https install#
- #Development unicorn https upgrade#
Unicorn will look for the file used by rackup in APP_ROOT.įor deployments, it can use a config file for unicorn-specific options specified by the -config-file/-c command-line switch. You may use the -listen/-l switch to bind to a different address:port or a UNIX socket. Unicorn will bind to all interfaces on TCP port 8080 by default. Usage Rack (including Rails 3+) applications
#Development unicorn https how to#
See the HACKING guide on how to contribute and build prerelease gems from git. You can get the latest source via git from the following locations (these versions may not be stable):
#Development unicorn https install#
You may install it via RubyGems on : gem install unicorn The library consists of a C extension so you'll need a C compiler and Ruby development libraries/headers. Unicorn is 100% Free Software (including all development tools used). See the included LICENSE file for details. Unicorn is licensed under (your choice) of the GPLv2 or later (GPLv3+ preferred), or Ruby (1.8)-specific terms. Unicorn is copyright 2009-2018 by all contributors (see logs in git). Simple and easy Ruby DSL for configuration. These should not be needed when the "preload_app" directive is false (the default).Ĭan be used with copy-on-write-friendly GC in Ruby 2.0+ to save memory (by setting "preload_app" to true).Īble to listen on multiple interfaces including UNIX sockets, each worker process can also bind to a private port via the after_fork hook for easy debugging. Transparent upgrades using systemd socket activation is supported since unicorn 5.0īefore_fork and after_fork hooks in case your application has special needs when dealing with forked processes.
#Development unicorn https upgrade#
You can upgrade unicorn, your entire application, libraries and even your Ruby interpreter without dropping clients.

Nginx-style binary upgrades without losing connections. unicorn also takes steps to ensure multi-line log entries from one request all stay within the same file. This allows logrotate to rotate files atomically and quickly via rename instead of the racy and slow copytruncate method. Requests never pile up behind a busy worker process.ĭoes not care if your application is thread-safe or not, workers all run within their own isolated address space and only serve one client at a time for maximum robustness.īuiltin reopening of all log files in your application via USR1 signal. Load balancing is done entirely by the operating system kernel. unicorn can spawn and manage any number of worker processes you choose to scale to your backend. There is no need to manage multiple processes or ports yourself. Process management: unicorn will reap and restart workers that die from broken apps. We cut out everything that is better supported by the operating system, nginx or Rack.

Featuresĭesigned for Rack, Unix, fast clients, and ease-of-debugging. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between unicorn and slow clients. Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Unicorn: Rack HTTP server for fast clients and Unix Unicorn Configurator HttpServer OobGC PrereadInput StreamInput TeeInput Util Worker Unicorn: Rack HTTP server for fast clients and Unix Application_Timeouts CONTRIBUTORS DESIGN FAQ HACKING ISSUES KNOWN_ISSUES LICENSE Links NEWS PHILOSOPHY README SIGNALS Sandbox TUNING unicorn_1
