don’t do it! It is just not healthy for the parents, nor is it ideal for kids.
Generally, it is a way for one parent or another to avoid the partner. Bad idea. Really bad idea. Remember, the relationship with your spouse is by far the most important one you have. Kids will grow up and leave–them staying is referred to a “failure to launch.”