raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] raindrops 0.17.0 - real-time stats for preforking Rack servers
@ 2016-07-31 15:26  5% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-07-31 15:26 UTC (permalink / raw)
  To: ruby-talk, raindrops-public

raindrops is a real-time stats toolkit to show statistics for Rack HTTP
servers.  It is designed for preforking servers such as unicorn, but
should support any Rack HTTP server on platforms supporting POSIX shared
memory.  It may also be used as a generic scoreboard for sharing atomic
counters across multiple processes.

* https://bogomips.org/raindrops/
* No subscription necessary, no HTML mail:
  raindrops-public@bogomips.org
* mail archives: https://bogomips.org/raindrops-public/
  http://ou63pmih66umazou.onion/raindrops-public/
  nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops
  nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops
* git clone git://bogomips.org/raindrops.git
* https://bogomips.org/raindrops/NEWS.atom.xml
* Demo site: https://raindrops-demo.bogomips.org:8443/

Changes:

raindrops 0.17.0 - rack 2.x updates

This release features minor updates to support rack 2.x
while maintaining support for rack 1.2 and later.
As a result, Ruby 1.8.6 compatibility is gone, but
Ruby 1.8.7 probably still works, for now.

There's also a minor warning fix, doc updates, and
the homepage now supports HTTPS (HTTP remains supported)

5 changes since raindrops 0.16.0:
      drop Rack::Utils.bytesize dependency
      gemspec: bump Rack dependency
      linux_inet_diag: GCC attribute format check
      use HTTPS and move homepage to https://bogomips.org/raindrops/
      examples: add yahns config, zbatery is abandoned

^ permalink raw reply	[relevance 5%]

* [PATCH] examples: add yahns config, zbatery is abandoned
@ 2016-07-31 15:11  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-07-31 15:11 UTC (permalink / raw)
  To: raindrops-public

Since zbatery is abandoned, point users towards yahns
instead since that is what I currently use.
---
 examples/yahns.conf.rb   | 30 ++++++++++++++++++++++++++++++
 examples/zbatery.conf.rb |  5 ++++-
 2 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 examples/yahns.conf.rb

diff --git a/examples/yahns.conf.rb b/examples/yahns.conf.rb
new file mode 100644
index 0000000..f5b4f10
--- /dev/null
+++ b/examples/yahns.conf.rb
@@ -0,0 +1,30 @@
+# Inlined rack app using yahns server (git clone git://yhbt.net/yahns.git)
+# Usage: yahns -c /path/to/this/file.conf.rb
+# There is no separate config.ru file for this example,
+# but rack_app may also be a string pointing to the path of a
+# config.ru file
+
+require 'rack'
+rack_app = Rack::Builder.new do
+  use Rack::Head
+  addr = %w(0.0.0.0:9418 0.0.0.0:443 [::]:443 0.0.0.0:80 [::]:80
+	    127.0.0.1:6081 127.0.0.1:280 0.0.0.0:119 [::]:119)
+  use Raindrops::Middleware, listeners: addr
+  run Raindrops::Watcher.new(listeners: addr)
+end.to_app
+# rack_app = '/path/to/config.ru' # a more standard config
+
+app(:rack, rack_app) do
+  # I keep IPv4 and IPv6 on separate sockets to avoid ugly
+  # IPv4-mapped-IPv6 addresses:
+  listen 8080
+  listen '[::]:8080', ipv6only: true
+  client_max_body_size 0 # no POST or any uploads
+  client_timeout 5
+  output_buffering false # needed for /tail/ endpoint to avoid ENOSPC
+  queue { worker_threads 30 }
+end
+
+# logging is optional, but recommended for diagnosing problems
+# stderr_path '/var/log/yahns/stderr-raindrops.log'
+# stdout_path '/var/log/yahns/stdout-raindrops.log'
diff --git a/examples/zbatery.conf.rb b/examples/zbatery.conf.rb
index 3f67c7a..5f94c0e 100644
--- a/examples/zbatery.conf.rb
+++ b/examples/zbatery.conf.rb
@@ -1,6 +1,9 @@
 # Used for running Raindrops::Watcher, which requires a multi-threaded
 # Rack server capable of streaming a response.  Threads must be used,
-# so Zbatery is recommended: http://zbatery.bogomip.org/
+# so any multi-threaded Rack server may be used.
+# zbatery was recommended in the past, but it is abandoned
+# <http://zbatery.bogomip.org/>.
+# yahns may work as an alternative (see yahns.conf.rb in this dir)
 Rainbows! do
   use :ThreadSpawn
 end
-- 
EW


^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-07-31 15:11  7% [PATCH] examples: add yahns config, zbatery is abandoned Eric Wong
2016-07-31 15:26  5% [ANN] raindrops 0.17.0 - real-time stats for preforking Rack servers Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).