A mind-boggling amount of data will be generated every day. It is natural to consider clustering the data and putting each cluster into some place for storing. In reality, the arrival time of the data is unknown in advance and new data keep joining appropriate cluster upon arrival. This scenario can be captured as the online facility location problem. Usually, the places for storing the data have limited capacities. Therefore, the online capacitated facility location problem (O-CFLP) is proposed.Designing algorithms with bounded competitive ratios for the O-CFLP is impossible. This fact stimulates us to study special cases of the O-CFLP. We pay attention on the online soft capacitated facility location problem and its prize-collecting version, and we design dual-fitting competitive algorithms for them.