Overview
Comment: | Default to treating a log as recent instead of ancient. This might be part of the run-away servers issue |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | multi-server-hack |
Files: | files | file ages | folders |
SHA1: |
31427e83dd021ed871d2b2c1ef22eb72 |
User & Date: | matt on 2017-03-24 15:55:35 |
Other Links: | branch diff | manifest | tags |
Context
2017-03-24
| ||
18:22 | Fixed couple issues with the throttle by api load but still not sure it is working right. Cleaned up few other transport things. Closed-Leaf check-in: e7dcebe686 user: matt tags: multi-server-hack | |
15:55 | Default to treating a log as recent instead of ancient. This might be part of the run-away servers issue check-in: 31427e83dd user: matt tags: multi-server-hack | |
15:18 | Reduced threshold for server pushback on clients to 20 api calls/parallel. Added couple more calls to check if server is running before starting a new one. check-in: 37e149d637 user: matt tags: multi-server-hack | |
Changes
Modified server.scm from [65b45e968a] to [30915f5112].
︙ | |||
138 139 140 141 142 143 144 | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + | (thread-join! log-rotate) (pop-directory))) ;; given a path to a server log return: host port startseconds ;; (define (server:logf-get-start-info logf) (let ((rx (regexp "^SERVER STARTED: (\\S+):(\\d+) AT ([\\d\\.]+)"))) ;; SERVER STARTED: host:port AT timesecs (handle-exceptions exn (list #f #f #f) ;; no idea what went wrong, call it a bad server |
︙ | |||
182 183 184 185 186 187 188 | 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | - + - - + + | (num-serv-logs (length server-logs))) (if (null? server-logs) '() (let loop ((hed (car server-logs)) (tal (cdr server-logs)) (res '())) (let* ((mod-time (handle-exceptions |
︙ |