Willy Tarreau | b549555 | 2011-03-01 21:28:51 +0100 | [diff] [blame] | 1 | Medium-long term roadmap - 2011/03/01 |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 2 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 3 | Legend: '+' = done, '-' = todo, '*' = done except doc |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 4 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 5 | 1.5 (ETA 2010/12/31) : |
| 6 | - server-side HTTP keepalive |
Willy Tarreau | a1525cd | 2011-03-16 06:54:36 +0100 | [diff] [blame] | 7 | => maybe with limitation to only reuse connections that don't depend |
| 8 | on layer7 in a first time (just check the target). |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 9 | |
Willy Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 10 | - POST parameter extraction and size/speed measurement to use in ACLs |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 11 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 12 | - return-html code xxx [ file "xxx" | text "xxx" ] if <acl> |
willy tarreau | 1f431b5 | 2006-05-21 14:46:15 +0200 | [diff] [blame] | 13 | |
Willy Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 14 | - return-raw [ file "xxx" | text "xxx" ] if <acl> |
| 15 | |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 16 | - avg connect time, response time, connect errors, response errors in stats |
| 17 | |
Willy Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 18 | - 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 Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 24 | - add support for server-side unix sockets |
willy tarreau | 38d7906 | 2006-05-21 14:47:13 +0200 | [diff] [blame] | 25 | |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 26 | - 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 Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 30 | - 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 Tarreau | 1c47f85 | 2006-07-09 08:22:27 +0200 | [diff] [blame] | 33 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 34 | - 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 Tarreau | 1c47f85 | 2006-07-09 08:22:27 +0200 | [diff] [blame] | 37 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 38 | - assign a nice priority based on ACLs. |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 39 | |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 40 | - dontlog if <acl> (front/back) |
| 41 | |
| 42 | - fix "PR--" flags when accessing stats |
| 43 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 44 | - pattern extraction is needed for ACLs and stickiness. It would work like |
| 45 | this : |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 46 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 47 | acl <name> <pattern> [-i] <values>... |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 48 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 49 | All ACL fetch method currently available would be transformed into pattern |
| 50 | extraction methods. That way we could stick on hdr(x-forwarded-for) or use |
| 51 | source 0.0.0.0 usesrc <pattern> (such as "hdr_ip(headername)"). Note that |
| 52 | ACLs sometimes need iterative matching/extraction. |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 53 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 54 | - add support for complex pattern extraction rules : |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 55 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 56 | pattern = <pattern_term> |
| 57 | | '{' pattern_expr '}' |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 58 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 59 | pattern_expr = <pattern_term> [ <transform> ... ] |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 60 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 61 | - support loading data sets from files |
| 62 | + present/not present (eg: netmasks) |
| 63 | - pattern conversion per prefixes. Eg: convert src IP to country. |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 64 | |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 65 | - what to do with data after a POST and how to detect some data were |
| 66 | received when responding ? In theory we should read everything because |
| 67 | the TCP stack does not notify us that the FIN was acked. In practice, |
| 68 | reading just before closing should be enough. Right now we simply read |
| 69 | whatever comes after the POST. |
Willy Tarreau | a1525cd | 2011-03-16 06:54:36 +0100 | [diff] [blame] | 70 | => switch the connection to a "drain" state, where it monitors its |
| 71 | output queue on each I/O and where it can be stolen if fds are |
| 72 | missing. |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 73 | |
| 74 | - half-closed timeouts ? |
| 75 | |
| 76 | - add a flag in logs to indicate keep-alive requests ? |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 77 | |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 78 | - make it possible to condition a timeout on an ACL |
| 79 | |
| 80 | - forwardfor/originalto except with IPv6 |
| 81 | |
| 82 | - have a callback function which would be called after a server is selected, |
| 83 | for header post-processing. That would be mainly used to remove then add |
| 84 | the server's name or cookie in a header so that the server knows it. |
| 85 | |
| 86 | - remove lots of remaining Alert() calls or ensure that they forward to |
| 87 | send_log() after the fork. |
| 88 | |
| 89 | DONE: |
| 90 | * rename L4 acls as L6 ACLs when some content is involved |
| 91 | |
| 92 | * add new L4 ACL checks immediately after accept, before even allocating the |
| 93 | buffers ("connection {accept|reject|delay|freeze} {if|unless}"). |
| 94 | |
| 95 | * make new patterns available based on stickiness matching : |
| 96 | * number of entries in table for the matched pattern |
| 97 | * same after having increased the match counter |
| 98 | |
| 99 | * add support for concurrency match in tables |
| 100 | * just like stickiness, but counted per session (or request), increased |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 101 | on first match and decreased at end of request or connection. This |
| 102 | requires that the session has a list of matched terms that must be |
| 103 | released at the end. |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 104 | |
Willy Tarreau | 0a6b1fd | 2010-11-14 14:23:22 +0100 | [diff] [blame] | 105 | * http_req_first ACL |
| 106 | |
| 107 | * expirable cookies + "preserve" |
| 108 | |
| 109 | * ECV, LDAPv3 & MySQL checks |
| 110 | |
| 111 | * configurable check buffer size |
| 112 | |
| 113 | * stats + ON/OFF |
| 114 | |
| 115 | * halog: sort by URL |
| 116 | |
| 117 | * "PROXY" protocol |
| 118 | |
Willy Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 119 | * add support for client-side unix sockets |
| 120 | |
| 121 | * hash: rehash non-consistent hashes with chash() for more randomness. |
| 122 | |
Willy Tarreau | b549555 | 2011-03-01 21:28:51 +0100 | [diff] [blame] | 123 | * add an error ID in captures to ease new error detection for scripts. |
| 124 | |
Willy Tarreau | a1525cd | 2011-03-16 06:54:36 +0100 | [diff] [blame] | 125 | * try to remove srv==NULL internally and assign a dummy server to each backend |
| 126 | for dispatch, http_proxy and transparent modes. => done differently with the |
| 127 | target descriptors. The dummy server code exists in the "dummysrv" branch |
| 128 | which will die since it does not make sense anymore. |
| 129 | |
Willy Tarreau | be2e1d3 | 2011-03-29 01:00:12 +0200 | [diff] [blame] | 130 | * ACL to report number of used entries in a table |
| 131 | |
Willy Tarreau | bf8f681 | 2011-09-10 23:40:59 +0200 | [diff] [blame] | 132 | * automatically compute fullconn for backends : by default, set it to |
| 133 | 10% of the sum of the maxconn of all unique frontends which reference |
| 134 | it via use_backend, default_backend or that are in the same listen. |
| 135 | |
| 136 | * count number of monitor requests on frontends, that's the only way |
| 137 | to explain the possible huge difference between frontend and backend |
| 138 | sessions. |
| 139 | |
Willy Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 140 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 141 | 1.6 (will probably change anyway) : |
| 142 | - wait on resource (mem, socket, server's conn, server's rate, ...) |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 143 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 144 | - bandwidth limits |
willy tarreau | 814cbc6 | 2006-05-13 13:00:29 +0200 | [diff] [blame] | 145 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 146 | - create internal services and make stats, CLI, etc... part of that. |
Willy Tarreau | 1c47f85 | 2006-07-09 08:22:27 +0200 | [diff] [blame] | 147 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 148 | - use_server ... if ... |
| 149 | |
| 150 | - buddy servers to build defined lists of failovers. Detect loops during |
| 151 | the config check. |
| 152 | |
| 153 | server XXX buddy YYY |
| 154 | server YYY # may replace XXX when XXX fails |
| 155 | |
| 156 | - spare servers : servers which are used in LB only when a minimum farm |
| 157 | weight threshold is not satisfied anymore. Useful for inter-site LB with |
| 158 | local pref by default. |
| 159 | |
Willy Tarreau | 65ce391 | 2010-11-24 16:21:56 +0100 | [diff] [blame] | 160 | - add support for event-triggered epoll, and maybe change all events handling |
| 161 | to pass through an event cache to handle temporarily disabled events. |
| 162 | |
| 163 | - evaluate the changes required for multi-process+shared mem or multi-thread |
| 164 | +thread-local+fast locking. |
Willy Tarreau | 1c47f85 | 2006-07-09 08:22:27 +0200 | [diff] [blame] | 165 | |
Willy Tarreau | b549555 | 2011-03-01 21:28:51 +0100 | [diff] [blame] | 166 | - ability to kill an arbitrary session from the command line. Put a "kill now" |
| 167 | flag in every session which preempts any other processing and wake the |
| 168 | session up. |
| 169 | |
| 170 | - ability to decide whether to drain or kill sessions when putting a server |
| 171 | to maintenance mode => requires a per-server session list and the change |
| 172 | above. |
| 173 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 174 | Old, maybe obsolete points |
| 175 | - clarify licence by adding a 'MODULE_LICENCE("GPL")' or something equivalent. |
| 176 | |
| 177 | - 3 memory models : failsafe (prealloc), normal (current), optimal (alloc on |
| 178 | demand) |
| 179 | |
| 180 | - ability to assign a task priority based on L7 matching |
Willy Tarreau | 1c47f85 | 2006-07-09 08:22:27 +0200 | [diff] [blame] | 181 | |
Willy Tarreau | 21475e3 | 2010-05-23 08:46:08 +0200 | [diff] [blame] | 182 | - implement support for event-triggerred epoll() |
| 183 | |
| 184 | - verify if it would be worth implementing an epoll_ctl_batch() for Linux |
| 185 | |
| 186 | - option minservers XXX : activates some spare servers when active servers |
| 187 | are insufficient |
Willy Tarreau | 1c47f85 | 2006-07-09 08:22:27 +0200 | [diff] [blame] | 188 | |
| 189 | - new keyword 'check' : check http xxx, check smtp xxx, check ssl-hello |
| 190 | |
Willy Tarreau | bf8f681 | 2011-09-10 23:40:59 +0200 | [diff] [blame] | 191 | - initcwnd parameter for bind sockets : needed in kernel first |