blob: 5f32e397226dad394f63d30074d91f000878e667 [file] [log] [blame]
Willy Tarreau85ac9422014-04-23 01:44:32 +02001Medium-long term roadmap - 2014/04/23
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 Tarreau65ce3912010-11-24 16:21:56 +01006 - POST parameter extraction and size/speed measurement to use in ACLs
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +01007
Willy Tarreau21475e32010-05-23 08:46:08 +02008 - return-html code xxx [ file "xxx" | text "xxx" ] if <acl>
willy tarreau1f431b52006-05-21 14:46:15 +02009
Willy Tarreau65ce3912010-11-24 16:21:56 +010010 - return-raw [ file "xxx" | text "xxx" ] if <acl>
11
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010012 - avg connect time, response time, connect errors, response errors in stats
13
Willy Tarreau65ce3912010-11-24 16:21:56 +010014 - add the ability to only dump response errors to more easily detect
15 anomalies without being polluted with attacks in requests.
16
Willy Tarreau65ce3912010-11-24 16:21:56 +010017 - add support for server-side unix sockets
willy tarreau38d79062006-05-21 14:47:13 +020018
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010019 - have multi-criteria analysers which subscribe to req flags, rsp flags, and
20 stream interface changes. This would result in a single analyser to wait
21 for the end of data transfer in HTTP.
22
Willy Tarreau21475e32010-05-23 08:46:08 +020023 - implement support for "connection freeze" after accept. A list of frozen
24 connections should be maintained so that it is possible to recycle them
25 when new file descriptors are required.
Willy Tarreau1c47f852006-07-09 08:22:27 +020026
Willy Tarreau21475e32010-05-23 08:46:08 +020027 - support for time-ordered priority queues with ability to add an offset
28 based on request matching. Each session will have one ebtree node to be
29 attached to whatever queue the session is waiting in.
Willy Tarreau1c47f852006-07-09 08:22:27 +020030
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010031 - half-closed timeouts ?
32
33 - add a flag in logs to indicate keep-alive requests ?
willy tarreau814cbc62006-05-13 13:00:29 +020034
Willy Tarreau5f0eee72013-06-17 14:51:38 +020035 - make it possible to condition a timeout on an ACL (dynamic timeouts)
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010036
37 - forwardfor/originalto except with IPv6
38
39 - have a callback function which would be called after a server is selected,
40 for header post-processing. That would be mainly used to remove then add
41 the server's name or cookie in a header so that the server knows it.
42
43 - remove lots of remaining Alert() calls or ensure that they forward to
44 send_log() after the fork.
45
Willy Tarreau5f0eee72013-06-17 14:51:38 +020046 - tcp-request session
47
Willy Tarreau3c212372013-12-17 00:35:27 +010048 - tcp-request session expect-proxy {L4|L5} if ...
Willy Tarreau5f0eee72013-06-17 14:51:38 +020049
Willy Tarreau3c212372013-12-17 00:35:27 +010050 - http-request track-sc* to avoid having the ugly "if !HTTP" in tcp-request
Willy Tarreau5f0eee72013-06-17 14:51:38 +020051
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010052DONE:
Willy Tarreau3c212372013-12-17 00:35:27 +010053 * server-side HTTP keepalive
54 => maybe with limitation to only reuse connections that don't depend
55 on layer7 in a first time (just check the target).
56
57 * add support for complex pattern extraction rules :
58
59 pattern = <pattern_term>
60 | '{' pattern_expr '}'
61
62 pattern_expr = <pattern_term> [ <transform> ... ]
63 => changed to <sample>[,<conv>]*
64
65 * support loading data sets from files
66 * present/not present (eg: netmasks)
67 * pattern conversion per prefixes. Eg: convert src IP to country.
68 => maps
69
70 * what to do with data after a POST and how to detect some data were
71 received when responding ? In theory we should read everything because
72 the TCP stack does not notify us that the FIN was acked. In practice,
73 reading just before closing should be enough. Right now we simply read
74 whatever comes after the POST.
75 => switch the connection to a "drain" state, where it monitors its
76 output queue on each I/O and where it can be stolen if fds are
77 missing.
78
79 * tcp-request {connection|session} expect-proxy {L4|L5} if ...
80
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010081 * rename L4 acls as L6 ACLs when some content is involved
82
83 * add new L4 ACL checks immediately after accept, before even allocating the
84 buffers ("connection {accept|reject|delay|freeze} {if|unless}").
85
86 * make new patterns available based on stickiness matching :
87 * number of entries in table for the matched pattern
88 * same after having increased the match counter
89
90 * add support for concurrency match in tables
91 * just like stickiness, but counted per session (or request), increased
Willy Tarreau21475e32010-05-23 08:46:08 +020092 on first match and decreased at end of request or connection. This
93 requires that the session has a list of matched terms that must be
94 released at the end.
willy tarreau814cbc62006-05-13 13:00:29 +020095
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010096 * http_req_first ACL
97
98 * expirable cookies + "preserve"
99
100 * ECV, LDAPv3 & MySQL checks
101
102 * configurable check buffer size
103
104 * stats + ON/OFF
105
106 * halog: sort by URL
107
108 * "PROXY" protocol
109
Willy Tarreau65ce3912010-11-24 16:21:56 +0100110 * add support for client-side unix sockets
111
112 * hash: rehash non-consistent hashes with chash() for more randomness.
113
Willy Tarreaub5495552011-03-01 21:28:51 +0100114 * add an error ID in captures to ease new error detection for scripts.
115
Willy Tarreaua1525cd2011-03-16 06:54:36 +0100116 * try to remove srv==NULL internally and assign a dummy server to each backend
117 for dispatch, http_proxy and transparent modes. => done differently with the
118 target descriptors. The dummy server code exists in the "dummysrv" branch
119 which will die since it does not make sense anymore.
120
Willy Tarreaube2e1d32011-03-29 01:00:12 +0200121 * ACL to report number of used entries in a table
122
Willy Tarreaubf8f6812011-09-10 23:40:59 +0200123 * automatically compute fullconn for backends : by default, set it to
124 10% of the sum of the maxconn of all unique frontends which reference
125 it via use_backend, default_backend or that are in the same listen.
126
127 * count number of monitor requests on frontends, that's the only way
128 to explain the possible huge difference between frontend and backend
129 sessions.
130
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200131 * assign a nice priority based on ACLs.
132
133 * set-log-level if <acl> (front/back)
134
135 * fix "PR--" flags when accessing stats
136
137 * merged ACL/fetches
138
139 * use_server ... if ...
140
141 * ability to kill an arbitrary session from the command line. Put a "kill now"
142 flag in every session which preempts any other processing and wake the
143 session up.
Willy Tarreau65ce3912010-11-24 16:21:56 +0100144
Willy Tarreau85ac9422014-04-23 01:44:32 +0200145 * add a last activity date for each server (req/resp) that will be
146 displayed in the stats. It will be useful with soft stop.
147
148 * compression : to be fixed
149
150 * ACL feeding via the UNIX socket
151
152 * lookup tables (eg: map IP to country)
153
Willy Tarreau21475e32010-05-23 08:46:08 +02001541.6 (will probably change anyway) :
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200155 - wait on resource (time, mem, CPU, socket, buffers, server's conn, server's rate, ...)
willy tarreau814cbc62006-05-13 13:00:29 +0200156
Willy Tarreau21475e32010-05-23 08:46:08 +0200157 - bandwidth limits
willy tarreau814cbc62006-05-13 13:00:29 +0200158
Willy Tarreau21475e32010-05-23 08:46:08 +0200159 - create internal services and make stats, CLI, etc... part of that.
Willy Tarreau1c47f852006-07-09 08:22:27 +0200160
Willy Tarreau21475e32010-05-23 08:46:08 +0200161 - buddy servers to build defined lists of failovers. Detect loops during
162 the config check.
163
164 server XXX buddy YYY
165 server YYY # may replace XXX when XXX fails
166
167 - spare servers : servers which are used in LB only when a minimum farm
168 weight threshold is not satisfied anymore. Useful for inter-site LB with
169 local pref by default.
170
Willy Tarreau65ce3912010-11-24 16:21:56 +0100171 - add support for event-triggered epoll, and maybe change all events handling
172 to pass through an event cache to handle temporarily disabled events.
173
174 - evaluate the changes required for multi-process+shared mem or multi-thread
175 +thread-local+fast locking.
Willy Tarreau1c47f852006-07-09 08:22:27 +0200176
Willy Tarreaub5495552011-03-01 21:28:51 +0100177 - ability to decide whether to drain or kill sessions when putting a server
178 to maintenance mode => requires a per-server session list and the change
179 above.
180
Willy Tarreau21475e32010-05-23 08:46:08 +0200181Old, maybe obsolete points
182 - clarify licence by adding a 'MODULE_LICENCE("GPL")' or something equivalent.
183
184 - 3 memory models : failsafe (prealloc), normal (current), optimal (alloc on
185 demand)
186
Willy Tarreau21475e32010-05-23 08:46:08 +0200187 - implement support for event-triggerred epoll()
188
189 - verify if it would be worth implementing an epoll_ctl_batch() for Linux
190
191 - option minservers XXX : activates some spare servers when active servers
192 are insufficient
Willy Tarreau1c47f852006-07-09 08:22:27 +0200193
194 - new keyword 'check' : check http xxx, check smtp xxx, check ssl-hello
195
Willy Tarreaubf8f6812011-09-10 23:40:59 +0200196 - initcwnd parameter for bind sockets : needed in kernel first
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200197
198Unsorted :
199 - outgoing log load-balancing (round-robin or hash among multiple servers)
200 - internal socket for "server XXX frontend:name"
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200201 - HTTP/2.0
202 - DNS requests on health checks
203 - XML inspection (content-switching for SOAP requests)
Willy Tarreau5f0eee72013-06-17 14:51:38 +0200204 - sync all stick-tables data, not just serverid.
205 - request, session and user variables
206 - random cookie generator
207 - external checker
208 - fastcgi to servers
209 - hot config reload
210 - RAM-based cache for small files
211 - RHI - BGP
212 - telnet/SSH cli
213 - dynamic memory allocation
214 - dynamic weights based on check response headers and traffic response time
215 - various kernel-level acceleration (multi-accept, ssplice, epoll2...)
216 - "show stats detail" with a different output format and encoding of quotes