Wrap texture evenly around mesh
Imaging you are wrapping this object with paper with this print; How would you like the pattern to be cut? There is no magic button for this. You need to UV unwrap it carefully and make decisions about how you want the pattern to be distorted.