I had a yorkshire terrier years ago who started getting lots of quite large lumps, much as you describe.
We took him to the vets and it emerged he was suffering from a type of skin allergy, the vet eventually put him on a prolonged course of steroids to counter act this and he went about his life as normal up to a very good age.
Hopefully you'll find your dog's lumps are similar