I was trying to prove that, in general, the diameter of an open ball $B_d(x, \epsilon)$ in a metric space $(X, d)$ is equal to $2\epsilon$. It then occurred to me that this is not the case if the metric induces the discrete topology, so one necessary (but probably not sufficient) condition is that $d$ doesn't induce the discrete topology. A trivial example of where this is true is $\mathbb{R}^n$ with the euclidean metric. So, what can we impose to make sure that the diameters are exactly twice the radius?
Observation: if $A\subset X$ is bounded, the diameter of $A$ is $:= \displaystyle{\sup_{a_1, a_2 \in A} d(a_1, a_2)}$
EDIT: to the people voting to close the question - could you at least mention your reasons in a comment? It's hard to know just what I'm doing wrong otherwise...
EDIT 2: It's been brought to my attention that maybe the initial question isn't that interesting so I've edited the title. Still, if we could find a necessary and sufficient condition, that would be super nice!
There are several nice classes of spaces for which the property in the title of your question holds:
My favorite reference for this is do Carmo's "Riemannian Geometry".
The same argument works for Finsler manifolds, provided that the Finsler norm is strongly convex.
More generally, there is a class of metric spaces called geodesic spaces with geodesic extension property which are not Riemannian manifolds but for which the same argument applies. An example of such a space is a complete tree: A connected graph without cycles and without valence 1 vertices, which we equip with the graph-metric: declare every edge to be isometric to the unit interval and define the distance between points by minimizing lengths of paths in the graph connecting these points.
Note that geodesics in general metric spaces are defined differently from the Riemannian case: A geodesic is defined as a length-minimizing path parameterized by its arc-length, equivalently, as an isometric embedding of an interval into the metric space. A good reference is
Burago and Ivanov "A course in metric geometry", especially section 9.1.7.