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