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