blob: b4b9dd0b302110ccc6f6822a33d788f3a0c852f1 [file] [log] [blame]
Willy Tarreau5f0eee72013-06-17 14:51:38 +02001Medium-long term roadmap - 2013/06/17
willy tarreau814cbc62006-05-13 13:00:29 +02002
Willy Tarreau21475e32010-05-23 08:46:08 +02003Legend: '+' = done, '-' = todo, '*' = done except doc
willy tarreau814cbc62006-05-13 13:00:29 +02004
Willy Tarreau5f0eee72013-06-17 14:51:38 +020051.5 (ETA 2013/12/31) :
Willy Tarreau21475e32010-05-23 08:46:08 +02006 - server-side HTTP keepalive
Willy Tarreaua1525cd2011-03-16 06:54:36 +01007 => maybe with limitation to only reuse connections that don't depend
8 on layer7 in a first time (just check the target).
willy tarreau814cbc62006-05-13 13:00:29 +02009
Willy Tarreau65ce3912010-11-24 16:21:56 +010010 - POST parameter extraction and size/speed measurement to use in ACLs
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010011
Willy Tarreau21475e32010-05-23 08:46:08 +020012 - return-html code xxx [ file "xxx" | text "xxx" ] if <acl>
willy tarreau1f431b52006-05-21 14:46:15 +020013
Willy Tarreau65ce3912010-11-24 16:21:56 +010014 - return-raw [ file "xxx" | text "xxx" ] if <acl>
15
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010016 - avg connect time, response time, connect errors, response errors in stats
17
Willy Tarreau65ce3912010-11-24 16:21:56 +010018 - add a last activity date for each server (req/resp) that will be
19 displayed in the stats. It will be useful with soft stop.
20
21 - add the ability to only dump response errors to more easily detect
22 anomalies without being polluted with attacks in requests.
23
Willy Tarreau65ce3912010-11-24 16:21:56 +010024 - add support for server-side unix sockets
willy tarreau38d79062006-05-21 14:47:13 +020025
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010026 - have multi-criteria analysers which subscribe to req flags, rsp flags, and
27 stream interface changes. This would result in a single analyser to wait
28 for the end of data transfer in HTTP.
29
Willy Tarreau21475e32010-05-23 08:46:08 +020030 - implement support for "connection freeze" after accept. A list of frozen
31 connections should be maintained so that it is possible to recycle them
32 when new file descriptors are required.
Willy Tarreau1c47f852006-07-09 08:22:27 +020033
Willy Tarreau21475e32010-05-23 08:46:08 +020034 - support for time-ordered priority queues with ability to add an offset
35 based on request matching. Each session will have one ebtree node to be
36 attached to whatever queue the session is waiting in.
Willy Tarreau1c47f852006-07-09 08:22:27 +020037
Willy Tarreau21475e32010-05-23 08:46:08 +020038 - add support for complex pattern extraction rules :
Willy Tarreaubaaee002006-06-26 02:48:02 +020039
Willy Tarreau21475e32010-05-23 08:46:08 +020040 pattern = <pattern_term>
41 | '{' pattern_expr '}'
willy tarreau814cbc62006-05-13 13:00:29 +020042
Willy Tarreau21475e32010-05-23 08:46:08 +020043 pattern_expr = <pattern_term> [ <transform> ... ]
willy tarreau814cbc62006-05-13 13:00:29 +020044
Willy Tarreau21475e32010-05-23 08:46:08 +020045 - support loading data sets from files
46 + present/not present (eg: netmasks)
47 - pattern conversion per prefixes. Eg: convert src IP to country.
willy tarreau814cbc62006-05-13 13:00:29 +020048
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010049 - what to do with data after a POST and how to detect some data were
50 received when responding ? In theory we should read everything because
51 the TCP stack does not notify us that the FIN was acked. In practice,
52 reading just before closing should be enough. Right now we simply read
53 whatever comes after the POST.
Willy Tarreaua1525cd2011-03-16 06:54:36 +010054 => switch the connection to a "drain" state, where it monitors its
55 output queue on each I/O and where it can be stolen if fds are
56 missing.
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010057
58 - half-closed timeouts ?
59
60 - add a flag in logs to indicate keep-alive requests ?
willy tarreau814cbc62006-05-13 13:00:29 +020061
Willy Tarreau5f0eee72013-06-17 14:51:38 +020062 - make it possible to condition a timeout on an ACL (dynamic timeouts)
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010063
64 - forwardfor/originalto except with IPv6
65
66 - have a callback function which would be called after a server is selected,
67 for header post-processing. That would be mainly used to remove then add
68 the server's name or cookie in a header so that the server knows it.
69
70 - remove lots of remaining Alert() calls or ensure that they forward to
71 send_log() after the fork.
72
Willy Tarreau5f0eee72013-06-17 14:51:38 +020073 - tcp-request session
74
75 - http-request track-sc* to avoid having the ugly "if !HTTP" in tcp-request
76
77 - tcp-request {connection|session} expect-proxy {L4|L5} if ...
78
79 - compression : to be fixed
80
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010081DONE:
82 * rename L4 acls as L6 ACLs when some content is involved
83
84 * add new L4 ACL checks immediately after accept, before even allocating the
85 buffers ("connection {accept|reject|delay|freeze} {if|unless}").
86
87 * make new patterns available based on stickiness matching :
88 * number of entries in table for the matched pattern
89 * same after having increased the match counter
90
91 * add support for concurrency match in tables
92 * just like stickiness, but counted per session (or request), increased
Willy Tarreau21475e32010-05-23 08:46:08 +020093 on first match and decreased at end of request or connection. This
94 requires that the session has a list of matched terms that must be
95 released at the end.
willy tarreau814cbc62006-05-13 13:00:29 +020096
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010097 * http_req_first ACL
98
99 * expirable cookies + "preserve"
100
101 * ECV, LDAPv3 & MySQL checks
102
103 * configurable check buffer size
104
105 * stats + ON/OFF
106
107 * halog: sort by URL
108
109 * "PROXY" protocol
110
Willy Tarreau65ce3912010-11-24 16:21:56 +0100111 * add support for client-side unix sockets
112
113 * hash: rehash non-consistent hashes with chash() for more randomness.
114
Willy Tarreaub5495552011-03-01 21:28:51 +0100115 * add an error ID in captures to ease new error detection for scripts.
116
Willy Tarreaua1525cd2011-03-16 06:54:36 +0100117 * try to remove srv==NULL internally and assign a dummy server to each backend
118 for dispatch, http_proxy and transparent modes. => done differently with the
119 target descriptors. The dummy server code exists in the "dummysrv" branch
120 which will die since it does not make sense anymore.
121
Willy Tarreaube2e1d32011-03-29 01:00:12 +0200122 * ACL to report number of used entries in a table
123
Willy Tarreaubf8f6812011-09-10 23:40:59 +0200124 * automatically compute fullconn for backends : by default, set it to
125 10% of the sum of the maxconn of all unique frontends which reference
126 it via use_backend, default_backend or that are in the same listen.
127
128 * count number of monitor requests on frontends, that's the only way
129 to explain the possible huge difference between frontend and backend
130 sessions.
131
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200132 * assign a nice priority based on ACLs.
133
134 * set-log-level if <acl> (front/back)
135
136 * fix "PR--" flags when accessing stats
137
138 * merged ACL/fetches
139
140 * use_server ... if ...
141
142 * ability to kill an arbitrary session from the command line. Put a "kill now"
143 flag in every session which preempts any other processing and wake the
144 session up.
Willy Tarreau65ce3912010-11-24 16:21:56 +0100145
Willy Tarreau21475e32010-05-23 08:46:08 +02001461.6 (will probably change anyway) :
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200147 - wait on resource (time, mem, CPU, socket, buffers, server's conn, server's rate, ...)
willy tarreau814cbc62006-05-13 13:00:29 +0200148
Willy Tarreau21475e32010-05-23 08:46:08 +0200149 - bandwidth limits
willy tarreau814cbc62006-05-13 13:00:29 +0200150
Willy Tarreau21475e32010-05-23 08:46:08 +0200151 - create internal services and make stats, CLI, etc... part of that.
Willy Tarreau1c47f852006-07-09 08:22:27 +0200152
Willy Tarreau21475e32010-05-23 08:46:08 +0200153 - buddy servers to build defined lists of failovers. Detect loops during
154 the config check.
155
156 server XXX buddy YYY
157 server YYY # may replace XXX when XXX fails
158
159 - spare servers : servers which are used in LB only when a minimum farm
160 weight threshold is not satisfied anymore. Useful for inter-site LB with
161 local pref by default.
162
Willy Tarreau65ce3912010-11-24 16:21:56 +0100163 - add support for event-triggered epoll, and maybe change all events handling
164 to pass through an event cache to handle temporarily disabled events.
165
166 - evaluate the changes required for multi-process+shared mem or multi-thread
167 +thread-local+fast locking.
Willy Tarreau1c47f852006-07-09 08:22:27 +0200168
Willy Tarreaub5495552011-03-01 21:28:51 +0100169 - ability to decide whether to drain or kill sessions when putting a server
170 to maintenance mode => requires a per-server session list and the change
171 above.
172
Willy Tarreau21475e32010-05-23 08:46:08 +0200173Old, maybe obsolete points
174 - clarify licence by adding a 'MODULE_LICENCE("GPL")' or something equivalent.
175
176 - 3 memory models : failsafe (prealloc), normal (current), optimal (alloc on
177 demand)
178
Willy Tarreau21475e32010-05-23 08:46:08 +0200179 - implement support for event-triggerred epoll()
180
181 - verify if it would be worth implementing an epoll_ctl_batch() for Linux
182
183 - option minservers XXX : activates some spare servers when active servers
184 are insufficient
Willy Tarreau1c47f852006-07-09 08:22:27 +0200185
186 - new keyword 'check' : check http xxx, check smtp xxx, check ssl-hello
187
Willy Tarreaubf8f6812011-09-10 23:40:59 +0200188 - initcwnd parameter for bind sockets : needed in kernel first
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200189
190Unsorted :
191 - outgoing log load-balancing (round-robin or hash among multiple servers)
192 - internal socket for "server XXX frontend:name"
193 - ACL feeding via the UNIX socket
194 - HTTP/2.0
195 - DNS requests on health checks
196 - XML inspection (content-switching for SOAP requests)
197 - lookup tables (eg: map IP to country)
198 - sync all stick-tables data, not just serverid.
199 - request, session and user variables
200 - random cookie generator
201 - external checker
202 - fastcgi to servers
203 - hot config reload
204 - RAM-based cache for small files
205 - RHI - BGP
206 - telnet/SSH cli
207 - dynamic memory allocation
208 - dynamic weights based on check response headers and traffic response time
209 - various kernel-level acceleration (multi-accept, ssplice, epoll2...)
210 - "show stats detail" with a different output format and encoding of quotes