Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysbench FATAL: Worker threads failed to initialize within 30 seconds! #538

Open
cartaqlo opened this issue Aug 26, 2024 · 2 comments
Open

Comments

@cartaqlo
Copy link

Hello,

I have a pod created for sysbench and when I try to initialize it to connect to mysql I get the following:

`root@sysbench:/# sysbench oltp_read_only --tables=10 --table_size=100 --mysql-host=mysql-innodbcluster --mysql-port=31495 --mysql-user=root --mysql-password=testpasswd --mysql-db=testdb --time=300 --threads=1 --report-interval=1 run
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Report intermediate results every 1 second(s)
Initializing random number generator from current time

Initializing worker threads...

FATAL: Worker threads failed to initialize within 30 seconds!
root@sysbench:/#
`

No matter how many threads I set, it always fails. The pod is in the same namespace as mysql.
I am connecting to the mysql service, which is type Load Balancer.

$ kubectl get svc -n mysql-innodbcluster NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) mysql-innodbcluster LoadBalancer 10.43.87.246 192.168.10.240 3306:31495/TCP,33060:31435/TCP,6446:32361/TCP,6448:32111/TCP,6447:31948/TCP,6449:32073/TCP,8443:31111/TCP

Online I found other few posts of people who got the same error and it was told them that the issue arises when the sysbench pod is trying to connect to mysql via TCP. This sounds no sense to me, as how is the sysbench pod supposed to connect to another pod, if not via TCP?

Is there any solution to this issue or it i snot possible to use sysbench to perf test mysql in containerised environment?

Thanks in advance.

@cartaqlo
Copy link
Author

That is spam, why such accounts and comments are even allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@cartaqlo and others