File: README

package info (click to toggle)
libnginx-mod-http-push-stream 0.6.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,272 kB
  • sloc: ruby: 7,101; ansic: 6,048; javascript: 2,121; sh: 53; makefile: 16
file content (78 lines) | stat: -rw-r--r-- 1,949 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Copyright (C) 2011 Michael Costello, Wandenberg Peixoto <wandenberg@gmail.com>

These tools, publisher and subscriber, were developed only to do some load tests on push stream module.
Their use is very restricted and is not intended to cover all possible configuration for the module.
The first version was developed by Michael Costello and I made some improvements to distribute it.
Feel free to help continuous improvement.

Any feedbacks will be welcome.

=============
Requirements:
=============

lib argtable2
GCC, make, the usual guys
epoll event support

================
Developer Guide:
================

The basic configuration used on the load tests are listed bellow.
To compile the tools only execute a make.

To see all options use:
  ./publisher --help
  ./subscriber --help

Pay attention on default values to run your tests.

====================
Basic Configuration:
====================

pid         logs/nginx.pid;
error_log   logs/nginx-main_error.log debug;

worker_rlimit_core  500M;
working_directory /tmp/nginx;

worker_processes    2;

events {
  worker_connections  1024;
  use                 epoll;
}

http {
  include         mime.types;
  default_type    application/octet-stream;

  access_log      logs/nginx-http_access.log;
  error_log       logs/nginx-http_error.log debug;

  push_stream_shared_memory_size               500M;

  server {
    listen           9080 default_server;
    server_name     localhost;

    location /channels-stats {
      push_stream_channels_statistics;
      push_stream_channels_path               $arg_id;
    }

    location /pub {
      push_stream_publisher admin;
      push_stream_channels_path               $arg_id;
      push_stream_store_messages              off;
    }

    location ~ /sub/(.*) {
      push_stream_subscriber;
      push_stream_channels_path                   $1;
      push_stream_message_template                "~text~:~id~:~channel~";
    }
  }
}