blob: 047d13e5509fffe404f00155460895f3e5d8f663 [file] [log] [blame]
Willy Tarreau21475e32010-05-23 08:46:08 +02001Medium-long term roadmap - 2010/04/10
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 Tarreau21475e32010-05-23 08:46:08 +020051.5 (ETA 2010/12/31) :
6 - server-side HTTP keepalive
willy tarreau814cbc62006-05-13 13:00:29 +02007
Willy Tarreau65ce3912010-11-24 16:21:56 +01008 - POST parameter extraction and size/speed measurement to use in ACLs
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +01009
Willy Tarreau21475e32010-05-23 08:46:08 +020010 - return-html code xxx [ file "xxx" | text "xxx" ] if <acl>
willy tarreau1f431b52006-05-21 14:46:15 +020011
Willy Tarreau65ce3912010-11-24 16:21:56 +010012 - return-raw [ file "xxx" | text "xxx" ] if <acl>
13
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010014 - avg connect time, response time, connect errors, response errors in stats
15
Willy Tarreau65ce3912010-11-24 16:21:56 +010016 - add a last activity date for each server (req/resp) that will be
17 displayed in the stats. It will be useful with soft stop.
18
19 - add the ability to only dump response errors to more easily detect
20 anomalies without being polluted with attacks in requests.
21
22 - add an error ID in captures to ease new error detection for scripts.
willy tarreau814cbc62006-05-13 13:00:29 +020023
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 - try to remove srv==NULL internally and assign a dummy server to each backend
31 for dispatch, http_proxy and transparent modes.
willy tarreau814cbc62006-05-13 13:00:29 +020032
Willy Tarreau21475e32010-05-23 08:46:08 +020033 - implement support for "connection freeze" after accept. A list of frozen
34 connections should be maintained so that it is possible to recycle them
35 when new file descriptors are required.
Willy Tarreau1c47f852006-07-09 08:22:27 +020036
Willy Tarreau21475e32010-05-23 08:46:08 +020037 - support for time-ordered priority queues with ability to add an offset
38 based on request matching. Each session will have one ebtree node to be
39 attached to whatever queue the session is waiting in.
Willy Tarreau1c47f852006-07-09 08:22:27 +020040
Willy Tarreau21475e32010-05-23 08:46:08 +020041 - assign a nice priority based on ACLs.
Willy Tarreaubaaee002006-06-26 02:48:02 +020042
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010043 - dontlog if <acl> (front/back)
44
45 - fix "PR--" flags when accessing stats
46
Willy Tarreau21475e32010-05-23 08:46:08 +020047 - pattern extraction is needed for ACLs and stickiness. It would work like
48 this :
Willy Tarreaubaaee002006-06-26 02:48:02 +020049
Willy Tarreau21475e32010-05-23 08:46:08 +020050 acl <name> <pattern> [-i] <values>...
Willy Tarreaubaaee002006-06-26 02:48:02 +020051
Willy Tarreau21475e32010-05-23 08:46:08 +020052 All ACL fetch method currently available would be transformed into pattern
53 extraction methods. That way we could stick on hdr(x-forwarded-for) or use
54 source 0.0.0.0 usesrc <pattern> (such as "hdr_ip(headername)"). Note that
55 ACLs sometimes need iterative matching/extraction.
Willy Tarreaubaaee002006-06-26 02:48:02 +020056
Willy Tarreau21475e32010-05-23 08:46:08 +020057 - add support for complex pattern extraction rules :
Willy Tarreaubaaee002006-06-26 02:48:02 +020058
Willy Tarreau21475e32010-05-23 08:46:08 +020059 pattern = <pattern_term>
60 | '{' pattern_expr '}'
willy tarreau814cbc62006-05-13 13:00:29 +020061
Willy Tarreau21475e32010-05-23 08:46:08 +020062 pattern_expr = <pattern_term> [ <transform> ... ]
willy tarreau814cbc62006-05-13 13:00:29 +020063
Willy Tarreau21475e32010-05-23 08:46:08 +020064 - support loading data sets from files
65 + present/not present (eg: netmasks)
66 - pattern conversion per prefixes. Eg: convert src IP to country.
willy tarreau814cbc62006-05-13 13:00:29 +020067
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010068 - automatically compute fullconn for backends : by default, set it to
69 10% of the sum of the maxconn of all unique frontends which reference
70 it via use_backend, default_backend or that are in the same listen.
71
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010072 - what to do with data after a POST and how to detect some data were
73 received when responding ? In theory we should read everything because
74 the TCP stack does not notify us that the FIN was acked. In practice,
75 reading just before closing should be enough. Right now we simply read
76 whatever comes after the POST.
77
78 - half-closed timeouts ?
79
80 - add a flag in logs to indicate keep-alive requests ?
willy tarreau814cbc62006-05-13 13:00:29 +020081
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010082 - make it possible to condition a timeout on an ACL
83
84 - forwardfor/originalto except with IPv6
85
86 - have a callback function which would be called after a server is selected,
87 for header post-processing. That would be mainly used to remove then add
88 the server's name or cookie in a header so that the server knows it.
89
90 - remove lots of remaining Alert() calls or ensure that they forward to
91 send_log() after the fork.
92
Willy Tarreau65ce3912010-11-24 16:21:56 +010093 - initcwnd parameter for bind sockets
94
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +010095DONE:
96 * rename L4 acls as L6 ACLs when some content is involved
97
98 * add new L4 ACL checks immediately after accept, before even allocating the
99 buffers ("connection {accept|reject|delay|freeze} {if|unless}").
100
101 * make new patterns available based on stickiness matching :
102 * number of entries in table for the matched pattern
103 * same after having increased the match counter
104
105 * add support for concurrency match in tables
106 * just like stickiness, but counted per session (or request), increased
Willy Tarreau21475e32010-05-23 08:46:08 +0200107 on first match and decreased at end of request or connection. This
108 requires that the session has a list of matched terms that must be
109 released at the end.
willy tarreau814cbc62006-05-13 13:00:29 +0200110
Willy Tarreau0a6b1fd2010-11-14 14:23:22 +0100111 * http_req_first ACL
112
113 * expirable cookies + "preserve"
114
115 * ECV, LDAPv3 & MySQL checks
116
117 * configurable check buffer size
118
119 * stats + ON/OFF
120
121 * halog: sort by URL
122
123 * "PROXY" protocol
124
Willy Tarreau65ce3912010-11-24 16:21:56 +0100125 * add support for client-side unix sockets
126
127 * hash: rehash non-consistent hashes with chash() for more randomness.
128
129
Willy Tarreau21475e32010-05-23 08:46:08 +02001301.6 (will probably change anyway) :
131 - wait on resource (mem, socket, server's conn, server's rate, ...)
willy tarreau814cbc62006-05-13 13:00:29 +0200132
Willy Tarreau21475e32010-05-23 08:46:08 +0200133 - bandwidth limits
willy tarreau814cbc62006-05-13 13:00:29 +0200134
Willy Tarreau21475e32010-05-23 08:46:08 +0200135 - create internal services and make stats, CLI, etc... part of that.
Willy Tarreau1c47f852006-07-09 08:22:27 +0200136
Willy Tarreau21475e32010-05-23 08:46:08 +0200137 - use_server ... if ...
138
139 - buddy servers to build defined lists of failovers. Detect loops during
140 the config check.
141
142 server XXX buddy YYY
143 server YYY # may replace XXX when XXX fails
144
145 - spare servers : servers which are used in LB only when a minimum farm
146 weight threshold is not satisfied anymore. Useful for inter-site LB with
147 local pref by default.
148
Willy Tarreau65ce3912010-11-24 16:21:56 +0100149 - add support for event-triggered epoll, and maybe change all events handling
150 to pass through an event cache to handle temporarily disabled events.
151
152 - evaluate the changes required for multi-process+shared mem or multi-thread
153 +thread-local+fast locking.
Willy Tarreau1c47f852006-07-09 08:22:27 +0200154
Willy Tarreau21475e32010-05-23 08:46:08 +0200155Old, maybe obsolete points
156 - clarify licence by adding a 'MODULE_LICENCE("GPL")' or something equivalent.
157
158 - 3 memory models : failsafe (prealloc), normal (current), optimal (alloc on
159 demand)
160
161 - ability to assign a task priority based on L7 matching
Willy Tarreau1c47f852006-07-09 08:22:27 +0200162
Willy Tarreau21475e32010-05-23 08:46:08 +0200163 - implement support for event-triggerred epoll()
164
165 - verify if it would be worth implementing an epoll_ctl_batch() for Linux
166
167 - option minservers XXX : activates some spare servers when active servers
168 are insufficient
Willy Tarreau1c47f852006-07-09 08:22:27 +0200169
170 - new keyword 'check' : check http xxx, check smtp xxx, check ssl-hello
171