In one day, it is easy to see in detail all the desired sights of Petras, so it is recommended to come here two, or better three days. Although Peter is high in the mountains, but tourists who want to stay here for a longer time will not arise.
In a pair of kilometers from Petra, there is a small town of Wadi Musa, which actually exists through the maintenance of a large number of tourists. Wadi Musa has the whole necessary infrastructure for this: cafes, hotels, banking institutions, shops, restaurants.
In the town of full hotels of various levels of "star" and with affordable pricing policy. For example, there are economy class hotels (Valentine, Rocky Mountain, Al Rashid, etc.) The cost of living in them begins somewhere from $ 25 for a modest double room per day. There are hotels from one hundred dollars and above ("Marriott Petra", "Tetra Tree", etc.). Many hotels offer a standard range of services: Wi-Fi, food, satellite TV, etc. By the way, some of them organize free transfers to the main entrance to Peter.
You can book rooms in them using popular online booking.com services. However, it is worth thinking about it in advance, as Petra is very popular with foreigners, and at the scheduled date of places in hotels can simply not be.