Comments (7)
And I do apologize for not trying hard enough to bring down kube-scheduler, which could cause some chaos here. That's because it's guarded by docker daemon, and a simple docker stop
won't help much.
from poseidon.
@dalanlan Thanks for reporting this! The memory corruption definitely looks scary, let's try to get to the bottom of this.
A couple of questions on your setup:
- Did you build the Poseidon image yourself, or did you download the image from DockerHub?
- What cluster setup and workload are you running? I can see some k8s internal pods in the log, but also busybox. Are all these pods pre-existing, or did you submit new ones during this run?
- Is the bug deterministic, i.e., does is happen the same way every time?
Moreover, there seem to be several problems here:
- The memory corruption, obviously.
- The fact that Poseidon fails to bind the pods because it receives a 404 error from the k8s API server when trying to do so.
The second issue could be related to kube-scheduler
also running in the environment, but the memory corruption ought not be related.
The best way to debug the memory corruption is to make a debug build of Poseidon. To do this, follow these steps in a blank checkout:
$ mkdir build
$ cd build
$ cmake .. -DDEBUG=1
$ make
This will take a while, but should build Poseidon, Firmament and all of their dependencies with debug symbols and address sanitizers.
Once done, run your experiment again and see if it produces more useful output when the memory corruption happens.
If that doesn't help, you can run Poseidon in gdb
:
$ docker run camsas/poseidon:dev /bin/bash
container# apt-get update
container# apt-get install build-essential gdb
container# gdb --args /usr/bin/poseidon \
--logtostderr \
--k8s_apiserver_host=<host> \
--k8s_apiserver_port=<port> \
--cs2_binary=/usr/bin/cs2.exe \
--max_tasks_per_pu=<max pods per node>
This will run Poseidon in gdb
and should give you more information at the point of crashing.
from poseidon.
@ms705 Thank you so much for the quick response!
Actually I tried to restart the container again and it didn't crash until now. However I was thinking it could help somehow to expose more information here, which I should do long before.
docker version: 1.12.3
k8s version: 1.4.5
poseidon: camsas/poseidon:dev (built 6 months ago)
I tried to build my own image from the HEAD several days ago, but one thing that definitely make my life miserable is that I have to struggle with the poor networking in my lab all the time.
I've rather leave this thread open until I get luck to reproduce.
from poseidon.
@dalanlan Ok, glad it works better now!
This reminds me, however, that we haven't pushed an updated Docker image in a while, even though things have advanced. I'll build and push one now.
from poseidon.
New Docker image pushed to camsas/poseidon:dev
; please give it a try.
from poseidon.
@ms705 Thank you so much
Any luck you could take a look at #2 please?
from poseidon.
Closing, as no longer relevant -- Poseidon has moved to Go, and the docker images have been updated.
Let us know if any questions remain, or if you encounter issues with the new code.
from poseidon.
Related Issues (20)
- Kubernetes Storage E2E Test Failures HOT 3
- Kubernetes Networking E2E Test Failures HOT 1
- `make` fails after running `dep ensure` and `hack/update-bazel.sh` HOT 2
- Create v0.5 release note HOT 4
- looks good, but one suggestion: HOT 8
- Test guide for poseidon installation has a bug
- Redundant License files present in sub-directories HOT 5
- Missing Test Coverage report HOT 5
- Duplicate AddTaskInfo call for Poseidon scheduled pods after pods move to running state HOT 3
- Can not schedule the newly created pod when Job failed HOT 6
- Do we support GPU scheduling now ? HOT 5
- Project status HOT 6
- Can multiple policies be implemented simultaneously HOT 4
- how to get poseidon's metrics data HOT 7
- why pending pods can't be scheduled before poseidon restart?
- do you have tools or scripts available to do benchmark and generate report? HOT 4
- Benchmark was done using which flow cost model? HOT 2
- How to deploy firmament flow scheduler in cluster? HOT 1
- A question about how many pods can be scheduled at one time using poseidon. HOT 5
- Status of poseidon HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poseidon.