BGP Weight is a Cisco defined path attribute and the first step on selecting the best path in BGP.
The path with the higher weight is preferred.
Weight is a 16-bit value, between 0 to 65,535.
A path that originates on the router has a default weight of 32,768. A path that originates from elsewhere has a weight of 0.
Weights are assigned locally on the router and are not advertised to peers. They can be assigned through the use of route-maps for a specific route or for all routes from a specific neighbour.
As weight is only assigned locally, it only has the power to influence outbound traffic from that local router. It is suitable for when other routers should not be influence or influence the routing decisions of the local router.