swiftype-demo / orchestrator Goto Github PK
View Code? Open in Web Editor NEWThis project forked from openark/orchestrator
MySQL replication topology management and HA
License: Apache License 2.0
This project forked from openark/orchestrator
MySQL replication topology management and HA
License: Apache License 2.0
Dev server implemented to poll advertService dependencies to address issues with marketing upload of bad images. Currently polling production every 10s
Installed: Mar 17, 2022
Cloud provider: aws
Region: us-east-1
Instance ID: i-0eb9d25d708f248e7
OS: Debian 10
Language: java
modified spring boot prod app deployed for polling issues
I noticed in some logging the following errors:
2017-06-12 02:33:09 ERROR dial tcp 10.1.2.3:3306: connect: cannot assign requested address
2017-06-12 02:33:09 CRITICAL dial tcp 1.1.2.3:3306: connect: cannot assign requested address
2017-06-12 02:33:09 ERROR dial tcp 10.1.2.3:3306: connect: cannot assign requested address
This happened for a number of destination mysql servers that orchestrator was expected to discover.
It seems that the cause of this is that I’ve run out of local ports to make a tcp connection.
I am not sure how orchestrator treats this error but this error is NOT a remote server error but a local network (congestion) problem. I think it is likely that orchestrator may consider this a remote server failure, which if incorrect might lead it to try to recover the server when actually it is a local problem. In fact I did notice orchestrator reporting a number of issues last night related to this (output below is from an alerting interface but the output has been somewhat anonymised):
02:34 : orchestrator [critical]: server1 PROBLEM DETECTED: Intermediate master cannot be reached by orchestrator and all of its replicas are unreachable
02:34 : orchestrator [critical]: server2 PROBLEM DETECTED: Master cannot be reached by orchestrator and none of its replicas is replicating
02:34 : orchestrator [critical]: server3 PROBLEM DETECTED: Intermediate master cannot be reached by orchestrator and all of its replicas are unreachable
My thoughts are:
Hi team,
I've been working on the PaymentService checkout process today and noticed a few issues with it. I'm getting lots of dropped connections and repeated 503' errors.
Is this something on our end?
The dummy credit card works for all all other checkout tests and we don't verify it with the bank for tests, so that's not the issue.
Hi team,
I've been working on testing Stealth Shield and noticed a few issues with it recently. I'm getting lots of dropped connections and repeated 503's (logs attached)
[2021-05-24T11:25:54+0000] DEBUG "PUT /api/[email protected]&credit_card_credit_card_number=340000000000009&credit_card_cvv=473&credit_card_expiration_year=2023&credit_card_expiration_month=10&user_id=testuser"
[2021-05-24T11:25:54+0000] INFO "USER testuser authenticated"
[2021-05-24T11:25:54+0000] INFO "Attempting to checkout
[2021-05-24T11:25:54+0000] ERROR "Failed to install checkout - response from backend was 503."
Can someone advise what I should do next please?
Tags
java, process, user-agent, http headers, suspicious dependencies
Environments
dev, staging, qa, prod, client, infra
Relevant Alerts:
Investigation
Search Rule (with APM instrumentation (user-agent)
Search Rule (with APM instrumentation (x-serviice-api)
OSQuery - Running log4shell vulnerable processes
Orchestrator allows you to determine (if you want) which servers should be preferred if you have a failover scenario and you need to pick a new master.
There's currently no separation of the behaviour of primary and intermediate master failovers.
In some situations it would be good to be able to allow a server to be used for promotion as an intermediate master but not a primary master. This could be due to it running on special hardware, having special storage or being located in a specific datacentre or zone.
The current rules which are allowed for specifying candidate master promotion rules give the following values:
must
, prefer
, neutral
(default), prefer_not
(not implemented), must_not
.
The situation with a primary master would be that you want something like must_not_be_masterand
this property would be independent of the others.
A suggestion discussed with Shlomi but still open for discussion is to allow the 2 settings to be combined so that you might have prefer,must_not_master
, or must_not_master
(implying neutral,must_not_master
). Some settings would be redundant like must_not,must_not_master
but could be accepted for "convenience".
This change would allow the user to adjust the promotion rule settings to be more specific and therefore cover more use cases such as those described above.
Hi,
In our configuration we have mult-dc co-masters and only those can have RW traffic all other replicas can serve as RO replicas. Is there a way to cause orchestrator to set all non co-master replicas to be read-only, or is that something I need to set manually ?
BR
This happened to me recently:
orchestrator -c relocate-slaves -i mydb -d otherdb -verbose
SHOW SLAVE STATUS
commands running, etc)START SLAVE
on all replicasEventually I restarted MySQL on the broken replica and retried the action. However it would be nice if Orchestrator could take care of item 5 to reduce the time in which replicas are stopped and to reduce manual actions.
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.