• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

MusicBOT lag [SOLVED]

TecWar

Active member
Hello!

I have got a TeaSpeak server with one musicbot.

If i create the bot (.mbot create) and i start Queueing the video (.mbot yt
), the bot launches the music and its lagging.
Sometimes it goes smoothly, but it lags all the way.

Some information:
TeaSpeak version: Linux x64 | 1.1.3-beta-3
OS: Ubuntu 16.04 LTS (64 bit)
Memory: 1024 MB
CPU: 1 vCpu (Intel Xeon)

also a htop photo: Screenshot_66.png
 

essem

Active member
If this is a bug report then its in the wrong category.

Anyway checked it on my system and it works without any major lags. There is just minior lags where it drops some milliseconds and you got these robot cracking sound thing but its really rare. (tested on Debian 8.10 x64 with TeaSpeak 1.1.3-beta-3 and 11ms ping along with 0% packet loss)
It could help if you could reply with your version of ffmpeg (maybe update it) and a recording of the lags.
 

TecWar

Active member
1521881919913.png
I found the issue, when the server is ticking the musicbot is lagging.
How can i disable this ticking or what is this?
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Hmm well it looks like you're running a lot of servers with music bots on a v or root server with only one core.
The problem with one core is that it could not handle that much at the same time so it has to queue some tasks.
I will recommend you to reduce the threads per server, and the maximum threads for ticking and execution.
I also recommend not to use a very large number of music bots (they are not 100% optimized, but I planned to work on that system after the publish of the web client)
 

TecWar

Active member
I am using only one musicbot on one server. I have got 130+ servers.
(Only one server got musicbot.)

I tried it with 2 cpu core and 4 cpu core. Ticking is the fault I think.
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
BTW some updates:
Caused by the popularity of the music bots, i'll currently updating the system, so it should be more performant, and may not so laggy :)
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Hmm could you show me your config?
I think TeaSpeak spawned way to much threads for a dual core (look at the load)
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Hmm I already read your old thread and I'm not sure is this the same issue.
Well how many cores do you have and which thread settings do you use?

BTW set the log to trace and try to recreate your behavior. There might be more information
 

elzek1

Member
i have the same problem, what is the correct configuration in config.yml? i have 1vcpu xeon and 1gb ram. I dont have bot of music in my server.

My configuration:

voice:
#Max number of threads for command handling on the instance
#Do NOT TOUCH unless you're 100% sure!
execute_limit: 10
#Threads per server for command executing
#Do NOT TOUCH unless you're 100% sure!
execute_per_server: 3
#LibEvent events per server
#Do NOT TOUCH unless you're 100% sure!
events_per_server: 4
#Minimum IO threads
#Do NOT TOUCH unless you're 100% sure!
io_min: 3
#IO Thread increase per server
#Do NOT TOUCH unless you're 100% sure!
io_per_server: 4
#Max IO threads
#Do NOT TOUCH unless you're 100% sure!
io_limit: 10
music:
#Max number of threads for command handling on the instance
#Do NOT TOUCH unless you're 100% sure!
execute_limit: 15
#Threads per server for command executing
#Do NOT TOUCH unless you're 100% sure!
execute_per_bot: 1