You want to speed up convergence of OSPF routes in case a path fails with no hardware indication, which might happen on an Ethernet network.
Reduce the interval at which OSPF exchanges Hello messages and, in parallel, decrease the dead interval:
[edit protocols ospf area
The OSPF protocol specifications were developed when routers and network interfaces were slower to allow enough time for LSAs to reach all nodes and for the SPF calculation to run on all routers. Modern routers and interfaces are much faster, so one strategy for speeding up route convergence is to modify the default OSPF timers. The base JUNOS OSPF code already optimizes convergence times by doing fast link detection and flooding, by quickly regenerating LSAs, and by quickly scheduling SPF calculations, so you don't often need to modify the timers.
When changing OSPF timers, you must modify each interface, changing the hello timer and dead timer intervals. The default timer settings, as defined in the OSPF specification, are 10 seconds for sending periodic Hello packets and 40 seconds for declaring the adjacency dead, or down (four times the hello interval):
show ospf interface detailInterface State Area DR ID ...