Thanks @Minxiao Zhou for sharing additional details. Lookup activity currently has limitation as mentioned in documentation (snap below), this is the reason why you are seeing only 5000 records processed by foreach activity. Data Factory Region can be found as in second snap below.
Hope this helps! Please let us know for further queries and we will be glad to assist.