You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
336 B
22 lines
336 B
6 months ago
|
#!/usr/bin/env ruby
|
||
|
require_relative '../lib/cartodb/threads_machine'
|
||
|
require_relative '../lib/cartodb/scripts/server_load'
|
||
|
|
||
|
class ServerLoad < ThreadsMachine
|
||
|
|
||
|
def execute
|
||
|
|
||
|
MAX_THREADS.times do
|
||
|
queue.enq(ServerLoadScript)
|
||
|
end
|
||
|
|
||
|
async do |load_script|
|
||
|
load_script.new
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
ServerLoad.new.execute
|