A hugely broad question with far reaching scope... Start reading from this https://docs.moodle.org/29/en/Performance and come back if you have any *specific* questions .
Hardware and performance
Moodle website loading very slow
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.