Commit Graph

61 Commits

Author SHA1 Message Date
13c378b980 Remove concurrent ruby gem no longer needed 2021-11-01 17:12:55 +01:00
fd9e243064 Disable DCP if other strategy class is chosen 2021-11-01 17:12:54 +01:00
704407b9fc Add strategy for DockerContainerPool
In order to provide an alternative to Poseidon, a strategy for the
DockerContainerPool is added that is used by the runner model.

Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
2021-11-01 17:12:51 +01:00
5243808d54 Apply automatic rubocop fixes 2021-05-17 19:40:38 +02:00
6cbecb5b39 Apply automatic rubocop fixes 2021-05-14 22:03:06 +02:00
b10e23dd16 Upgrade to newest Sentry 2021-03-04 14:02:16 +01:00
28d40605c8 Fix specs 2020-04-14 15:20:15 +02:00
520a62125e Add some naive exception handling 2020-04-14 14:23:35 +02:00
b0761dbdb5 Extract pool handling to separate service 2020-03-25 11:30:11 +01:00
d9d77fbd97 Various important bug fixes and self destroy for containers 2020-03-23 13:38:50 +01:00
172264e5b9 Disable semaphore 2020-03-22 17:40:52 +01:00
ccb5998b72 Remove semaphore where no longer required and re-enable 2020-03-22 16:56:07 +01:00
7b10da8eb4 Use thread safe methods to add and remove elements from Concurrent::Array 2020-03-22 16:47:46 +01:00
4e9df310c2 Disable semaphore. 2020-03-22 16:07:15 +01:00
2d52338008 Ensure not to have a semaphore larger than 1 2020-03-22 15:45:09 +01:00
1cdc1b0647 Replacing a killed container only if required 2020-03-22 15:35:27 +01:00
6843f3532c Re-enable semaphore. 2020-03-22 14:42:50 +01:00
f4255f7bf0 Disable semaphore. 2020-03-22 14:05:35 +01:00
7137346c03 Reduce waiting time for semaphore 2020-03-22 13:54:23 +01:00
123eacb144 More logging for semaphore handling 2020-03-22 13:21:59 +01:00
3102d1529f Extract semaphore handling to own methods and add logging 2020-03-22 11:44:19 +01:00
1966a6e6a6 Add comment for usage of the new semaphore in the DockerClient 2020-03-22 10:42:04 +01:00
2b3428b963 Add semaphore to method calls in DockerClient 2020-03-22 09:54:20 +01:00
1c5bd91fec Fix usage of semaphore for replace_broken_container 2020-03-22 00:39:58 +01:00
5be843ca00 Fix abs 2020-03-21 23:55:35 +01:00
54e1aa4f7e Add semaphore for replace_broken_container 2020-03-21 23:48:17 +01:00
c3595419a4 Add semaphore for DockerContainerPool 2020-03-21 22:56:39 +01:00
b38b7bd435 Catch two more exceptions from production 2020-03-17 13:50:33 +01:00
ac31afbd2a Clean Gemfile and perform bundle update
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:45:59 +01:00
254e8c65d1 adjusted log levels for docker exit and kill messages 2017-01-11 16:04:55 +01:00
94c31e35a4 Some comments and cleanup of exercise.rb percentage calculation 2016-03-01 11:14:53 +01:00
61426e8f2e uncomment some logging, and recreate folder for local workspace path in the docker client. 2016-01-27 15:49:38 +01:00
943d5554d9 Remove @all_containers instead of @containers during cleanup
Also added some comments and todos
Also fixed debug messages in remove_from_all_containers
Also refactored duplicated code with extracted function
Also removed some commented lines of code
2015-12-12 00:41:26 +08:00
e335759644 accessor methods for the container and all_container arrays hashes (in order to watch it with the rails console) 2015-12-02 16:00:31 +01:00
6170068f24 Major improvement in container fetching. ToDo: Check how much stress this puts on the docker daemon (I assume it is not that much).
+ some more rescue code (in return container) as well as logging fixes.
2015-11-28 16:20:16 +01:00
27d226cbe4 Merge branch 'master' of https://github.com/openHPI/codeocean 2015-11-25 11:18:18 +01:00
201b298941 Remove import 2015-11-24 09:22:22 +01:00
1f25b3558c Merge branch 'master' of https://github.com/openHPI/codeocean 2015-11-23 20:25:02 +01:00
2678a6f1b5 some logging 2015-11-23 20:24:55 +01:00
ffdde1830b Restore large envs first 2015-11-23 20:20:34 +01:00
c41a8d8d5e Faster restore of containers after puma restart 2015-11-23 20:13:59 +01:00
eb8c0e46fa Some logging, some code simplification, clear canvas on start 2015-11-03 15:54:08 +01:00
ef60494911 some more logging (and cleanup) 2015-10-29 16:27:12 +01:00
b00dde91d9 just log pool status if it is already functional. 2015-10-19 16:36:42 +02:00
646e45700b some changes on logging output (better readability) 2015-08-21 14:43:57 +02:00
b8e35274ac Added some roadmap 2015-04-28 13:46:56 +02:00
7296ccda33 Cleanup 2015-04-23 13:12:44 +02:00
40f37410ac Fix logged 2015-04-23 10:04:17 +02:00
431b18b526 Added some logs 2015-04-23 09:54:30 +02:00
edbf74b4b9 Only return container if its not there already 2015-04-23 08:59:30 +02:00