Megatest

Check-in [7d2567e262]
Login
Overview
Comment:Added faststart (on by default), allows first few writes to pass through without server
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.60
Files: files | file ages | folders
SHA1: 7d2567e262cdb46bcfc73e2d1cd005d00bfad4b4
User & Date: matt on 2015-04-02 22:14:17
Other Links: branch diff | manifest | tags
Context
2015-04-11
12:53
Merged changes on openlava branch (openlava launch calls backed out) check-in: 8ce158ae19 user: matt tags: v1.60
2015-04-04
09:51
Fix to Makefile in batchsim check-in: 8c96707993 user: matt tags: multi-area
2015-04-02
22:14
Added faststart (on by default), allows first few writes to pass through without server check-in: 7d2567e262 user: matt tags: v1.60
21:20
Added setting of MT_RUNNAME if available prior to processing megatest.config and added test check-in: 8cdcec66a6 user: matt tags: v1.60
Changes

Modified rmt.scm from [841f80a9e9] to [e57d73e7b7].

146
147
148
149
150
151
152
153

154
155


156

157
158
159





160
161
162
163
164
165
166
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







-
+


+
+
-
+
-
-
-
+
+
+
+
+







	;; no connection info? try to start a server, or access locally if no
	;; server and the query is read-only
	;;
	;; Note: The tasks db was checked for a server in starting mode in the rmt:get-connection-info call
	;;
	(if (and (< attemptnum 15)
		 (member cmd api:write-queries))
	    (begin
	    (let ((faststart (configf:lookup *configdat* "server" "faststart")))
	      (hash-table-delete! *runremote* run-id)
	      ;; (mutex-unlock! *send-receive-mutex*)
	      (if (and faststart (equal? faststart "no"))
		  (begin
	      (tasks:start-and-wait-for-server (db:delay-if-busy (tasks:open-db)) run-id 10)
		    (tasks:start-and-wait-for-server (db:delay-if-busy (tasks:open-db)) run-id 10)
	      ;; (client:setup run-id) ;; client setup happens in rmt:get-connection-info
	      (thread-sleep! (random 5)) ;; give some time to settle and minimize collison?
	      (rmt:send-receive cmd rid params attemptnum: (+ attemptnum 1)))
		    (thread-sleep! (random 5)) ;; give some time to settle and minimize collison?
		    (rmt:send-receive cmd rid params attemptnum: (+ attemptnum 1)))
		  (begin
		    (server:kind-run run-id)
		    (rmt:open-qry-close-locally cmd run-id params))))
	    (begin
	      ;; (debug:print 0 "ERROR: Communication failed!")
	      ;; (mutex-unlock! *send-receive-mutex*)
	      ;; (exit)
	      (rmt:open-qry-close-locally cmd run-id params)
	      )))))

Modified tests/fullrun/megatest.config from [25c78a78c3] to [25cb3c92f4].

140
141
142
143
144
145
146
147
148


149
150
151
152
153
154
155
140
141
142
143
144
145
146


147
148
149
150
151
152
153
154
155







-
-
+
+







port 9080

# This server will keep running this number of hours after last access. 
# Three minutes is 0.05 hours
# timeout 0.025
timeout 0.061

# Server is required - slower but more resistant to Sqlite issues.
required yes
# faststart; unless no, start server but proceed with writes until server started
faststart yes

# Start server when average query takes longer than this
# server-query-threshold 55500
server-query-threshold 100
timeout 0.01

# daemonize yes