After upgrading the version, starting TiFlash prompts that AVX2 instructions are required

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 升级版本之后启动tiflash提示需要avx2指令

| username: ym1130

Currently, our production machine has undergone a database update to version 7.1. After the update, starting TiFlash prompts that the CPU needs to support AVX2 instructions. I checked the forum and set TiFlash with --disable-cpu-check, but this command did not take effect. I would like to ask if there are any other solutions.

| username: ym1130 | Original post link

In the production environment, it is temporarily not possible to roll back the version.

| username: Kongdom | Original post link

Physical machine or virtual machine?

| username: ym1130 | Original post link

Deployed on a virtual machine, the physical machine supports this instruction, but other services are deployed on this virtual machine, so the virtual machine cannot be reset.

| username: Kongdom | Original post link

Refer to this and make a configuration change.

| username: ym1130 | Original post link

I have checked this post and made the same modifications, but it did not take effect.

| username: Kongdom | Original post link

Or you can scale in TiFlash from this virtual machine, and then scale out TiFlash to a supported virtual machine.

| username: ym1130 | Original post link

Okay, let’s give it a try.

| username: zhanggame1 | Original post link

The software cannot solve the problem; it needs to be run on a supported CPU.

| username: dba远航 | Original post link

This should have been tested in the testing environment before being upgraded to production. How could it be done directly in production?

| username: ym1130 | Original post link

Two clusters, one of which was upgraded first without any issues, while the other one is not supported.

| username: ym1130 | Original post link

Is it possible to solve this problem by modifying the configuration?

| username: RenlySir | Original post link

Vector computation requires CPU support for AVX2.

| username: ym1130 | Original post link

Okay, thank you~

| username: dba远航 | Original post link

That means the two environments are inconsistent, and it wasn’t discovered in advance.

| username: 哈喽沃德 | Original post link

Try restarting the physical machine and enabling advanced virtualization support.

| username: TiDBer_5Vo9nD1u | Original post link

It’s about virtual machines, right?

| username: ShawnYan | Original post link

Welcome back~

Coordinate with the owners of the other services to find a suitable time to handle it. If the physical machine supports virtual machines, it should be able to support this as well.

| username: WinterLiu | Original post link

It seems that we can only replace the supported server after going offline.

| username: changpeng75 | Original post link

What is the configuration of the host? Can’t you check it under the virtual machine operating system?
By default, if the host supports it, the virtual machine will not be turned off.