71 lines
5.4 KiB
Plaintext
71 lines
5.4 KiB
Plaintext
Container mtusi-lab4-api-1 Restarting
|
|
Container mtusi-lab4-api-2 Restarting
|
|
Container mtusi-lab4-api-2 Started
|
|
Container mtusi-lab4-api-1 Started
|
|
Container mtusi-lab4-api-1 Running
|
|
Container mtusi-lab4-api-2 Running
|
|
Container mtusi-lab4-api-2 Waiting
|
|
Container mtusi-lab4-api-1 Waiting
|
|
Container mtusi-lab4-api-2 Healthy
|
|
Container mtusi-lab4-api-1 Healthy
|
|
Container mtusi-lab4-api-1 Restarting
|
|
Container mtusi-lab4-api-2 Restarting
|
|
Container mtusi-lab4-api-1 Started
|
|
Container mtusi-lab4-api-2 Started
|
|
Container mtusi-lab4-api-1 Running
|
|
Container mtusi-lab4-api-2 Running
|
|
Container mtusi-lab4-api-2 Waiting
|
|
Container mtusi-lab4-api-1 Waiting
|
|
Container mtusi-lab4-api-2 Healthy
|
|
Container mtusi-lab4-api-1 Healthy
|
|
Container mtusi-lab4-api-1 Restarting
|
|
Container mtusi-lab4-api-2 Restarting
|
|
Container mtusi-lab4-api-1 Started
|
|
Container mtusi-lab4-api-2 Started
|
|
Container mtusi-lab4-api-1 Running
|
|
Container mtusi-lab4-api-2 Running
|
|
Container mtusi-lab4-api-2 Waiting
|
|
Container mtusi-lab4-api-1 Waiting
|
|
Container mtusi-lab4-api-2 Healthy
|
|
Container mtusi-lab4-api-1 Healthy
|
|
Error response from daemon: container f723dc1c71bdaa44acae07bc4e2692a6eff5c1699db47883ac50d4fd85f164df is not running
|
|
Exception in thread Thread-3:
|
|
Traceback (most recent call last):
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
|
|
self.run()
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
|
|
self._target(*self._args, **self._kwargs)
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 45, in sample
|
|
samples.append({'seconds': round(time.monotonic() - started, 4), 'memory': {v: memory(v) for v in containers}})
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 45, in <dictcomp>
|
|
samples.append({'seconds': round(time.monotonic() - started, 4), 'memory': {v: memory(v) for v in containers}})
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 23, in memory
|
|
return json.loads(docker('exec', container, 'python', '-c', code))
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 18, in docker
|
|
return subprocess.check_output(['docker', *args], text=True).strip()
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
|
|
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
|
|
raise CalledProcessError(retcode, process.args,
|
|
subprocess.CalledProcessError: Command '['docker', 'exec', 'f723dc1c71bdaa44acae07bc4e2692a6eff5c1699db47883ac50d4fd85f164df', 'python', '-c', "import json; from pathlib import Path; p=Path('/sys/fs/cgroup'); print(json.dumps({k:(p/k).read_text().strip() for k in ['memory.current','memory.peak','memory.events']}))"]' returned non-zero exit status 1.
|
|
Traceback (most recent call last):
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 75, in <module>
|
|
main()
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 63, in main
|
|
results = list(executor.map(upload, range(10)))
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 608, in result_iterator
|
|
yield fs.pop().result()
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 445, in result
|
|
return self.__get_result()
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
|
|
raise self._exception
|
|
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run
|
|
result = self.fn(*self.args, **self.kwargs)
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/student-tests/uploads.py", line 53, in upload
|
|
response = Client(timeout=30).call('POST', '/api/v1/chats/' + chat['id'] + '/attachments?filename=concurrent.png', [201, 503], actor=alice, raw=content, headers={'Content-Type': 'image/png'})
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/tests/client.py", line 132, in call
|
|
check(status in allowed, method + ' ' + path.split('?')[0] + ': expected ' + str(allowed) + ', received ' + str(status))
|
|
File "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab4/tests/client.py", line 24, in check
|
|
raise Failure(message)
|
|
client.Failure: POST /api/v1/chats/d5f3faf9-30c1-4c21-9c11-c90c8f661698/attachments: expected [201, 503], received 502
|