What do the numbers mean at the end of add_action(‘save_post’)…?

The 10 is the priority (relative to other added actions) and the 2 is simply the number of arguments that my_save_post() will accept.

See the codex.