Overview
Comment: | Added required switch for servers |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.60 |
Files: | files | file ages | folders |
SHA1: |
2b2f579cc40ae5360ba59fb334d37de1 |
User & Date: | matt on 2014-11-15 23:36:11 |
Other Links: | branch diff | manifest | tags |
Context
2014-11-16
| ||
00:11 | Fixed delete-test-step-records call check-in: bd17b9e233 user: matt tags: v1.60 | |
2014-11-15
| ||
23:36 | Added required switch for servers check-in: 2b2f579cc4 user: matt tags: v1.60 | |
03:43 | In tasks:open-db call the create tables every time. Fixes issue with tables creation. NOT A GOOD FIX, revisit this. check-in: 347f0d9167 user: matt tags: v1.60 | |
Changes
Modified rmt.scm from [b91ff3594c] to [667f107f6b].
︙ | ︙ | |||
99 100 101 102 103 104 105 | ;; no longer killing the server in http-transport:client-api-send-receive ;; may kill it here but what are the criteria? ;; start with three calls then kill server (if (eq? attemptnum 3)(tasks:kill-server-run-id run-id)) (rmt:send-receive cmd run-id params attemptnum: (+ attemptnum 1))))) (let ((max-avg-qry (string->number (or (configf:lookup *configdat* "server" "server-query-threshold") "10")))) | > > > | > > > | | | > | | | | | | | | | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | ;; no longer killing the server in http-transport:client-api-send-receive ;; may kill it here but what are the criteria? ;; start with three calls then kill server (if (eq? attemptnum 3)(tasks:kill-server-run-id run-id)) (rmt:send-receive cmd run-id params attemptnum: (+ attemptnum 1))))) (let ((max-avg-qry (string->number (or (configf:lookup *configdat* "server" "server-query-threshold") "10")))) (if (and (< attemptnum 10) (configf:lookup *configdat* "server" "required")) (begin (debug:print-info 0 "Server required mode, attempting to start server and retry query in ten seconds") (server:kind-run run-id) (thread-sleep! 10) (rmt:send-receive cmd rid params (+ attemptnum 1))) ;; (if (rmt:write-frequency-over-limit? cmd run-id)(server:kind-run run-id)) (let* ((curr-max (rmt:get-max-query-average run-id)) (curr-max-val (cdr curr-max))) (debug:print-info 4 "no server and read-only query, bypassing normal channel") (if (> curr-max-val max-avg-qry) (if (common:low-noise-print 10 "start server due to max average query too long") (begin (debug:print-info 0 "Max average query, " (inexact->exact (round curr-max-val)) "ms (" (car curr-max) ") exceeds " max-avg-qry "ms, try starting server ...") (server:kind-run run-id)) (debug:print-info 3 "Max average query, " (inexact->exact (round curr-max-val)) "ms (" (car curr-max) ") below " max-avg-qry "ms, not starting server..."))) (rmt:open-qry-close-locally cmd run-id params))))))) (define (rmt:update-db-stats run-id rawcmd params duration) (mutex-lock! *db-stats-mutex*) (handle-exceptions exn (begin (debug:print 0 "WARNING: stats collection failed in update-db-stats") (debug:print 0 " message: " ((condition-property-accessor 'exn 'message) exn)) |
︙ | ︙ |
Modified tests/fullrun/megatest.config from [d8f2a7d6dd] to [c8ab3440c4].
︙ | ︙ | |||
131 132 133 134 135 136 137 138 139 140 141 142 143 144 | # it succeeds port 8080 # This server will keep running this number of hours after last access. # Three minutes is 0.05 hours # timeout 0.025 timeout 0.01 # daemonize yes # hostname #{scheme (get-host-name)} ## disks are: ## name host:/path/to/area ## -or- | > > > | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | # it succeeds port 8080 # This server will keep running this number of hours after last access. # Three minutes is 0.05 hours # timeout 0.025 timeout 0.01 # Server is required - slower but more resistant to Sqlite issues. required yes # daemonize yes # hostname #{scheme (get-host-name)} ## disks are: ## name host:/path/to/area ## -or- |
︙ | ︙ |