Enabling UCX
Add the UCX module to the compilation container to accelerate network communication of the Ceph cluster.
- Access the compilation container.
1podman exec -it openeuler2203sp4_build /bin/bash
- After applying the SPDK patch, download ceph-17.2.7-ucx.patch to the /home/ceph-17.2.7 directory and apply the UCX patch.
1 2
cd /home/ceph-17.2.7 patch -p1 < ceph-17.2.7-ucx.patch
- Modify code in the EventEpoll.h file.
- Open the EventEpoll.h file.
1vim src/msg/async/EventEpoll.h - Press i to enter the insert mode and replace line 34 with the following content:
1is_polling = cct->_conf->ms_async_op_threads_polling | cct->_conf->ms_async_ucx_event_polling;

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the EventEpoll.h file.
- After the preceding steps are complete, compile Ceph. For details, see Compiling Ceph.
Parent topic: Compiling Ceph