LHCb distributed computing in Run II and its evolution towards Run III