netflix / chaosmonkey Goto Github PK
View Code? Open in Web Editor NEWChaos Monkey is a resiliency tool that helps applications tolerate random instance failures.
License: Apache License 2.0
Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures.
License: Apache License 2.0
已经成功接入chaos-monkey,chaos.monkey.assaults.level=1,chaos.monkey.watcher.restController=true
chaos.monkey.watcher.rest-controller=true
当访问接口时仍可以访问通过 数次未出现破坏迹象,求赐教哪里出现了问题呢?
ATH017733:~ gneha$ go get github.com/netflix/chaosmonkey/cmd/chaosmonkey
ATH017733:~ gneha$ chaosmonkey migrate
-bash: chaosmonkey: command not found
can you please let me know what im missing on
Hi, I'm Yevgeny Pats Founder of Fuzzit - Continuous fuzzing as a service platform.
We have a free plan for OSS and I would be happy to contribute a PR if that's interesting.
The PR will include the following
You can see our basic example fuzzitdev/example-go and you can see an example of "in the wild" integration google/syzkaller.
Let me know if this is something worth working on.
Cheers,
Yevgeny
Hello, we are a team researching the dependency management mechanism of Golang. During our analysis, we came across your project and noticed that it contains a vulnerability (CVE-2022-32149). In your project, the golang.org/x/text package is being used at version golang.org/x/text v0.0.0-20160922232553-a7c023693a94, but the patched version is v0.3.8. To fix the vulnerability, we recommend modifying the go.mod file to update the version to v0.3.8 or higher. Thank you for your attention to this matter.
Travis are now recommending removing the sudo tag.
"If you currently specify sudo: false in your .travis.yml, we recommend removing that configuration"
The project is not compatible with go
modules. Setting GO111MODULE=off
will allow local installation of the package.
I'd like this to be added to the official README
to ensure correct setup information is displayed for users
Chaos monkey latest version supports only instance termination?
How do I need to check failures at all levels like CPU, Memory, Harddisk, Network, Load etc.
How do I can install chaos monkey older version that supports all of the above features? Is there any documentation?
when we use Kubernetes Provider V2 (Manifest Based), chaosmonkey can not find resource to kill, Name 'ingress service-xxx' does not have any labeled or unlabeled matches.
No eligible instances in group, nothing to terminate
some issue in here: spinnaker/spinnaker#3929
example msg:
chaosmonkey config testclient
(*chaosmonkey.AppConfig)(0xc820332240)({
Enabled: (bool) true,
RegionsAreIndependent: (bool) true,
MeanTimeBetweenKillsInWorkDays: (int) 2,
MinTimeBetweenKillsInWorkDays: (int) 1,
Grouping: (chaosmonkey.Group) cluster,
Exceptions: ([]chaosmonkey.Exception) {
},
Whitelist: (*[]chaosmonkey.Exception)(<nil>)
})
error msg:
chaosmonkey terminate testclient infra-k8s-hk`
[ 7452] 2019/07/30 07:38:42 WARNING: eligible.Instances failed for InstanceGroup{app=testclient account=infra-k8s-hk region= stack= cluster=}: Name 'deployment nginx' does not have any labeled or unlabeled matches
[ 7452] 2019/07/30 07:38:42 No eligible instances in group, nothing to terminate: InstanceGroup{app=testclient account=infra-k8s-hk region= stack= cluster=}
With database migration automated, the last remaining bit is the manual setup of the chaosmonkey cron. If that can be automated, it will pave the way to docker/rpm/deb or other types of packaging/distributions.
h3. Proposal
install.cron_expression
) to read the chaosmonkey cron, default to 1 hour before start_hour
on week days(1-5).chaosmonkey install
which will
Dear Team,
I am trying to use Chaosmonkey for our resiliency testing in GKE (Google Kuberenetes Engine),
when giving the below for terminating the instance it gives below error even though I have instances for the application. Can you please guide me fix this issue.
spinnaker@hal-123:~$ chaosmonkey terminate sireeapp1 spinnaker-service-account
[ 5083] 2019/01/11 11:53:01 WARNING: eligible.Instances failed for InstanceGroup{app=sireeapp1 account=spinnaker-service-account region= stack= cluster=}: retrieve cloud provider failed: json unmarshal failed: unexpected end of JSON input
[ 5083] 2019/01/11 11:53:01 No eligible instances in group, nothing to terminate: InstanceGroup{app=sireeapp1 account=spinnaker-service-account region= stack= cluster=}
Note: I can see two instances for the application as below in spinnaker UI.
Thank you
Sireesha
Dear Team,
I am trying to use Chaosmonkey for our resiliency testing in GKE (Google Kuberenetes Engine),
I have deployed spinnaker and followed the instructions from here (https://blog.spinnaker.io/running-chaos-monkey-on-spinnaker-google-compute-engine-gce-155dc52f20ef).
Now after having everything set, the command chaosmonkey config gives me the below output:
(chaosmonkey.AppConfig)(0xc4200529c0)({
Enabled: (bool) true,
RegionsAreIndependent: (bool) true,
MeanTimeBetweenKillsInWorkDays: (int) 2,
MinTimeBetweenKillsInWorkDays: (int) 1,
Grouping: (chaosmonkey.Group) cluster,
Exceptions: ([]chaosmonkey.Exception) {
},
Whitelist: ([]chaosmonkey.Exception)()
})
But when trying to check for the eligible server groups it gives below error:
spinnaker@hal-123:~$ chaosmonkey eligible sireeapp1 spinnaker-service-account
retrieve cloud provider failed: json unmarshal failed: unexpected end of JSON input
Can you please let me know in which json file the error is being thrown and what should be the fix for it.
Thank you
Sireesha
I wasn't able to build the package using the instructions from the wiki.
$ cat /etc/issue
Ubuntu 14.04 LTS
$ export GOPATH=$HOME/gocode
$ go version
go version go1.6 linux/amd64
$ go get github.com/Netflix/chaosmonkey/bin/chaosmonkey
package github.com/Netflix/chaosmonkey/bin/chaosmonkey: cannot find package "github.com/Netflix/chaosmonkey/bin/chaosmonkey" in any of:
/usr/lib/go/src/github.com/Netflix/chaosmonkey/bin/chaosmonkey (from $GOROOT)
/home/user/gocode/src/github.com/Netflix/chaosmonkey/bin/chaosmonkey (from $GOPATH)
A friend suggested go get github.com/Netflix/chaosmonkey...
, which seems to have worked. Perhaps the build instructions should be changed? My experience with go
is limited, so maybe this is common knowledge among gophers. I also noticed that the minimum supported go
version is not documented anywhere, if it matters for the build.
ERROR - couldn't apply database migration: database migration failed: Error 1067: Invalid default value for 'killed_at' handling 1.0.0_initial_schema.sql
Hello everybody,
I am trying to use chaos monkey but I have an issue that I cannot solve. I have deployed Spinnaker at EKS in AWS successfully and then created an application that deploys 3 pods in that kubernetes cluster. I am also successfully deploying chaos monkey in a standalone EC2 and I can connect it to the Spinnaker application and also retrieve some information. For example:
chaosmonkey regions spinnaker eks-spinnaker:
spinnaker
The problem is that I cannot retrieve the instances and of course not terminate it:
chaosmonkey eligible spinnaker eks-spinnaker:
unexpected response code (404) from http://10.176.14.154:31994/applications/spinnaker/clusters/eks-spinnaker/spinnaker/kubernetes/spinnaker/serverGroups/target/CURRENT?onlyEnabled=true
It looks like that chaos monkey requests an url that doesnt exist.
Is it anyone that could help me a bit with that?
I would so appreciate this for my browser tabs. Please halp. Please. ❤️
Am unable to run chaosmonkey commands. Below is the error message am receiving.
ubuntu@ip-172-33-1-131:~$ chaosmonkey config my-aws-account
invalid character '<' looking for beginning of value
json unmarshal failed
github.com/Netflix/chaosmonkey/spinnaker.fromJSON
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/spinnaker/fromjson.go:99
github.com/Netflix/chaosmonkey/spinnaker.Spinnaker.Get
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/spinnaker/config.go:51
github.com/Netflix/chaosmonkey/spinnaker.(*Spinnaker).Get
:1
github.com/Netflix/chaosmonkey/command.DumpConfig
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/command/dumpconfig.go:27
github.com/Netflix/chaosmonkey/command.Execute
/home/ubuntu/chaos/src/github.com/Netflix/chaosmonkey/command/chaosmonkey.go:327
main.main
/home/ubuntu/chaos/src/github.com/netflix/chaosmonkey/cmd/chaosmonkey/main.go:35
runtime.main
/usr/lib/go-1.6/src/runtime/proc.go:188
runtime.goexit
/usr/lib/go-1.6/src/runtime/asm_amd64.s:1998
Here is my chaosmonkey.toml
ubuntu@ip-172-33-1-131:~$ cat /etc/chaosmonkey/chaosmonkey.toml
[chaosmonkey]
enabled = true
schedule_enabled = true
leashed = false
accounts = [ "my-aws-account", "my-azure-account", "my-gce-account", "my-k8s-v2-account", "k8s-v2-azure-account" ]
time_zone = "UTC"
[database]
host = "prl-mysql.exmps.com"
name = "chaosmonkey"
user = "chaosmonkey"
encrypted_password = "test@123"
[spinnaker]
endpoint = "http://spinnaker.exmps.com:8084"
here is my go version:
$ go version
go version go1.10.3 linux/amd64
Can someone please help?
hi everyone
While running on chaos monkey on spinnaker getting below things:
chaos monkey installed on the spinnaker aws instance
ubuntu@ip-172-31-27-137:/apps/chaosmonkey$ chaosmonkey config spinnaker
invalid character '<' looking for beginning of value
json unmarshal failed
github.com/Netflix/chaosmonkey/spinnaker.fromJSON
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/spinnaker/fromjson.go:99
github.com/Netflix/chaosmonkey/spinnaker.Spinnaker.Get
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/spinnaker/config.go:51
github.com/Netflix/chaosmonkey/spinnaker.(*Spinnaker).Get
:1
github.com/Netflix/chaosmonkey/command.DumpConfig
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/command/dumpconfig.go:27
github.com/Netflix/chaosmonkey/command.Execute
/home/ubuntu/go/src/github.com/Netflix/chaosmonkey/command/chaosmonkey.go:327
main.main
/home/ubuntu/go/src/github.com/netflix/chaosmonkey/cmd/chaosmonkey/main.go:35
runtime.main
/usr/local/go/src/runtime/proc.go:201
If the user specifies the wrong account name, then the chaosmonkey eligible
command yields the following error:
spinnaker@hal-123:~$ chaosmonkey eligible sireeapp1 spinnaker-service-account
retrieve cloud provider failed: json unmarshal failed: unexpected end of JSON input
This error message doesn't provide the user with information about what the problem and how to fix it. Chaos Monkey should provide a more meaningful error message in this scenario.
The class de.codecentric.spring.boot.chaos.monkey.configuration.ChaosMonkeyConfiguration
defines the metrics
bean. The name metrics
is generic and causes bean name conflict with other libraries. Can it be renamed to something more specific to chaos monkey?
First step in automating the installation/setup process would be to automate the database setup.
Using a db migration tool would be ideal in this case.
The proposal is instead of applying the database change manually, we just have to do the following at boot/init.d or at any convenient time to apply the database changes:
chaosmonkey migrate
Is this something you would be interested in ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.